Skip to main content

Quickly build django website

Project description

A new way to Django development. Start small, grow big.

Quickstart

Create the app directory:-

mkdir myapp && cd myapp
python3 -mvenv venv
venv/bin/pip install siteplan

Add the following code to app.py:-

from siteplan import App, run
from django.http import HttpResponse

def index(request):
    return HttpResponse("Hello world")

from django.urls import path
urlpatterns = [
    path("test/", index),
]

conf = {}
app = App(conf, urls=urlpatterns)

if __name__ == "__main__":
    run(app)

Then run it with siteplan:-

venv/bin/siteplan --app app:app run -b 127.0.0.1:9001

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

siteplan-0.1.1a0.dev1.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

siteplan-0.1.1a0.dev1-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page