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
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.1a0.dev1.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for siteplan-0.1.1a0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5d6a286ce7792e7aaa5e6281645cce8d6dc4ae36c6fa95c18351747dd4f8827 |
|
MD5 | 5df804ca91c514ea6d73a51a7c833ad4 |
|
BLAKE2b-256 | 8d1cc7d90a4b3ef97e60a4c9aff42df0c3a5b5ea35f6c4d9784b8912ab990f39 |