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.

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