settings.py 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. from __future__ import absolute_import, unicode_literals
  2. # Django settings for httpexample project.
  3. DEBUG = True
  4. TEMPLATE_DEBUG = DEBUG
  5. ADMINS = (
  6. # ('Your Name', 'your_email@domain.com'),
  7. )
  8. MANAGERS = ADMINS
  9. # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  10. DATABASE_ENGINE = ''
  11. # Pth to database file if using sqlite3.
  12. DATABASE_NAME = ''
  13. # Not used with sqlite3.
  14. DATABASE_USER = ''
  15. # Not used with sqlite3.
  16. DATABASE_PASSWORD = ''
  17. # Set to empty string for localhost. Not used with sqlite3.
  18. DATABASE_HOST = ''
  19. # Set to empty string for default. Not used with sqlite3.
  20. DATABASE_PORT = ''
  21. # Local time zone for this installation. Choices can be found here:
  22. # https://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  23. # although not all choices may be available on all operating systems.
  24. # If running in a Windows environment this must be set to the same as your
  25. # system time zone.
  26. TIME_ZONE = 'America/Chicago'
  27. # Language code for this installation. All choices can be found here:
  28. # http://www.i18nguy.com/unicode/language-identifiers.html
  29. LANGUAGE_CODE = 'en-us'
  30. SITE_ID = 1
  31. # If you set this to False, Django will make some optimizations so as not
  32. # to load the internationalization machinery.
  33. USE_I18N = True
  34. # Absolute path to the directory that holds media.
  35. # Example: '/home/media/media.lawrence.com/'
  36. MEDIA_ROOT = ''
  37. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  38. # trailing slash if there is a path component (optional in other cases).
  39. # Examples: 'http://media.lawrence.com', 'http://example.com/media/'
  40. MEDIA_URL = ''
  41. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  42. # trailing slash.
  43. # Examples: 'http://foo.com/media/', '/media/'.
  44. ADMIN_MEDIA_PREFIX = '/media/'
  45. # Make this unique, and don't share it with anybody.
  46. SECRET_KEY = 'p^@q$@nal#-0+w@v_3bcj2ug(zbh5_m2on8^kkn&!e!b=a@o__'
  47. # List of callables that know how to import templates from various sources.
  48. TEMPLATE_LOADERS = (
  49. 'django.template.loaders.filesystem.load_template_source',
  50. 'django.template.loaders.app_directories.load_template_source',
  51. )
  52. MIDDLEWARE_CLASSES = (
  53. 'django.middleware.common.CommonMiddleware',
  54. 'django.contrib.sessions.middleware.SessionMiddleware',
  55. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  56. )
  57. ROOT_URLCONF = 'httpexample.urls'
  58. TEMPLATE_DIRS = (
  59. # Put strings here, like '/home/html/django_templates' or
  60. # 'C:/www/django/templates'.
  61. # Always use forward slashes, even on Windows.
  62. # Don't forget to use absolute paths, not relative paths.
  63. )
  64. INSTALLED_APPS = (
  65. 'django.contrib.auth',
  66. 'django.contrib.contenttypes',
  67. 'django.contrib.sessions',
  68. 'django.contrib.sites',
  69. )