Skip to content

Instantly share code, notes, and snippets.

View BenAtWide's full-sized avatar
🌇
Skiff

Ben Edwards BenAtWide

🌇
Skiff
View GitHub Profile
@BenAtWide
BenAtWide / apache-basic-auth
Created July 17, 2012 14:17 — forked from lurcio/apache-basic-auth
Apache 2.2 Basic Authentication
AuthType Basic
AuthName "Restricted Files"
AuthBasicProvider file
AuthUserFile /path/to/password/file
Require user valid-user
@BenAtWide
BenAtWide / basic_south.sh
Created November 16, 2011 15:21
Basic commands for South migrations.
# create initial migration from existing models
./manage.py schemamigration app_name --initial
# apply the migration
./manage.py migrate app_name
# make a change, create a new migration
./manage.py schemamigration app_name --auto