This is a boilerplate Django project with:
- A base user system using django-social-auth, with the Google OAuth2 login implemented.
- A JS framework using CoffeeScript, RequireJS, Backbone, Handlebars and Bootstrap.
- A build and deploy process.
pip install -r requirements.txt
Look in plate/settings_env
and edit the local.py
and heroku.py
settings as needed.
Get your Google OAuth2 credentials here: https://code.google.com/apis/console/
Be sure to set the redirect url to:
http://YOUR_DOMAIN/complete/google-oauth2/
This project uses CoffeeScript, the .coffee files are located in static/coffee
.
To recursively watch the coffee dir for changes run this command:
coffee -o plate/static/js/ -cw plate/static/coffee/
heroku create
git push heroku master
heroku config:add DJANGO_ENV=heroku
heroku run python manage.py syncdb
You'll need to create and commit your built static assets before you deploy.
./manage.py compile_javascript
./manage.py compile_css
- Node (For building the JS) http://nodejs.org/
- CoffeeScript http://coffeescript.org/
- Handle rejected auth requests and login errors.
- Better handling of view loading errors.
- Support for different layouts.
- Add unique constraints on email.