Created
July 29, 2014 15:18
-
-
Save AbdullahAlh/6ad2cd9e2c3afee021b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Django settings for sirdab_lab_payment project. | |
| For more information on this file, see | |
| https://docs.djangoproject.com/en/1.6/topics/settings/ | |
| For the full list of settings and their values, see | |
| https://docs.djangoproject.com/en/1.6/ref/settings/ | |
| """ | |
| # Build paths inside the project like this: os.path.join(BASE_DIR, ...) | |
| import os | |
| import dj_database_url | |
| # Used Locally | |
| # BASE_DIR = os.path.dirname(os.path.dirname(__file__)) | |
| # Used in Heroku | |
| BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | |
| # Quick-start development settings - unsuitable for production | |
| # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ | |
| # SECURITY WARNING: keep the secret key used in production secret! | |
| SECRET_KEY = '()fi@747gxifj85m6)39+)!o*v0!+6t-k%qvhp21wg3=an58zd' | |
| # SECURITY WARNING: don't run with debug turned on in production! | |
| DEBUG = False | |
| TEMPLATE_DEBUG = False | |
| ALLOWED_HOSTS = [] | |
| CRISPY_TEMPLATE_PACK = 'bootstrap3' | |
| # Application definition | |
| INSTALLED_APPS = ( | |
| 'django.contrib.admin', | |
| 'django.contrib.auth', | |
| 'django.contrib.contenttypes', | |
| 'django.contrib.sessions', | |
| 'django.contrib.messages', | |
| 'django.contrib.staticfiles', | |
| 'payment', | |
| 'contacts', | |
| 'crispy_forms', | |
| 'south', | |
| ) | |
| MIDDLEWARE_CLASSES = ( | |
| '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 = 'sirdab_lab_payment.urls' | |
| WSGI_APPLICATION = 'sirdab_lab_payment.wsgi.application' | |
| # Database | |
| # https://docs.djangoproject.com/en/1.6/ref/settings/#databases | |
| DATABASES = { | |
| 'default': { | |
| 'ENGINE': 'django.db.backends.sqlite3', | |
| 'NAME': 'db.sqlite3', | |
| } | |
| } | |
| # Parse database configuration from $DATABASE_URL | |
| DATABASES['default'] = dj_database_url.config() | |
| # 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 = ['*'] | |
| # Internationalization | |
| # https://docs.djangoproject.com/en/1.6/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.6/howto/static-files/ | |
| PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) | |
| STATIC_ROOT = 'staticfiles' | |
| STATIC_URL = '/static/' | |
| STATICFILES_DIRS = ( | |
| os.path.join(PROJECT_PATH, 'static'), | |
| ) | |
| EMAIL_HOST = 'smtp.gmail.com' | |
| EMAIL_HOST_USER = '[email protected]' | |
| EMAIL_HOST_PASSWORD = '' | |
| EMAIL_PORT = 587 | |
| EMAIL_USE_TLS = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment