summaryrefslogtreecommitdiff
path: root/local_settings.py.example
diff options
context:
space:
mode:
Diffstat (limited to 'local_settings.py.example')
-rw-r--r--local_settings.py.example48
1 files changed, 35 insertions, 13 deletions
diff --git a/local_settings.py.example b/local_settings.py.example
index 30a67d51..e252d625 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
+DEBUG = False # If you are running without another HTTP server, must be true
TEMPLATE_DEBUG = False
-#DEBUG_TOOLBAR = True
+DEBUG_TOOLBAR = False # Must install package django-debug-toolbar to use
## For django debug toolbar
INTERNAL_IPS = ('127.0.0.1',)
@@ -13,19 +13,41 @@ ADMINS = (
# ('Joe Admin', 'joeadmin@example.com'),
)
-## MySQL Database settings
+## PostgreSQL Database settings
DATABASES = {
'default': {
- 'ENGINE' : 'django.db.backends.mysql',
- 'NAME' : 'archlinux',
- 'USER' : 'archlinux',
- 'PASSWORD': 'archlinux',
+ 'ENGINE' : 'django.db.backends.postgresql_psycopg2',
+ 'NAME' : 'parabola',
+ 'USER' : 'parabola',
+ 'PASSWORD': 'parabola',
'HOST' : '',
'PORT' : '',
- 'OPTIONS' : {'init_command': 'SET storage_engine=InnoDB'},
+ 'OPTIONS' : {},
},
}
+## MySQL Database settings
+#DATABASES = {
+# 'default': {
+# 'ENGINE' : 'django.db.backends.mysql',
+# 'NAME' : 'parabola',
+# 'USER' : 'parabola',
+# 'PASSWORD': 'parabola',
+# 'HOST' : '',
+# 'PORT' : '',
+# # 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': {
@@ -42,11 +64,11 @@ CACHE_MIDDLEWARE_SECONDS = 300
## locally, you will want to use False.
SESSION_COOKIE_SECURE = False
-## location for saving dev pictures
-MEDIA_ROOT = '/srv/example.com/img/'
+## location for saving dev pictures (the 'devs' folder should be inside of this)
+MEDIA_ROOT = '/srv/http/web-uploads'
-## web url for serving image files
-MEDIA_URL = '/media/img/'
+## web url for serving image files (the 'devs' folder should be inside of this)
+MEDIA_URL = '/img/'
## Make this unique, and don't share it with anybody.
SECRET_KEY = '00000000000000000000000000000000000000000000000'