settings.py 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. )
  51. MIDDLEWARE_CLASSES = (
  52. 'django.middleware.common.CommonMiddleware',
  53. 'django.contrib.sessions.middleware.SessionMiddleware',
  54. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  55. )
  56. ROOT_URLCONF = 'httpexample.urls'
  57. TEMPLATE_DIRS = (
  58. # Put strings here, like "/home/html/django_templates" or
  59. # "C:/www/django/templates".
  60. # Always use forward slashes, even on Windows.
  61. # Don't forget to use absolute paths, not relative paths.
  62. )
  63. INSTALLED_APPS = (
  64. 'django.contrib.auth',
  65. 'django.contrib.contenttypes',
  66. 'django.contrib.sessions',
  67. 'django.contrib.sites',
  68. )