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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file siteplan-0.1.1a0.dev1.tar.gz.

File metadata

  • Download URL: siteplan-0.1.1a0.dev1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.10.53-1-MANJARO

File hashes

Hashes for siteplan-0.1.1a0.dev1.tar.gz
Algorithm Hash digest
SHA256 f80d8ff9e6b433197dba1686f051d15b09a051c76647b2cb5396f0e0fad970d1
MD5 2d5e2d6da05365e3a94683e2b129abc7
BLAKE2b-256 afc1cddf0aabfeea52457d9851e3062edc20c4bb3fb598260e3eb08dec34a3cc

See more details on using hashes here.

File details

Details for the file siteplan-0.1.1a0.dev1-py3-none-any.whl.

File metadata

  • Download URL: siteplan-0.1.1a0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.10.53-1-MANJARO

File hashes

Hashes for siteplan-0.1.1a0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 d5d6a286ce7792e7aaa5e6281645cce8d6dc4ae36c6fa95c18351747dd4f8827
MD5 5df804ca91c514ea6d73a51a7c833ad4
BLAKE2b-256 8d1cc7d90a4b3ef97e60a4c9aff42df0c3a5b5ea35f6c4d9784b8912ab990f39

See more details on using hashes here.

Supported by

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