jaydlawrence / django-bootstrap-starter-project2

django starter project with python social auth and bootstrap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Bootstrap Starter Project

This project makes it really easy to create a Django project and publish it to Heroku.

I found this repo and it was almost exactly what I needed, except I didn't want to use heroku and amazon AWS, so I have made a few mofications to remove these dependecies

See Demo: http://django-bootstrap2.herokuapp.com

What is included?

  • Django 1.5
  • Heroku settings Heroku dependenceis removed in this fork
  • Python Social Auth. Oauth for Facebook, Google, Yahoo!
  • Jquery
  • Bootstrap

What you need to get started?

Minimum requirements

  • Heroku account

Advance requirements

  • Facebook Oauth keys: FACEBOOK_APP_ID, FACEBOOK_API_SECRET
  • Google OAuth keys: SOCIAL_AUTH_GOOGLE_OAUTH2_KEY, SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET ** Register redirect URLs in Google Developer Console

Setup Steps

  • git clone git@github.com:ddehghan/django-bootstrap-starter-project2.git myproject

  • cd myproject

  • heroku create <my_cool_project_name>

  • source myproject/settings_local.env.sh

  • sh myproject/settings_local.heroku.sh still useful for setting environmental variables

  • git push heroku master

  • set DB variables in the relevant setting files

  • heroku run python manage.py syncdb

  • Great Success! You are done.

Helpful Commands

  • Check settings

heroku config printenv

View logs and status

heroku logs heroku ps heroku config

Database

Deployment of Django on Heroku https://devcenter.heroku.com/articles/django

heroku run python manage.py syncdb

heroku run python manage.py migrate website

heroku domains:add www.example.com

python manage.py collectstatic --noinput; heroku config:add DISABLE_COLLECTSTATIC=1 # To disable static collection

To drop heroku database:

heroku pg:reset DATABASE

How to get GoogleOauth key

About

django starter project with python social auth and bootstrap

License:MIT License


Languages

Language:Python 99.8%Language:CSS 0.2%