Snipt: Glitch Edition
 
 
 
 
 
 
Go to file
Nick Sergeant a70a3dad79 Fucking hell. 2014-10-20 22:39:16 -04:00
.docker Update nginx conf. 2014-10-06 11:11:20 -04:00
accounts Fix dumb. 2014-10-20 21:58:11 -04:00
blogs Staticfiles stuff. 2014-10-20 20:35:59 -04:00
jobs Some job stuff and some Mixpanel stuff. 2013-10-21 15:22:47 -04:00
media Static templates. 2014-10-20 22:05:52 -04:00
snipts Staticfiles stuff. 2014-10-20 20:35:59 -04:00
static Add static. 2014-10-20 22:29:03 -04:00
templates Staticfiles stuff. 2014-10-20 20:35:59 -04:00
utils Working on Heroku integration. 2014-10-20 14:11:23 -04:00
.ffignore ffignore 2013-02-18 15:52:03 -05:00
.gitignore Add static. 2014-10-20 22:29:03 -04:00
.kick Header for pro-adams theme. 2012-08-20 21:48:37 -04:00
.venv Adding venvs 2011-11-06 10:04:19 -05:00
LICENSE Removing some old Gunicorn stuff and refactors for Django 1.6. 2013-11-06 14:10:04 -05:00
Makefile Cookie domain for Heroku. 2014-10-20 21:13:25 -04:00
Procfile Working on Heroku integration. 2014-10-20 13:29:41 -04:00
README.md Static templates. 2014-10-20 22:16:13 -04:00
__init__.py Moving 2012-03-04 15:49:51 -05:00
admin.py List users by -date_joined in admin 2012-05-09 14:54:03 -04:00
git-pre-commit Cleanup MathJax rendering a bit. 2014-05-20 10:43:05 -04:00
manage.py Removing some old Gunicorn stuff and refactors for Django 1.6. 2013-11-06 14:10:04 -05:00
monitor.py Moving 2012-03-04 15:49:51 -05:00
requirements.txt Sslify. 2014-10-20 21:48:09 -04:00
settings.py Fucking hell. 2014-10-20 22:39:16 -04:00
settings_local.py-template Static templates. 2014-10-20 22:16:13 -04:00
urls.py Fucking hell. 2014-10-20 22:39:16 -04:00
views.py Fix dumb. 2014-10-20 21:58:11 -04:00
wsgi.py Static templates. 2014-10-20 22:02:04 -04:00

README.md

Snipt

This is the codebase for the website, Snipt.net.

Running the Django app

  1. Clone the repo.
  2. Setup a virtualenv.
  3. pip install -r requirements.txt
  4. pip install --index-url https://code.stripe.com --upgrade stripe
  5. python manage.py syncdb
  6. python manage.py migrate
  7. python manage.py runserver
  8. If you created a superuser in the syncdb step, you need to also run python manage.py backfill_api_keys to generate an API key for that user.

Deploying to Heroku

  1. Clone the repo.
  2. heroku create
  3. heroku addons:add heroku-postgresql:standard-0
  4. heroku addons:add bonsai
  5. heroku config:add AWS_ACCESS_KEY_ID=
  6. heroku config:add AWS_SECRET_ACCESS_KEY=
  7. heroku config:add AWS_STORAGE_BUCKET_NAME=
  8. heroku config:add DEBUG=False
  9. heroku config:add INTERCOM_SECRET_KEY=
  10. heroku config:add POSTMARK_API_KEY=
  11. heroku config:add RAVEN_CONFIG_DSN=
  12. heroku config:add SECRET_KEY=
  13. heroku config:add STRIPE_SECRET_KEY=
  14. heroku config:add USE_SSL=False
  15. git push heroku
  16. heroku run pip install --index-url https://code.stripe.com --upgrade stripe
  17. heroku run python manage.py syncdb
  18. heroku run python manage.py migrate

Any problems / questions / bugs, create an issue. Thanks! :)