Git Product home page Git Product logo

django-bootstrap-starter-project2's Introduction

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 [email protected]: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

django-bootstrap-starter-project2's People

Contributors

ddehghan avatar jaydlawrence avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.