Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
- DEBUG = True
- ALLOWED_HOSTS = []
- INSTALLED_APPS = (
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'captcha',
- 'widget_tweaks',
- #Usual apps
- 'authentication',
- 'basicpages',
- 'useractions',
- 'bidding',
- 'contactUS',
- )
- MIDDLEWARE_CLASSES = [
- 'django.middleware.security.SecurityMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- ]
- ROOT_URLCONF = 'Spartan.urls'
- TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [
- BASE_DIR + '/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 = 'Spartan.wsgi.application'
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
- }
- }
- MEDIA_URL = '/media/'
- STATIC_URL = '/static/'
- STATIC_ROOT = os.path.join(BASE_DIR, "staticcollected")
- MEDIA_ROOT = os.path.join(BASE_DIR, "media")
- STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
- 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',
- },
- ]
- DATE_FORMAT = 'd/m/Y'
- TIME_FORMAT = 'H : i'
- TIME_INPUT_FORMAT = 'H : i'
- LANGUAGE_CODE = 'en-us'
- TIME_ZONE = 'UTC'
- LOGIN_URL='/login/'
- USE_I18N = True
- USE_L10N = False
- USE_TZ = True
- NOCAPTCHA = True
- RECAPTCHA_USE_SSL = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement