Snipt: Glitch Edition
You can not 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 dc94b635a6 Separate searchbox from db. 6 years ago
accounts Moar Heroku stuff. 6 years ago
blogs Remove Disqus on non-blog posts. 6 years ago
media Remove Disqus on non-blog posts. 6 years ago
snipts Don't show signup link if disable_signup. 6 years ago
static Add static. 8 years ago
teams Auth stuff. 6 years ago
templates Some cleanup. 6 years ago
user-admin User admin needs to be in a module, now. 7 years ago
utils Auth stuff. 6 years ago
.gitignore Makefile 7 years ago
.venv Adding venvs 11 years ago
LICENSE Removing some old Gunicorn stuff and refactors for Django 1.6. 9 years ago
Makefile Assets sep. 6 years ago
Procfile Prepping for Heroku. 6 years ago
README.md Remove Disqus on non-blog posts. 6 years ago
__init__.py Moving 11 years ago
forms.py Allow inactive users to login. 7 years ago
manage.py Removing some old Gunicorn stuff and refactors for Django 1.6. 9 years ago
requirements.txt Use certifi. 6 years ago
settings.py Separate searchbox from db. 6 years ago
settings_local.py-template SSL stuff. 6 years ago
urls.py Some cleanup. 6 years ago
views.py Auth stuff. 6 years ago
wsgi.py Need settings. 6 years ago

README.md

Snipt

Deploying to Heroku

  • Clone the repo.
  • heroku create
  • heroku addons:add heroku-postgresql:hobby-dev
  • heroku addons:add searchbox
  • heroku addons:create postmark:10k
  • heroku addons:open postmark -> use an email you control
  • heroku config:add POSTMARK_EMAIL=<email_from_above>
  • heroku config:add DEBUG=False
  • heroku config:add SECRET_KEY=
  • git push heroku
  • heroku run python manage.py migrate
  • heroku run python manage.py createsuperuser
  • Visit yourapp.herokuapp.com and login with the user you just created.

If you want to disable user-facing signup:

  • heroku config:set DISABLE_SIGNUP=true

If you want to enable Disqus comments:

  • heroku config:set DISQUS_SHORTNAME=whatever