Setting up and deploying a project is always a huge hassle. But not anymore! With DjangoBuddy, in just one line you can generate a skeleton app and deploy it to Heroku!
- landing page, home page and Django admin
- built-in authentication based on Django auth
- templates that use Twitter Bootstrap CSS and JS
- standard Django app files populated with the necessary import statements
- ONE COMMAND that generates and deploys your app
There are just a few easy and quick steps to take before you are on your way to an awesome and live site!
- If you don't have it, install pip (http://pypi.python.org/pypi/pip/)
- Make sure you have virtualenv (http://pypi.python.org/pypi/virtualenv/). You can just do
pip install virtualenv
. - Signup for a (free) Heroku account (https://api.heroku.com/signup)
- Download the Heroku Toolbelt (https://toolbelt.herokuapp.com/)
Choose your project name (i.e. coolproject) and the path where you want your project to live (i.e. /Users/cooldude/Documents/MyProjects/)
git clone git://github.com/suneel0101/django-buddy.git
heroku login
(You will be prompted to enter your Heroku username and password.)cd django-buddy
source venv/bin/activate
pip install -r requirements.txt
There are two main options.
- Generate the app and deploy it all in one command.
- Generate the app, modify it and then deploy it.
python manage.py generate --path='/Users/cooldude/Documents/MyProjects/' --name='coolproject' --deploy
The script will prompt you to create a superuser for the local database. Then, it will deploy to Heroku and ask you to create a superuser for the live database.
python manage.py generate --path='/Users/cooldude/Documents/MyProjects/' --name='coolproject'
Then,
cd /Users/cooldude/Documents/MyProjects/coolproject
source venv/bin/activate
pip install -r requirements.txt
Modify the project however you like until you're ready to deploy it. Then,
python manage.py deploy
Make sure to run the following so that all requirements are installed:
- Get in your project directory
source venv/bin/activate
pip install -r requirements.txt
project_name /
starter_app/
views, admin, models, management commands
media/
css/
twitter bootstrap css
js/
twitter bootstrap js
templates/
base.html - template base
login.html - basic landing page with login functionality
home.html - basic logged in home page
settings/
settings.py
You can add different local/dev/staging/production settings files in the settings module