Quickly build django website
Project description
A new way to Django development. Start small, grow big.
Quickstart
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
:-
siteplan --app app:app run -b 127.0.0.1:9001
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(5.1 kB
view hashes)