local_settings.py.example 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ## Debug settings
  2. DEBUG = False # If you are running without another HTTP server, must be true
  3. DEBUG_TOOLBAR = False # Must install package django-debug-toolbar to use
  4. ## For django debug toolbar
  5. INTERNAL_IPS = ('127.0.0.1',)
  6. ## Notification admins
  7. ADMINS = (
  8. # ('Joe Admin', 'joeadmin@example.com'),
  9. )
  10. ## PostgreSQL Database settings
  11. #DATABASES = {
  12. # 'default': {
  13. # 'ENGINE' : 'django.db.backends.postgresql_psycopg2',
  14. # 'NAME' : 'parabola',
  15. # 'USER' : 'parabola',
  16. # 'PASSWORD': 'parabola',
  17. # 'HOST' : '',
  18. # 'PORT' : '',
  19. # },
  20. #}
  21. ## MySQL Database settings
  22. #DATABASES = {
  23. # 'default': {
  24. # 'ENGINE' : 'django.db.backends.mysql',
  25. # 'NAME' : 'parabola',
  26. # 'USER' : 'parabola',
  27. # 'PASSWORD': 'parabola',
  28. # 'HOST' : '',
  29. # 'PORT' : '',
  30. # # InnoDB WILL NOT work
  31. # 'OPTIONS' : {'init_command': 'SET storage_engine=MyISAM'},
  32. # },
  33. #}
  34. ## Sqlite Database settings
  35. DATABASES = {
  36. 'default': {
  37. 'ENGINE' : 'django.db.backends.sqlite3',
  38. 'NAME' : 'database.db',
  39. },
  40. }
  41. ## Define cache settings
  42. CACHES = {
  43. 'default': {
  44. 'BACKEND' : 'django.core.cache.backends.dummy.DummyCache',
  45. #'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
  46. #'LOCATION': '127.0.0.1:11211',
  47. }
  48. }
  49. ## Use secure session cookies? Make this true if you want all
  50. ## logged-in actions to take place over HTTPS only. If developing
  51. ## locally, you will want to use False.
  52. SESSION_COOKIE_SECURE = False
  53. ## location for saving dev pictures (the 'devs' folder should be inside of this)
  54. MEDIA_ROOT = '/srv/http/web-uploads'
  55. ## web url for serving image files (the 'devs' folder should be inside of this)
  56. MEDIA_URL = '/img/'
  57. ## Make this unique, and don't share it with anybody.
  58. SECRET_KEY = '00000000000000000000000000000000000000000000000'
  59. ## CDN settings
  60. CDN_ENABLED = False
  61. # vim: set ts=4 sw=4 et: