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.example80
1 files changed, 56 insertions, 24 deletions
diff --git a/local_settings.py.example b/local_settings.py.example
index 9af4ebc8..f5d23c89 100644
--- a/local_settings.py.example
+++ b/local_settings.py.example
@@ -1,42 +1,74 @@
-### Django settings for archlinux project.
-
## Debug settings
-DEBUG = False
+DEBUG = False # If you are running without another HTTP server, must be true
+TEMPLATE_DEBUG = False
+DEBUG_TOOLBAR = False # Must install package django-debug-toolbar to use
+
+## For django debug toolbar
+INTERNAL_IPS = ('127.0.0.1',)
## Notification admins
ADMINS = (
# ('Joe Admin', 'joeadmin@example.com'),
)
-## Sqlite Database settings
-#DATABASE_ENGINE = 'sqlite3'
-#DATABASE_NAME = 'archweb.db'
+## PostgreSQL Database settings
+#DATABASES = {
+# 'default': {
+# 'ENGINE' : 'django.db.backends.postgresql_psycopg2',
+# 'NAME' : 'parabola',
+# 'USER' : 'parabola',
+# 'PASSWORD': 'parabola',
+# 'HOST' : '',
+# 'PORT' : '',
+# },
+#}
## MySQL Database settings
-#DATABASE_ENGINE = 'mysql'
-#DATABASE_NAME = 'archlinux'
-#DATABASE_USER = 'archlinux'
-#DATABASE_PASSWORD = 'archlinux'
-#DATABASE_HOST = ''
-#DATABASE_PORT = ''
+#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'},
+# },
+#}
-## Define cache middleware settings
-CACHE_BACKEND = 'memcached://127.0.0.1:11211'
-CACHE_MIDDLEWARE_SECONDS = 900
-CACHE_MIDDLEWARE_KEY_PREFIX = 'arch'
+## Sqlite Database settings
+DATABASES = {
+ 'default': {
+ 'ENGINE' : 'django.db.backends.sqlite3',
+ 'NAME' : 'database.db',
+ },
+}
-## location for saving dev pictures
-MEDIA_ROOT = '/var/www/archlinux/htdocs/img/'
+## Define cache settings
+CACHES = {
+ 'default': {
+ 'BACKEND' : 'django.core.cache.backends.dummy.DummyCache',
+ #'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
+ #'LOCATION': '127.0.0.1:11211',
+ }
+}
-## web url for serving image files
-MEDIA_URL = 'http://www.archlinux.org/img/'
+## Use secure session cookies? Make this true if you want all
+## logged-in actions to take place over HTTPS only. If developing
+## locally, you will want to use False.
+SESSION_COOKIE_SECURE = False
+
+## 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 (the 'devs' folder should be inside of this)
+MEDIA_URL = '/img/'
## Make this unique, and don't share it with anybody.
SECRET_KEY = '00000000000000000000000000000000000000000000000'
-#dummy cache
-if DEBUG:
- CACHE_BACKEND = 'dummy:///'
+## CDN settings
+CDN_ENABLED = False
# vim: set ts=4 sw=4 et:
-