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.

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