Skip to content

tiyd-python-2015-05/single-page-app-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to your new Django single-page app project!

This template will ease your way in building a single-page app backed by a Django API.

To use this template, run:

django-admin.py startproject YOUR_PROJECT_NAME --template=https://github.com/tiyd-python-2015-05/single-page-app-template/archive/master.zip --extension=py,md --name=Procfile

Change YOUR_PROJECT_NAME before running the above.

Files you should know about

  • {{ project_name }}/templates/index.html - This is where all your HTML should go. It has a few funny things in there. Make sure to use \{% static "path/to/file.css" %\} for all links to static files.

  • {{ project_name }}/static/ - All your static files go here. You can write them by hand or generate them with gulp or another tool.

Heroku instructions

This app should work well with Heroku as long as you run the following commands:

heroku config:set DJANGO_SETTINGS_MODULE={{ project_name }}.heroku_settings
heroku config:set PYTHONPATH={{ project_name }}
heroku config:set SECRET_KEY=$(date | md5 | base64)

About

Template for building a single page app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages