Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. import os
  2.  
  3. BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  4.  
  5. DEBUG = True
  6.  
  7. ALLOWED_HOSTS = []
  8.  
  9.  
  10. INSTALLED_APPS = (
  11. 'django.contrib.admin',
  12. 'django.contrib.auth',
  13. 'django.contrib.contenttypes',
  14. 'django.contrib.sessions',
  15. 'django.contrib.messages',
  16. 'django.contrib.staticfiles',
  17. 'captcha',
  18. 'widget_tweaks',
  19.  
  20. #Usual apps
  21. 'authentication',
  22. 'basicpages',
  23. 'useractions',
  24. 'bidding',
  25. 'contactUS',
  26.  
  27. )
  28.  
  29.  
  30.  
  31. MIDDLEWARE_CLASSES = [
  32. 'django.middleware.security.SecurityMiddleware',
  33. 'django.contrib.sessions.middleware.SessionMiddleware',
  34. 'django.middleware.common.CommonMiddleware',
  35. 'django.middleware.csrf.CsrfViewMiddleware',
  36. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  37. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  38. 'django.contrib.messages.middleware.MessageMiddleware',
  39. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  40. ]
  41.  
  42.  
  43.  
  44.  
  45.  
  46. ROOT_URLCONF = 'Spartan.urls'
  47.  
  48.  
  49.  
  50. TEMPLATES = [
  51. {
  52. 'BACKEND': 'django.template.backends.django.DjangoTemplates',
  53. 'DIRS': [
  54. BASE_DIR + '/templates/'
  55. ],
  56. 'APP_DIRS': True,
  57. 'OPTIONS': {
  58. 'context_processors': [
  59. 'django.template.context_processors.debug',
  60. 'django.template.context_processors.request',
  61. 'django.contrib.auth.context_processors.auth',
  62. 'django.contrib.messages.context_processors.messages',
  63. ],
  64. },
  65. },
  66. ]
  67.  
  68.  
  69.  
  70. WSGI_APPLICATION = 'Spartan.wsgi.application'
  71.  
  72.  
  73. DATABASES = {
  74. 'default': {
  75. 'ENGINE': 'django.db.backends.sqlite3',
  76. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  77. }
  78. }
  79.  
  80. MEDIA_URL = '/media/'
  81. STATIC_URL = '/static/'
  82.  
  83. STATIC_ROOT = os.path.join(BASE_DIR, "staticcollected")
  84. MEDIA_ROOT = os.path.join(BASE_DIR, "media")
  85.  
  86. STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
  87.  
  88.  
  89. AUTH_PASSWORD_VALIDATORS = [
  90. {
  91. 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
  92. },
  93. {
  94. 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
  95. },
  96. {
  97. 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
  98. },
  99. {
  100. 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
  101. },
  102. ]
  103.  
  104. DATE_FORMAT = 'd/m/Y'
  105.  
  106. TIME_FORMAT = 'H : i'
  107.  
  108. TIME_INPUT_FORMAT = 'H : i'
  109.  
  110. LANGUAGE_CODE = 'en-us'
  111.  
  112. TIME_ZONE = 'UTC'
  113.  
  114. LOGIN_URL='/login/'
  115.  
  116. USE_I18N = True
  117.  
  118. USE_L10N = False
  119.  
  120. USE_TZ = True
  121.  
  122. NOCAPTCHA = True
  123. RECAPTCHA_USE_SSL = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement