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.py 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # Django settings for oscar project.
  2. DEBUG = True
  3. TEMPLATE_DEBUG = DEBUG
  4. ADMINS = (
  5. # ('Your Name', 'your_email@domain.com'),
  6. )
  7. MANAGERS = ADMINS
  8. # Local time zone for this installation. Choices can be found here:
  9. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  10. # although not all choices may be available on all operating systems.
  11. # On Unix systems, a value of None will cause Django to use the same
  12. # timezone as the operating system.
  13. # If running in a Windows environment this must be set to the same as your
  14. # system time zone.
  15. TIME_ZONE = 'Europe/London'
  16. # Language code for this installation. All choices can be found here:
  17. # http://www.i18nguy.com/unicode/language-identifiers.html
  18. LANGUAGE_CODE = 'en-us'
  19. SITE_ID = 1
  20. # If you set this to False, Django will make some optimizations so as not
  21. # to load the internationalization machinery.
  22. USE_I18N = True
  23. # If you set this to False, Django will not format dates, numbers and
  24. # calendars according to the current locale
  25. USE_L10N = True
  26. # Absolute path to the directory that holds media.
  27. # Example: "/home/media/media.lawrence.com/"
  28. MEDIA_ROOT = ''
  29. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  30. # trailing slash if there is a path component (optional in other cases).
  31. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  32. MEDIA_URL = ''
  33. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  34. # trailing slash.
  35. # Examples: "http://foo.com/media/", "/media/".
  36. ADMIN_MEDIA_PREFIX = '/media/'
  37. # Make this unique, and don't share it with anybody.
  38. SECRET_KEY = '$)a7n&o80u!6y5t-+jrd3)3!%vh&shg$wqpjpxc!ar&p#!)n1a'
  39. # List of callables that know how to import templates from various sources.
  40. TEMPLATE_LOADERS = (
  41. 'django.template.loaders.filesystem.Loader',
  42. 'django.template.loaders.app_directories.Loader',
  43. # 'django.template.loaders.eggs.Loader',
  44. )
  45. MIDDLEWARE_CLASSES = (
  46. 'django.middleware.common.CommonMiddleware',
  47. 'django.contrib.sessions.middleware.SessionMiddleware',
  48. 'django.middleware.csrf.CsrfViewMiddleware',
  49. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  50. 'django.contrib.messages.middleware.MessageMiddleware',
  51. )
  52. ROOT_URLCONF = 'urls'
  53. TEMPLATE_DIRS = (
  54. # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  55. # Always use forward slashes, even on Windows.
  56. # Don't forget to use absolute paths, not relative paths.
  57. )
  58. INSTALLED_APPS = (
  59. 'django.contrib.auth',
  60. 'django.contrib.contenttypes',
  61. 'django.contrib.sessions',
  62. 'django.contrib.sites',
  63. 'django.contrib.messages',
  64. 'django.contrib.admin',
  65. 'django_extensions',
  66. # Apps from oscar
  67. 'oscar',
  68. 'oscar.order',
  69. #'oscar.product',
  70. 'oscar.basket',
  71. 'oscar.payment',
  72. 'oscar.offer',
  73. 'oscar.address',
  74. 'oscar.stock',
  75. 'oscar.image',
  76. # To use an alternative app to one of oscar's core ones,
  77. # add it here (eg replace oscar.payment with sampleapp.payment)
  78. 'product'
  79. )
  80. # Local overrides
  81. try:
  82. from local_settings import *
  83. except ImportError:
  84. pass