Skip to content
Browse files


  • Loading branch information...
1 parent 294e4e4 commit 9d956b50056103ce69a4d7a68be42745262071b4 @rca committed May 10, 2012
Showing with 19 additions and 41 deletions.
  1. +19 −41
@@ -6,47 +6,41 @@ Django Baseline is a ready-made Django project that helps you deploy to Heroku a
Getting Started
-Clone this repo and point the remote to the name baseline. Renaming the remote
-to baseline leaves origin open for your project and allows you to more easily
-pull in changes from baseline.
+Clone this repo with your desired project name:
git clone git:// myproject
cd myproject
-git remote rename origin baseline
-Create a virtual environment and populate it with the requirements:
+Run the bootstrap script. This script will rename the baseline remote repo to
+baseline so that origin is left open for your project. It will also create a
+virtual environment in the ```venv``` directory, create a secret key file as a
+seed for Django's crypto functions, create a localsettings module, which
+enables debug, and sync databases for local development.
-virtualenv venv --distribute
-source venv/bin/activate
-pip install -r requirements.txt
-Next, generate a secret key for django to use for crypto functions:
-python secretkey
-git add baseline/
-git commit -m'Added secret key module'
+Deploying to Heroku
-Then, initialize heroku in the project directory and push to Heroku:
+Initialize heroku in the project directory and push to Heroku:
heroku create --stack cedar
git push heroku master
-Once the application is running on Heroku, sync the database:
+Sync the database:
heroku run python syncdb
heroku run python migrate
-And finally, to see your application:
+And view your application:
heroku open
@@ -55,42 +49,26 @@ heroku open
Developing your app
-Create ```baseline/``` with ```DEBUG``` configured:
-echo "DEBUG = True" >> baseline/
-Sync the database:
-python syncdb
-python migrate
-Start your application and tie in its urls. The localurls command creates
-```baseline/``` that's automatically imported and ties in your
-application's `````` file.
+Create your application:
``` startapp myapp
git add myapp
git commit -m'Added django app, "myapp"'
-python localurls myapp
-Now run a server locally and access your site at http://localhost:8000/
+Tie in your app's urls module and commit:
-python runserver
+python localurls myapp
+git add -A
+git commit -m'Added baseline-generated files'
-This would be a good time to commit all the files the commands above generated:
+Run your local server and access your site at http://localhost:8000/
-git add -A
-git commit -m'Added baseline-generated configuration'
+python runserver
Happy Hacking

0 comments on commit 9d956b5

Please sign in to comment.
Something went wrong with that request. Please try again.