Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
4.2 KiB

  1. # Django settings for mumble_django project.
  2. #################################################################
  3. #################################################################
  4. ## ##
  5. ## The only setting you should alter is this path. ##
  6. ## Mumble-Django will try to auto-detect this value if it ##
  7. ## isn't set, which is the default. However, if this should ##
  8. ## not work as expected, et this to the path where you ##
  9. ## extracted Mumble-Django. ##
  10. ## ##
  11. MUMBLE_DJANGO_ROOT = None; ##
  12. ## ##
  13. ## For a basic installation, this is all you need to edit in ##
  14. ## this file, the rest will be handled automatically! ##
  15. ## ##
  16. #################################################################
  17. ## ##
  18. ## DO NOT CHANGE ANYTHING ELSE IN THIS FILE UNLESS YOU KNOW ##
  19. ## WHAT YOU ARE DOING! ##
  20. ## ##
  21. #################################################################
  22. #################################################################
  23. # Default email address to send mails from.
  24. DEFAULT_FROM_EMAIL = "webmaster@localhost"
  25. ACCOUNT_ACTIVATION_DAYS = 30
  26. from os.path import join, dirname, abspath
  27. if not MUMBLE_DJANGO_ROOT:
  28. MUMBLE_DJANGO_ROOT = dirname(dirname(abspath(__file__)));
  29. DEBUG = True
  30. TEMPLATE_DEBUG = DEBUG
  31. ADMINS = (
  32. # ('Your Name', 'your_email@domain.com'),
  33. )
  34. MANAGERS = ADMINS
  35. DATABASE_ENGINE = 'sqlite3'
  36. DATABASE_NAME = join( MUMBLE_DJANGO_ROOT, 'mumble-django.db3' )
  37. DATABASE_USER = ''
  38. DATABASE_PASSWORD = ''
  39. DATABASE_HOST = ''
  40. DATABASE_PORT = ''
  41. # Local time zone for this installation. Choices can be found here:
  42. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  43. # although not all choices may be available on all operating systems.
  44. # If running in a Windows environment this must be set to the same as your
  45. # system time zone.
  46. TIME_ZONE = 'Europe/Berlin'
  47. # Language code for this installation. All choices can be found here:
  48. # http://www.i18nguy.com/unicode/language-identifiers.html
  49. LANGUAGE_CODE = 'en-us'
  50. SITE_ID = 1
  51. # If you set this to False, Django will make some optimizations so as not
  52. # to load the internationalization machinery.
  53. USE_I18N = True
  54. # Absolute path to the directory that holds media.
  55. # Example: "/home/media/media.lawrence.com/"
  56. MEDIA_ROOT = join( MUMBLE_DJANGO_ROOT, 'htdocs' )
  57. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  58. # trailing slash if there is a path component (optional in other cases).
  59. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  60. MEDIA_URL = ''
  61. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  62. # trailing slash.
  63. # Examples: "http://foo.com/media/", "/media/".
  64. ADMIN_MEDIA_PREFIX = '/media/'
  65. # Make this unique, and don't share it with anybody.
  66. SECRET_KEY = 'u-mp185msk#z4%s(do2^5405)y5d!9adbn92)apu_p^qvqh10v'
  67. # List of callables that know how to import templates from various sources.
  68. TEMPLATE_LOADERS = (
  69. 'django.template.loaders.filesystem.load_template_source',
  70. 'django.template.loaders.app_directories.load_template_source',
  71. # 'django.template.loaders.eggs.load_template_source',
  72. )
  73. MIDDLEWARE_CLASSES = (
  74. 'django.middleware.common.CommonMiddleware',
  75. 'django.contrib.sessions.middleware.SessionMiddleware',
  76. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  77. )
  78. ROOT_URLCONF = 'pyweb.urls'
  79. TEMPLATE_DIRS = (
  80. # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  81. # Always use forward slashes, even on Windows.
  82. # Don't forget to use absolute paths, not relative paths.
  83. join( MUMBLE_DJANGO_ROOT, 'template' ),
  84. )
  85. INSTALLED_APPS = (
  86. 'django.contrib.auth',
  87. 'django.contrib.admin',
  88. 'django.contrib.contenttypes',
  89. 'django.contrib.sessions',
  90. 'django.contrib.sites',
  91. 'registration',
  92. 'mumble',
  93. )