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.

164 lines
6.2 KiB

  1. # -*- coding: utf-8 -*-
  2. # Django settings for mumble_django project.
  3. """
  4. * Copyright (C) 2009, Michael "Svedrin" Ziegler <diese-addy@funzt-halt.net>
  5. *
  6. * Mumble-Django is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This package is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. """
  16. #################################################################
  17. #################################################################
  18. ## ##
  19. ## Mumble-Django will try to auto-detect this value if it ##
  20. ## isn't set, which is the default. However, if this should ##
  21. ## not work as expected, set this to the path where you ##
  22. ## extracted Mumble-Django. ##
  23. ## ##
  24. ## Default: Auto Detection ##
  25. MUMBLE_DJANGO_ROOT = None; ##
  26. ## Examples: ##
  27. #MUMBLE_DJANGO_ROOT = '/home/mistagee/mumble-django'; ##
  28. #MUMBLE_DJANGO_ROOT = 'c:/web/mumble-django'; ##
  29. ## ##
  30. ## For a basic installation, this is all you need to edit in ##
  31. ## this file, the rest will be handled automatically! ##
  32. ## ##
  33. #################################################################
  34. #################################################################
  35. from django.core.urlresolvers import get_script_prefix
  36. from os.path import join, dirname, abspath, exists
  37. if not MUMBLE_DJANGO_ROOT or not exists( MUMBLE_DJANGO_ROOT ):
  38. MUMBLE_DJANGO_ROOT = dirname(dirname(abspath(__file__)));
  39. # The ICE interface version to use.
  40. SLICE_VERSION = (1, 1, 8)
  41. #SLICE_VERSION = (1, 2, 0)
  42. # Murmur 1.2.0 is incompatible with 1.1.8, that's why this needs to be configured here.
  43. # If you have <=1.1.8 and 1.2.0 servers running simultaneously, consider using DBus for
  44. # the <=1.1.8 servers and ICE for 1.2.0. That way, you will be able to manage both server
  45. # versions with the same install of Mumble-Django, without losing any functionality.
  46. # The slice to use for communication over ZeroC ICE.
  47. # This can be set to the path to the Murmur.ice file that resides
  48. # in your Murmur directory.
  49. # Default: None -- use the slices shipped with MD.
  50. SLICE = None
  51. # The default connection string to set for newly created instances.
  52. # ICE:
  53. #DEFAULT_CONN = 'Meta:tcp -h 127.0.0.1 -p 6502'
  54. # DBus:
  55. DEFAULT_CONN = 'net.sourceforge.mumble.murmur'
  56. # Default email address to send mails from.
  57. DEFAULT_FROM_EMAIL = "webmaster@localhost"
  58. # Length of the account activation period, in days.
  59. ACCOUNT_ACTIVATION_DAYS = 30
  60. # Default mumble port. If your server runs under this port, it will not be included in the links in the Channel Viewer.
  61. MUMBLE_DEFAULT_PORT = 64738
  62. # Protect the registration form for private servers?
  63. # If set to True, people will need to enter the server password in order to create accounts.
  64. PROTECTED_MODE = False
  65. # Database settings for Mumble-Django's database. These do NOT need to point to Murmur's database,
  66. # Mumble-Django should use its own!
  67. DATABASE_ENGINE = 'sqlite3'
  68. DATABASE_NAME = join( MUMBLE_DJANGO_ROOT, 'mumble-django.db3' )
  69. DATABASE_USER = ''
  70. DATABASE_PASSWORD = ''
  71. DATABASE_HOST = ''
  72. DATABASE_PORT = ''
  73. # Show debug information on errors?
  74. DEBUG = True
  75. TEMPLATE_DEBUG = DEBUG
  76. ADMINS = (
  77. # ('Your Name', 'your_email@domain.com'),
  78. )
  79. MANAGERS = ADMINS
  80. # Local time zone for this installation. Choices can be found here:
  81. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  82. # although not all choices may be available on all operating systems.
  83. # If running in a Windows environment this must be set to the same as your
  84. # system time zone.
  85. TIME_ZONE = 'Europe/Berlin'
  86. # Language code for this installation. All choices can be found here:
  87. # http://www.i18nguy.com/unicode/language-identifiers.html
  88. LANGUAGE_CODE = 'en-us'
  89. SITE_ID = 1
  90. # If you set this to False, Django will make some optimizations so as not
  91. # to load the internationalization machinery.
  92. USE_I18N = True
  93. # Absolute path to the directory that holds media.
  94. # Example: "/home/media/media.lawrence.com/"
  95. MEDIA_ROOT = join( MUMBLE_DJANGO_ROOT, 'htdocs' )
  96. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  97. # trailing slash if there is a path component (optional in other cases).
  98. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  99. MEDIA_URL = join( get_script_prefix(), 'static' );
  100. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  101. # trailing slash.
  102. # Examples: "http://foo.com/media/", "/media/".
  103. ADMIN_MEDIA_PREFIX = join( get_script_prefix(), 'media' );
  104. # Make this unique, and don't share it with anybody.
  105. SECRET_KEY = 'u-mp185msk#z4%s(do2^5405)y5d!9adbn92)apu_p^qvqh10v'
  106. # List of callables that know how to import templates from various sources.
  107. TEMPLATE_LOADERS = (
  108. 'django.template.loaders.filesystem.load_template_source',
  109. 'django.template.loaders.app_directories.load_template_source',
  110. # 'django.template.loaders.eggs.load_template_source',
  111. )
  112. MIDDLEWARE_CLASSES = (
  113. 'django.middleware.common.CommonMiddleware',
  114. 'django.contrib.sessions.middleware.SessionMiddleware',
  115. 'django.middleware.locale.LocaleMiddleware',
  116. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  117. )
  118. ROOT_URLCONF = 'pyweb.urls'
  119. TEMPLATE_DIRS = (
  120. # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  121. # Always use forward slashes, even on Windows.
  122. # Don't forget to use absolute paths, not relative paths.
  123. join( MUMBLE_DJANGO_ROOT, 'template' ),
  124. )
  125. INSTALLED_APPS = (
  126. 'django.contrib.auth',
  127. 'django.contrib.admin',
  128. 'django.contrib.contenttypes',
  129. 'django.contrib.sessions',
  130. 'django.contrib.sites',
  131. 'registration',
  132. 'mumble',
  133. )