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.

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