A quick way to start a new Django Project. Projects come ready to run on Heroku.
note: you will need Virtualenv and Git installed. If you want to put your project on Heroku, you will also need to install the Heroku toolbelt and have a Heroku account to which you have uploaded your ssh key and are logged in (heroku login
).
- Clone this repository
git clone https://github.com/jackm321/djangoStarter.git
- Change the name of the directory you just cloned from djangoStarter to the name you want for your project
mv djangoStarter new_project_name
- cd into the project directory
cd new_project_name
- Run the initialization script
python setup.py
- Create the virtual environment
virtualenv venv --distribute
- Activate the virtual environment
- Mac/Linux:
source venv/bin/activate
- Windows:
venv\scripts\activate.bat
- Mac/Linux:
- Install required Python packages
pip install -r requirements.txt
- run server
- create a new git repository
git init
- create an initial commit
git add . && git commit -m "initial commit"
- create a new Heroku app
heroku create [new_project_name]
- note that project names are optional when creating a new Heroku project but if you do specify one then it must be unique accross all Heroku users
- push your code to Heroku
git push heroku master
- go visit your project on Heroku
heroku open