Untitled

mail@pastecode.io avatar
unknown
plain_text
10 days ago
1.7 kB
3
Indexable
Never
import os
from pytz import timezone as indiantime

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

DEBUG = True

SECURE_PROXY_SSL_HEADER = None

SESSION_COOKIE_SECURE = False

CSRF_COOKIE_SECURE = False

TEMPLATE_DEBUG = DEBUG

SESSION_EXPIRE_AT_BROWSER_CLOSE = True

ALLOWED_HOSTS = ['*']

DATABASES = {
    'default': {
    'ENGINE': 'django.db.backends.mysql',
   'NAME': 'faqprod_nov22',
    'USER': 'localuser',
    'PASSWORD': 'P@ssw0rd',
    # 'PASSWORD': 'P@ssw0rd',
     # 'HOST': '192.168.1.67',#'210.212.180.164',
     # Or an IP Address that your DB is hosted on
     # 'HOST': '210.212.180.167',
     # 'PORT': '8032',
    }
}

#static and media file local settings
PROJECT_DIR = os.path.dirname(BASE_DIR)
STATIC_URL = '/static/'
MEDIA_URL = '/media/'
S3_USE_SIGV4 = False
MEDIA_ROOT = os.path.join(PROJECT_DIR,'faq-extra','media')
STATIC_ROOT = os.path.join(PROJECT_DIR,'faq-extra','static')
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'faq', 'static'),)

#local mail settings
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'noreply@wilp.bits-pilani.ac.in'
EMAIL_HOST_PASSWORD = '-40Joules'
FROM_EMAIL = 'noreply@wilp.bits-pilani.ac.in'
DEFAULT_FROM_EMAIL = FROM_EMAIL
SERVER_EMAIL = EMAIL_HOST_USER

MEDIA_ROOT = os.path.join(os.environ['HOME'],'faq-share-dir', 'faq3','media')
STATIC_ROOT = os.path.join(os.environ['HOME'],'faq-share-dir', 'faq3','static')
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'faq','static'), )


ROOT_URLCONF = 'faq.local_urls'











Leave a Comment