/settings.py

https://github.com/joskid/bellum · Python · 126 lines · 57 code · 55 blank · 14 comment · 0 complexity · ff7a6291c605d7979a38bd35e0f5adc6 MD5 · raw file

  1. #
  2. #
  3. # if you do not agree to conditions set forth in README.txt, delete entire directory containing Bellum code and data NOW
  4. #
  5. #
  6. #
  7. DEBUG = True
  8. TEMPLATE_DEBUG = DEBUG
  9. SMF_ENABLED = True # if SMF not enabled, you
  10. # won't need to install SMF
  11. # as Bellum won't run SMF-related routines
  12. SMF_NAME = 'bellum_forum'
  13. SMF_USER = 'root'
  14. SMF_PASS = 'root'
  15. SMF_HOST = 'localhost'
  16. SMF_GROUP_UNALLIED = 5 # unallied SMF group
  17. SMF_GROUP_ALLIED = 6 # allied SMF group
  18. SMF_GROUP_LEADER = 7 # alliance leader SMF group
  19. SMF_POST_GROUP = 4 # a post-dependent group
  20. SMF_CAT_ALLIANCE = 2 # category ID for alliance forums
  21. SMF_SECURITY_PROFILE = 1 # default security profile
  22. DATABASE_ENGINE = 'mysql'
  23. DATABASE_NAME = 'bellum'
  24. DATABASE_USER = 'root'
  25. DATABASE_PASSWORD = 'root'
  26. DATABASE_HOST = 'localhost'
  27. DATABASE_PORT = ''
  28. TIME_ZONE = 'Europe/Warsaw'
  29. LANGUAGE_CODE = 'pl'
  30. SITE_ID = 1
  31. USE_I18N = False
  32. MEDIA_ROOT = 'D:/projects/webapps/bellum/media/' # with trailing /
  33. MEDIA_URL = 'http://bellum.localhost/media/'
  34. SECRET_KEY = 'bydesireandambitiontheresahungestillunsatisfied'
  35. TEMPLATE_LOADERS = (
  36. 'django.template.loaders.filesystem.load_template_source',
  37. 'django.template.loaders.app_directories.load_template_source',
  38. # 'django.template.loaders.eggs.load_template_source',
  39. )
  40. MIDDLEWARE_CLASSES = (
  41. 'django.middleware.common.CommonMiddleware',
  42. 'django.contrib.sessions.middleware.SessionMiddleware',
  43. 'djangomako.middleware.MakoMiddleware',
  44. 'bellum.orders.run.OrderMiddleware',
  45. #'debug_toolbar.middleware.DebugToolbarMiddleware',
  46. )
  47. #INTERNAL_IPS = ('127.0.0.1', )
  48. ROOT_URLCONF = 'bellum.urls'
  49. #DEBUG_TOOLBAR_CONFIG = {'INTERCEPT_REDIRECTS':False}
  50. TEMPLATE_DIRS = (
  51. 'D:/projects/webapps/bellum/templates/',
  52. # 'C:/Python25/Lib/site-packages/debug_toolbar/templates',
  53. )
  54. INSTALLED_APPS = (
  55. 'django.contrib.sessions',
  56. 'bellum.common',
  57. 'bellum.alliance',
  58. 'bellum.register',
  59. 'bellum.uprofile',
  60. 'bellum.mother',
  61. 'bellum.province',
  62. 'bellum.orders',
  63. 'bellum.chat',
  64. 'bellum.space',
  65. 'bellum.landarmy',
  66. 'bellum.stats',
  67. 'bellum.portal',
  68. # 'debug_toolbar',
  69. )
  70. MAKO_OUTPUT_ENCODING = 'utf-8'
  71. CACHE_BACKEND = 'dummy:///'