settings.py 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # Django settings for httpexample project.
  2. DEBUG = True
  3. TEMPLATE_DEBUG = DEBUG
  4. ADMINS = (
  5. # ('Your Name', 'your_email@domain.com'),
  6. )
  7. MANAGERS = ADMINS
  8. # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  9. DATABASE_ENGINE = ''
  10. # Pth to database file if using sqlite3.
  11. DATABASE_NAME = ''
  12. # Not used with sqlite3.
  13. DATABASE_USER = ''
  14. # Not used with sqlite3.
  15. DATABASE_PASSWORD = ''
  16. # Set to empty string for localhost. Not used with sqlite3.
  17. DATABASE_HOST = ''
  18. # Set to empty string for default. Not used with sqlite3.
  19. DATABASE_PORT = ''
  20. # Local time zone for this installation. Choices can be found here:
  21. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  22. # although not all choices may be available on all operating systems.
  23. # If running in a Windows environment this must be set to the same as your
  24. # system time zone.
  25. TIME_ZONE = 'America/Chicago'
  26. # Language code for this installation. All choices can be found here:
  27. # http://www.i18nguy.com/unicode/language-identifiers.html
  28. LANGUAGE_CODE = 'en-us'
  29. SITE_ID = 1
  30. # If you set this to False, Django will make some optimizations so as not
  31. # to load the internationalization machinery.
  32. USE_I18N = True
  33. # Absolute path to the directory that holds media.
  34. # Example: "/home/media/media.lawrence.com/"
  35. MEDIA_ROOT = ''
  36. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  37. # trailing slash if there is a path component (optional in other cases).
  38. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  39. MEDIA_URL = ''
  40. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  41. # trailing slash.
  42. # Examples: "http://foo.com/media/", "/media/".
  43. ADMIN_MEDIA_PREFIX = '/media/'
  44. # Make this unique, and don't share it with anybody.
  45. SECRET_KEY = 'p^@q$@nal#-0+w@v_3bcj2ug(zbh5_m2on8^kkn&!e!b=a@o__'
  46. # List of callables that know how to import templates from various sources.
  47. TEMPLATE_LOADERS = (
  48. 'django.template.loaders.filesystem.load_template_source',
  49. 'django.template.loaders.app_directories.load_template_source',
  50. # 'django.template.loaders.eggs.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. )