filmov
tv
Django Tutorial: Django Settings.py File Explained

Показать описание
"""
Django settings for lpt project.
Generated by 'django-admin startproject' using Django 1.9.7.
For more information on this file, see
For the full list of settings and their values, see
"""
import os
# Quick-start development settings - unsuitable for production
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '8ub$l1nip#d(m43q%swlj3_-d(stl$7zx75cs3+%c$&la5zen)'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
]
MIDDLEWARE_CLASSES = [
]
TEMPLATES = [
{
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
],
},
},
]
# Database
DATABASES = {
'default': {
}
}
# Password validation
AUTH_PASSWORD_VALIDATORS = [
{
},
{
},
{
},
{
},
]
# Internationalization
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
STATIC_URL = '/static/'
Python os module
import os
Base_Dir
Комментарии