Snipt: Glitch Edition
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Nick Sergeant b779948d07 Add static. 9 years ago
.docker Update nginx conf. 9 years ago
accounts Fix dumb. 9 years ago
blogs Staticfiles stuff. 9 years ago
jobs Some job stuff and some Mixpanel stuff. 10 years ago
media Static templates. 9 years ago
snipts Staticfiles stuff. 9 years ago
static Add static. 9 years ago
templates Staticfiles stuff. 9 years ago
utils Working on Heroku integration. 9 years ago
.ffignore ffignore 11 years ago
.gitignore Add static. 9 years ago
.kick Header for pro-adams theme. 11 years ago
.venv Adding venvs 12 years ago
LICENSE Removing some old Gunicorn stuff and refactors for Django 1.6. 10 years ago
Makefile Cookie domain for Heroku. 9 years ago
Procfile Working on Heroku integration. 9 years ago
README.md Static templates. 9 years ago
__init__.py Moving 12 years ago
admin.py List users by -date_joined in admin 12 years ago
git-pre-commit Cleanup MathJax rendering a bit. 9 years ago
manage.py Removing some old Gunicorn stuff and refactors for Django 1.6. 10 years ago
monitor.py Moving 12 years ago
requirements.txt Sslify. 9 years ago
settings.py Add static. 9 years ago
settings_local.py-template Static templates. 9 years ago
urls.py Static templates. 9 years ago
views.py Fix dumb. 9 years ago
wsgi.py Static templates. 9 years ago

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! :)