A minimal Django app for a single page app entry point.
pip
is the easiest way to get the package:
pip install django-main
Add the package to your Django settings file:
INSTALLED_APPS = [
'main',
...
]
Add the URLs:
urlpatterns = [
url('^', include('main.urls')),
...
]
You will now have an index view for /
. This will load a page with an HTML element
with an ID of main-mount
, where your app can be mounted.
The currently logged in user is passed to the client side via jsdata
(please see
the README at http://github.com/furious-luke/django-jsdata).
TODO