Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. import os
  2.  
  3.  
  4. SECRET_KEY = 'xxx'
  5.  
  6.  
  7. DEBUG = False
  8.  
  9.  
  10.  
  11. ALLOWED_HOSTS = ['*']
  12. EMAIL_HOST = 'smtp.gmail.com'
  13. EMAIL_HOST_USER = 'myemail@example.com'
  14. EMAIL_HOST_PASSWORD = 'password'
  15. EMAIL_PORT = 587
  16. EMAIL_USE_TLS = True
  17.  
  18.  
  19.  
  20. INSTALLED_APPS = [
  21. 'WebDev',
  22. 'Marketing',
  23. 'DataOutsourcing',
  24. 'Consultancy',
  25. 'BPO',
  26. 'Contact',
  27. 'Home',
  28. 'django.contrib.admin',
  29. 'django.contrib.auth',
  30. 'django.contrib.contenttypes',
  31. 'django.contrib.sessions',
  32. 'django.contrib.messages',
  33. 'django.contrib.staticfiles',
  34. 'django.contrib.sites',
  35. ]
  36. SITE_ID = 1
  37. MIDDLEWARE = [
  38. 'django.middleware.security.SecurityMiddleware',
  39. 'django.contrib.sessions.middleware.SessionMiddleware',
  40. 'django.middleware.common.CommonMiddleware',
  41. 'django.middleware.csrf.CsrfViewMiddleware',
  42. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  43. 'django.contrib.messages.middleware.MessageMiddleware',
  44. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  45. ]
  46.  
  47. ROOT_URLCONF = 'MegaaOpes.urls'
  48.  
  49. TEMPLATES = [
  50. {
  51. 'BACKEND': 'django.template.backends.django.DjangoTemplates',
  52. 'DIRS': [],
  53. 'APP_DIRS': True,
  54. 'OPTIONS': {
  55. 'context_processors': [
  56. 'django.template.context_processors.debug',
  57. 'django.template.context_processors.request',
  58. 'django.contrib.auth.context_processors.auth',
  59. 'django.contrib.messages.context_processors.messages',
  60.  
  61. ],
  62. },
  63. },
  64. ]
  65.  
  66. WSGI_APPLICATION = 'MegaaOpes.wsgi.application'
  67.  
  68.  
  69. # Database
  70. # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
  71.  
  72. DATABASES = {
  73. 'default': {
  74. 'ENGINE': 'django.db.backends.sqlite3',
  75. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  76. }
  77. }
  78.  
  79.  
  80. # Password validation
  81. # https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password- validators
  82.  
  83. AUTH_PASSWORD_VALIDATORS = [
  84. {
  85. 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
  86. },
  87. {
  88. 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
  89. },
  90. {
  91. 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
  92. },
  93. {
  94. 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
  95. },
  96. ]
  97.  
  98.  
  99. # Internationalization
  100. # https://docs.djangoproject.com/en/1.10/topics/i18n/
  101.  
  102. LANGUAGE_CODE = 'en-us'
  103.  
  104. TIME_ZONE = 'UTC'
  105.  
  106. USE_I18N = True
  107.  
  108. USE_L10N = True
  109.  
  110. USE_TZ = True
  111.  
  112.  
  113. # Static files (CSS, JavaScript, Images)
  114. # https://docs.djangoproject.com/en/1.10/howto/static-files/
  115.  
  116. # Static files (CSS, JavaScript, Images)
  117. # https://docs.djangoproject.com/en/1.6/howto/static-files/
  118.  
  119.  
  120.  
  121.  
  122. # Parse database configuration from $DATABASE_URL
  123.  
  124.  
  125.  
  126. # Honor the 'X-Forwarded-Proto' header for request.is_secure()
  127. SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
  128.  
  129. # Allow all host headers
  130. ALLOWED_HOSTS = ['*']
  131.  
  132. # Static files (CSS, JavaScript, Images)
  133. # https://docs.djangoproject.com/en/1.7/howto/static-files/
  134.  
  135. #BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  136.  
  137.  
  138.  
  139. # URL prefix for static files.
  140. # Example: "http://example.com/static/", "http://static.example.com/"
  141. STATIC_URL = '/static/'
  142.  
  143. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  144.  
  145. <link rel="stylesheet" href="/static/css/style.css">
  146.  
  147. │ db.sqlite3
  148. │ manage.py
  149. ├───APP1
  150. │ │ admin.py
  151. │ │ apps.py
  152. │ │ forms.py
  153. │ │ models.py
  154. │ │ tests.py
  155. │ │ urls.py
  156. │ │ views.py
  157. │ │ __init__.py
  158. │ │
  159. │ ├───migrations
  160. │ │ __init__.py
  161. │ │
  162. │ ├───templates
  163. │ email.html
  164. │ success.html
  165. ├───Home
  166. │ │ admin.py
  167. │ │ apps.py
  168. │ │ models.py
  169. │ │ tests.py
  170. │ │ urls.py
  171. │ │ views.py
  172. │ │ __init__.py
  173. │ │
  174. │ ├───migrations
  175. │ │ __init__.py
  176. │ │
  177. │ ├───static
  178. │ │ ├───css
  179. │ │ │ bootstrap.css
  180. │ │ │ bootstrap.min.css
  181. │ │ │ simple-sidebar.css
  182. │ │ │ style.css
  183. │ │ │
  184. │ │ └───js
  185. │ │ bootstrap.js
  186. │ │ bootstrap.min.js
  187. │ │ custom.js
  188. │ │ jquery-2.1.1.js
  189. │ │ jquery.js
  190. │ │ modernizr.js
  191. │ │ smoothscroll.js
  192. │ │
  193. │ ├───templates
  194. │ └───Home
  195. │ index.html
  196. └───Project_Name
  197. settings.py
  198. urls.py
  199. wsgi.py
  200. __init__.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement