intros / django-project-template

The project template for creating new instances of the intros application
1 stars 1 forks source link

django-project-template

The project template for creating new instances of the intros application

Prerequisites

Usage

Use Vagrant. It's better!

Vagrant does virtual machines. You might need to also install VirtualBox


django-admin.py startproject --template https://github.com/intros/django-project-template/zipball/master --name templates/partials/header.html --name=provision_vagrant.sh intros

vagrant up
vagrant ssh

Create the project locally


django-admin.py startproject --template https://github.com/intros/django-project-template/zipball/master --name templates/partials/header.html --name=provision_vagrant.sh intros
cd intros
pip install -r requirements.txt

Update the configuration

In intros/settings/base.py update settings for secret keys:


# Use environment variables for cool stuff, or hardcode them if that's more your style 

AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID", False)
AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY", False)
AWS_SES_REGION_NAME = os.environ.get("AWS_SES_REGION_NAME", "us-east-1")
AWS_SES_REGION_ENDPOINT = os.environ.get("AWS_SES_REGION_ENDPOINT", "email.%s.amazonaws.com" % AWS_SES_REGION_NAME)
AWS_STORAGE_BUCKET_NAME = os.environ.get("AWS_STORAGE_BUCKET_NAME", "")
AWS_CALLING_FORMAT = os.environ.get("AWS_CALLING_FORMAT", "")

Create the databases


# models without South
python manage.py syncdb

# models with South
python manage.py migrate

Run the server


python manage.py runserver