No Description
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.

settings_default.py 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # Django settings for k4ever project.
  2. DEBUG = False
  3. TEMPLATE_DEBUG = DEBUG
  4. PISTON_DISPLAY_ERRORS = DEBUG
  5. DEBUG_PROPOGATE_EXCEPTIONS = DEBUG
  6. ADMINS = (
  7. # ('Your Name', 'your_email@domain.com'),
  8. )
  9. MANAGERS = ADMINS
  10. # use sqlite by default
  11. DATABASES = {
  12. 'default': {
  13. 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  14. 'NAME': 'k4ever.db', # Or path to database file if using sqlite3.
  15. 'USER': '', # Not used with sqlite3.
  16. 'PASSWORD': '', # Not used with sqlite3.
  17. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
  18. 'PORT': '', # Set to empty string for default. Not used with sqlite3.
  19. }
  20. }
  21. # Default model ids for some purposes
  22. DRINK_TYPE_ID = 2
  23. SNACK_TYPE_ID = 1
  24. PLUGIN_GROUP_ID = 1
  25. # Local time zone for this installation. Choices can be found here:
  26. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  27. # although not all choices may be available on all operating systems.
  28. # On Unix systems, a value of None will cause Django to use the same
  29. # timezone as the operating system.
  30. # If running in a Windows environment this must be set to the same as your
  31. # system time zone.
  32. TIME_ZONE = 'Europe/Berlin'
  33. # Language code for this installation. All choices can be found here:
  34. # http://www.i18nguy.com/unicode/language-identifiers.html
  35. LANGUAGE_CODE = 'de-de'
  36. SITE_ID = 1
  37. # If you set this to False, Django will make some optimizations so as not
  38. # to load the internationalization machinery.
  39. USE_I18N = True
  40. # If you set this to False, Django will not format dates, numbers and
  41. # calendars according to the current locale
  42. USE_L10N = True
  43. # Absolute path to the directory that holds media.
  44. # Example: "/home/media/media.lawrence.com/"
  45. MEDIA_ROOT = 'media/'
  46. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  47. # trailing slash if there is a path component (optional in other cases).
  48. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  49. MEDIA_URL = '/media/'
  50. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  51. # trailing slash.
  52. # Examples: "http://foo.com/media/", "/media/".
  53. ADMIN_MEDIA_PREFIX = '/media/admin/'
  54. # Make this unique, and don't share it with anybody.
  55. # As we want this different on every system, it is commented out here.
  56. # SECRET_KEY = 'l(f*a$l)_n_n_5#lh@rvhv(na^!lj1u#bow=c!*90(1w$5%b^j'
  57. ################################
  58. ## Authentication Block ##
  59. ################################
  60. AUTH_PROFILE_MODULE = 'main.UserProfile'
  61. LOGIN_URL = '/user/login/'
  62. LOGIN_REDIRECT_URL = '/'
  63. AUTHENTICATION_BACKENDS = (
  64. 'django.contrib.auth.backends.ModelBackend',
  65. )
  66. # List of callables that know how to import templates from various sources.
  67. TEMPLATE_LOADERS = (
  68. 'django.template.loaders.filesystem.Loader',
  69. 'django.template.loaders.app_directories.Loader',
  70. 'django.template.loaders.app_directories.load_template_source',
  71. )
  72. MIDDLEWARE_CLASSES = (
  73. 'django.middleware.common.CommonMiddleware',
  74. 'django.contrib.sessions.middleware.SessionMiddleware',
  75. 'django.middleware.csrf.CsrfViewMiddleware',
  76. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  77. 'django.contrib.messages.middleware.MessageMiddleware',
  78. )
  79. ROOT_URLCONF = 'k4ever.urls'
  80. TEMPLATE_DIRS = (
  81. # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  82. # Always use forward slashes, even on Windows.
  83. # Don't forget to use absolute paths, not relative paths.
  84. )
  85. INSTALLED_APPS = (
  86. 'django.contrib.auth',
  87. 'django.contrib.contenttypes',
  88. 'django.contrib.sessions',
  89. 'django.contrib.sites',
  90. 'django.contrib.messages',
  91. 'buyable',
  92. 'transaction',
  93. 'main',
  94. 'django.contrib.admin',
  95. 'easy_thumbnails',
  96. )