Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- SECRET_KEY = 'xxx'
- DEBUG = False
- ALLOWED_HOSTS = ['*']
- EMAIL_HOST = 'smtp.gmail.com'
- EMAIL_HOST_USER = 'myemail@example.com'
- EMAIL_HOST_PASSWORD = 'password'
- EMAIL_PORT = 587
- EMAIL_USE_TLS = True
- INSTALLED_APPS = [
- 'WebDev',
- 'Marketing',
- 'DataOutsourcing',
- 'Consultancy',
- 'BPO',
- 'Contact',
- 'Home',
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'django.contrib.sites',
- ]
- SITE_ID = 1
- MIDDLEWARE = [
- 'django.middleware.security.SecurityMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- ]
- ROOT_URLCONF = 'MegaaOpes.urls'
- TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'context_processors': [
- 'django.template.context_processors.debug',
- 'django.template.context_processors.request',
- 'django.contrib.auth.context_processors.auth',
- 'django.contrib.messages.context_processors.messages',
- ],
- },
- },
- ]
- WSGI_APPLICATION = 'MegaaOpes.wsgi.application'
- # Database
- # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
- }
- }
- # Password validation
- # https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password- validators
- AUTH_PASSWORD_VALIDATORS = [
- {
- 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
- },
- ]
- # Internationalization
- # https://docs.djangoproject.com/en/1.10/topics/i18n/
- LANGUAGE_CODE = 'en-us'
- TIME_ZONE = 'UTC'
- USE_I18N = True
- USE_L10N = True
- USE_TZ = True
- # Static files (CSS, JavaScript, Images)
- # https://docs.djangoproject.com/en/1.10/howto/static-files/
- # Static files (CSS, JavaScript, Images)
- # https://docs.djangoproject.com/en/1.6/howto/static-files/
- # Parse database configuration from $DATABASE_URL
- # Honor the 'X-Forwarded-Proto' header for request.is_secure()
- SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
- # Allow all host headers
- ALLOWED_HOSTS = ['*']
- # Static files (CSS, JavaScript, Images)
- # https://docs.djangoproject.com/en/1.7/howto/static-files/
- #BASE_DIR = os.path.dirname(os.path.dirname(__file__))
- # URL prefix for static files.
- # Example: "http://example.com/static/", "http://static.example.com/"
- STATIC_URL = '/static/'
- EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
- <link rel="stylesheet" href="/static/css/style.css">
- │ db.sqlite3
- │ manage.py
- │
- ├───APP1
- │ │ admin.py
- │ │ apps.py
- │ │ forms.py
- │ │ models.py
- │ │ tests.py
- │ │ urls.py
- │ │ views.py
- │ │ __init__.py
- │ │
- │ ├───migrations
- │ │ __init__.py
- │ │
- │ ├───templates
- │ email.html
- │ success.html
- │
- ├───Home
- │ │ admin.py
- │ │ apps.py
- │ │ models.py
- │ │ tests.py
- │ │ urls.py
- │ │ views.py
- │ │ __init__.py
- │ │
- │ ├───migrations
- │ │ __init__.py
- │ │
- │ ├───static
- │ │ ├───css
- │ │ │ bootstrap.css
- │ │ │ bootstrap.min.css
- │ │ │ simple-sidebar.css
- │ │ │ style.css
- │ │ │
- │ │ └───js
- │ │ bootstrap.js
- │ │ bootstrap.min.js
- │ │ custom.js
- │ │ jquery-2.1.1.js
- │ │ jquery.js
- │ │ modernizr.js
- │ │ smoothscroll.js
- │ │
- │ ├───templates
- │ └───Home
- │ index.html
- │
- └───Project_Name
- settings.py
- urls.py
- wsgi.py
- __init__.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement