Created: 2014-05-19 15:39
Updated: 2014-05-19 16:34

=============================================== Dojo Dev Camp - Django/Angular Project Template

A project template for AngularJS, Django 1.6 and Heroku.

Cloning the Repository to GitHub

  • Create an empty repository at GitHub (let's call it test)
  • Open up your terminal
  • Run the following commands
cd /tmp # make sure this is a directory that exists
git clone --bare
cd django_angular_pt.git
git push --mirror # this will be different for you
cd ..
rm -rf django_angular_pt.git

Initial setup

Create your virtual environment. In your back end folder, run "pip install -r requirements.txt." In your front end folder, run "npm install."

Setting up your database

python schemamigration public —-init
python syncdb
     Select "no." Do not create a superuser at this time.
python migrate
python createsuperuser
python schemamigration public —-auto // Nothing seems to have changed.

Deploying to Heroku

  • Create a new heroku account at
  • Open up your terminal
  • Run the following commands
cd /path/that/will/hold/repository
git clone # using the same name as above for an example
cd test
heroku create # this will create a new heroku app and attach it as a remote repository
  • Copy the heroku app domain to the ALLOWED_HOSTS array in project/settings/
git push heroku master
heroku open # run this once the previous command finishes, it may take a minute
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more