"""
Django settings for ks_site project.

Generated by 'django-admin startproject' using Django 1.11.2.

For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""

import os

# Apparently if APPEND_SLASH is set to False then only django will accept POST data to URLs ending without a trailing slash (.../). So convenient.
# The property created by the satan worshippers themselves will return a 404 whenever user tries to access a URL with a trailing slash. But some others times it won't. Don't touch, hazardous.
#APPEND_SLASH=False

# Directory which will store user-uploaded media and files
MEDIA_ROOT = 'store/static/store/'
MEDIA_URL = '/static/store/'

# Redirect URL after user logs in
LOGIN_REDIRECT_URL = "/store/"

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'q8w7g5lbyhn-_xae!xicjok-3g%%z2_1=(h3z2$sr0-xq)1sx8'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['www.thedecorista.in', 'thedecorista.in', '139.59.14.19', 'localhost', '127.0.0.1', '192.168.8.100', '192.168.8.102', '192.168.8.103', '192.168.8.104', '167.99.149.109']

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'TheDecorista.in@gmail.com'
EMAIL_HOST_PASSWORD = 'pankaj1490'
EMAIL_PORT = 587

# Instamojo vars
API_KEY = 'aea624c92715409aaef627f837084296'
AUTH_TOKEN = 'cb0db22de460a27c4bec151d7cda7f9f'

# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django_extensions',
    'store.apps.StoreConfig',
    'accounts.apps.AccountsConfig',
    'homepage.apps.HomepageConfig',
    'cart.apps.CartConfig',
]

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 = 'ks_site.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, "static/templates"),],
        '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 = 'ks_site.wsgi.application'


# Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'coldcod',
        'USER': 'satwinderpal',
        'PASSWORD': 'macbook',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}


# Password validation
# https://docs.djangoproject.com/en/1.11/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.11/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'Asia/Calcutta'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'prod_static')
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static"),]

1fcc76d56c9c42566b76db63266a12046b05d1c9
<mask token>

<mask token>
MEDIA_ROOT = 'store/static/store/'
MEDIA_URL = '/static/store/'
LOGIN_REDIRECT_URL = '/store/'
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'q8w7g5lbyhn-_xae!xicjok-3g%%z2_1=(h3z2$sr0-xq)1sx8'
DEBUG = True
ALLOWED_HOSTS = ['www.thedecorista.in', 'thedecorista.in', '139.59.14.19',
    'localhost', '127.0.0.1', '192.168.8.100', '192.168.8.102',
    '192.168.8.103', '192.168.8.104', '167.99.149.109']
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'TheDecorista.in@gmail.com'
EMAIL_HOST_PASSWORD = 'pankaj1490'
EMAIL_PORT = 587
API_KEY = 'aea624c92715409aaef627f837084296'
AUTH_TOKEN = 'cb0db22de460a27c4bec151d7cda7f9f'
INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth',
    'django.contrib.contenttypes', 'django.contrib.sessions',
    'django.contrib.messages', 'django.contrib.staticfiles',
    'django_extensions', 'store.apps.StoreConfig',
    'accounts.apps.AccountsConfig', 'homepage.apps.HomepageConfig',
    'cart.apps.CartConfig']
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 = 'ks_site.urls'
TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates',
    'DIRS': [os.path.join(BASE_DIR, 'static/templates')], '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 = 'ks_site.wsgi.application'
DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql', 'NAME':
    'coldcod', 'USER': 'satwinderpal', 'PASSWORD': 'macbook', 'HOST':
    'localhost', 'PORT': '5432'}}
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'}
    ]
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Asia/Calcutta'
USE_I18N = True
USE_L10N = True
USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'prod_static')
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]

<mask token>
import os
MEDIA_ROOT = 'store/static/store/'
MEDIA_URL = '/static/store/'
LOGIN_REDIRECT_URL = '/store/'
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'q8w7g5lbyhn-_xae!xicjok-3g%%z2_1=(h3z2$sr0-xq)1sx8'
DEBUG = True
ALLOWED_HOSTS = ['www.thedecorista.in', 'thedecorista.in', '139.59.14.19',
    'localhost', '127.0.0.1', '192.168.8.100', '192.168.8.102',
    '192.168.8.103', '192.168.8.104', '167.99.149.109']
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'TheDecorista.in@gmail.com'
EMAIL_HOST_PASSWORD = 'pankaj1490'
EMAIL_PORT = 587
API_KEY = 'aea624c92715409aaef627f837084296'
AUTH_TOKEN = 'cb0db22de460a27c4bec151d7cda7f9f'
INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth',
    'django.contrib.contenttypes', 'django.contrib.sessions',
    'django.contrib.messages', 'django.contrib.staticfiles',
    'django_extensions', 'store.apps.StoreConfig',
    'accounts.apps.AccountsConfig', 'homepage.apps.HomepageConfig',
    'cart.apps.CartConfig']
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 = 'ks_site.urls'
TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates',
    'DIRS': [os.path.join(BASE_DIR, 'static/templates')], '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 = 'ks_site.wsgi.application'
DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql', 'NAME':
    'coldcod', 'USER': 'satwinderpal', 'PASSWORD': 'macbook', 'HOST':
    'localhost', 'PORT': '5432'}}
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'}
    ]
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Asia/Calcutta'
USE_I18N = True
USE_L10N = True
USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'prod_static')
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]

"""
Django settings for ks_site project.

Generated by 'django-admin startproject' using Django 1.11.2.

For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""

import os

# Apparently if APPEND_SLASH is set to False then only django will accept POST data to URLs ending without a trailing slash (.../). So convenient.
# The property created by the satan worshippers themselves will return a 404 whenever user tries to access a URL with a trailing slash. But some others times it won't. Don't touch, hazardous.
#APPEND_SLASH=False

# Directory which will store user-uploaded media and files
MEDIA_ROOT = 'store/static/store/'
MEDIA_URL = '/static/store/'

# Redirect URL after user logs in
LOGIN_REDIRECT_URL = "/store/"

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'q8w7g5lbyhn-_xae!xicjok-3g%%z2_1=(h3z2$sr0-xq)1sx8'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['www.thedecorista.in', 'thedecorista.in', '139.59.14.19', 'localhost', '127.0.0.1', '192.168.8.100', '192.168.8.102', '192.168.8.103', '192.168.8.104', '167.99.149.109']

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'TheDecorista.in@gmail.com'
EMAIL_HOST_PASSWORD = 'pankaj1490'
EMAIL_PORT = 587

# Instamojo vars
API_KEY = 'aea624c92715409aaef627f837084296'
AUTH_TOKEN = 'cb0db22de460a27c4bec151d7cda7f9f'

# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django_extensions',
    'store.apps.StoreConfig',
    'accounts.apps.AccountsConfig',
    'homepage.apps.HomepageConfig',
    'cart.apps.CartConfig',
]

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 = 'ks_site.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, "static/templates"),],
        '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 = 'ks_site.wsgi.application'


# Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'coldcod',
        'USER': 'satwinderpal',
        'PASSWORD': 'macbook',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}


# Password validation
# https://docs.djangoproject.com/en/1.11/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.11/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'Asia/Calcutta'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'prod_static')
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static"),]
