summaryrefslogtreecommitdiff
path: root/local_settings.py.example
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-01 00:53:12 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-01 00:53:12 -0500
commitad54af54f3af11bad7b020527c11d18cf94c2ab3 (patch)
tree71c6fee45563c7a0d616325e1eca52f1742490b6 /local_settings.py.example
parent474290795424774700867205f32dec0f2618b614 (diff)
Update localsettings.py.example, README, etc for parabolaweb.
Diffstat (limited to 'local_settings.py.example')
-rw-r--r--local_settings.py.example29
1 files changed, 19 insertions, 10 deletions
diff --git a/local_settings.py.example b/local_settings.py.example
index bad03921..4ad87a36 100644
--- a/local_settings.py.example
+++ b/local_settings.py.example
@@ -1,9 +1,9 @@
-### Django settings for archlinux project.
+### Django settings for Parabola GNU/Linux-libre project.
## Debug settings
-DEBUG = False
-TEMPLATE_DEBUG = True
-DEBUG_TOOLBAR = True
+DEBUG = True # As far as I can tell, this must be True for /media/* URLs to work
+TEMPLATE_DEBUG = True # More helpful this way
+DEBUG_TOOLBAR = False # Must install package django-debug-toolbar to use
## For django debug toolbar
INTERNAL_IPS = ('127.0.0.1',)
@@ -17,15 +17,24 @@ ADMINS = (
DATABASES = {
'default': {
'ENGINE' : 'django.db.backends.mysql',
- 'NAME' : 'archlinux',
- 'USER' : 'archlinux',
- 'PASSWORD': 'archlinux',
+ 'NAME' : 'parabola',
+ 'USER' : 'parabola',
+ 'PASSWORD': 'parabola',
'HOST' : '',
'PORT' : '',
- 'OPTIONS' : {'init_command': 'SET storage_engine=InnoDB'},
+ # InnoDB WILL NOT work
+ 'OPTIONS' : {'init_command': 'SET storage_engine=MyISAM'},
},
}
+## sqlite3 Database settings
+#DATABASES = {
+# 'default': {
+# 'ENGINE' : 'sqlite3',
+# 'NAME' : '/srv/http/web/db.sqlite',
+# },
+#}
+
## Define cache settings
CACHES = {
'default': {
@@ -43,10 +52,10 @@ CACHE_MIDDLEWARE_SECONDS = 300
SESSION_COOKIE_SECURE = False
## location for saving dev pictures
-MEDIA_ROOT = '/srv/example.com/img/'
+MEDIA_ROOT = '/srv/http/media/devs/'
## web url for serving image files
-MEDIA_URL = 'http://example.com/img/'
+MEDIA_URL = '/media/'
## Make this unique, and don't share it with anybody.
SECRET_KEY = '00000000000000000000000000000000000000000000000'