OTHER License
Artechetype (terrible pun) is a grab-and-go starter django+js I use when making new digital projects. You're welcome to as well, and if you come across improvements, pull requests are welcome.
NOTE: I'm still working on it. Don't use it quite yet.
Set up your new repo, say github.com:myusername/mynewproject.git
Clone artechetype into a local directory.
git clone [email protected]:skoczen/artechetype.git mynewproject.git
Set PROJECT_NAME
, GITHUB_REPO
and any other env settings you need in fabfile.py
Set up the your virtualenv, and pip install fabric
Set up your remotes manually, or by use the fab helper command.
fab initial_setup
You're set.
cd project
./manage.py runserver
I love heroku. It's easy, it scales well, and it takes care of most of the stuff I don't want to think about. Here's how to get artechetype running on it:
Install the gem, if you don't already have it
gem install heroku
Authenticate
heroku login
Create the app
heroku create --stack cedar mynewproject
I use this set of addons in almost every project
heroku addons:add custom_domains:basic heroku addons:add zerigo_dns:basic heroku addons:add memcache:5mb heroku addons:add logging:expanded heroku addons:add redistogo:nano ```
Set up your domains
heroku domains:add www.mydomain.com
heroku domains:add mydomain.com
Set your keys
keys_and_passwords.py
. heroku config:add AWS_ACCESS_KEY_ID=foo-bar-1
keys_and_passwords_private.py
Keys you're likely want to set:
bash heroku config:add AWS_ACCESS_KEY_ID=foo` heroku config:add AWS_SECRET_ACCESS_KEY=bar heroku config:add AWS_STORAGE_BUCKET_NAME=myproject heroku config:add DB_PASSWORD=pass1234 # analytics settings.
fab deploy
Note: If you haven't created the AWS bucket, simply running ./manage.py sync_static
will do it for you.