pyShelf Open Source Ebook Server  0.2.1
Open source, console based E-book server
Variables
pyShelf.src.frontend.settings Namespace Reference

Variables

 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 
string SECRET_KEY = "@(9b9jslgg41u1u=mr)-2*-n2x0vef0zsy39*z@sz18&tvow18"
 
bool DEBUG = False
 
list ALLOWED_HOSTS = ["*"]
 
list INSTALLED_APPS
 
list MIDDLEWARE
 
list INTERNAL_IPS
 
string ROOT_URLCONF = "frontend.urls"
 
list TEMPLATES
 
string WSGI_APPLICATION = "frontend.wsgi.application"
 
dictionary DATABASES
 
list AUTH_PASSWORD_VALIDATORS
 
string LANGUAGE_CODE = "en-us"
 
string TIME_ZONE = "UTC"
 
bool USE_I18N = True
 
bool USE_L10N = True
 
bool USE_TZ = True
 
string STATIC_URL = "/static/"
 
 STATIC_ROOT = os.path.join(BASE_DIR, "interface/static/")
 

Detailed Description

Django settings for frontend project.

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

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

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

Variable Documentation

◆ AUTH_PASSWORD_VALIDATORS

list pyShelf.src.frontend.settings.AUTH_PASSWORD_VALIDATORS
Initial value:
1 = [
2  {
3  "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
4  },
5  {"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",},
6  {"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",},
7  {"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",},
8 ]

◆ DATABASES

dictionary pyShelf.src.frontend.settings.DATABASES
Initial value:
1 = {
2  "default": {
3  "ENGINE": "django.db.backends.postgresql",
4  # "ENGINE": "django.db.backends.sqlite3",
5  "NAME": "pyshelf",
6  "PASSWORD": "",
7  # "NAME": os.path.join(BASE_DIR, "db.sqlite3"),
8  }
9 }

◆ INSTALLED_APPS

list pyShelf.src.frontend.settings.INSTALLED_APPS
Initial value:
1 = [
2  "django.contrib.admin",
3  "django.contrib.auth",
4  "django.contrib.contenttypes",
5  "django.contrib.sessions",
6  "django.contrib.messages",
7  "django.contrib.staticfiles",
8  "interface",
9  "interface.templatetags",
10  "debug_toolbar",
11 ]

◆ INTERNAL_IPS

list pyShelf.src.frontend.settings.INTERNAL_IPS
Initial value:
1 = [
2  # ...
3  "127.0.0.1",
4  # ...
5 ]

◆ MIDDLEWARE

list pyShelf.src.frontend.settings.MIDDLEWARE
Initial value:
1 = [
2  "django.middleware.security.SecurityMiddleware",
3  "django.contrib.sessions.middleware.SessionMiddleware",
4  "django.middleware.common.CommonMiddleware",
5  "django.middleware.csrf.CsrfViewMiddleware",
6  "debug_toolbar.middleware.DebugToolbarMiddleware",
7  "django.contrib.auth.middleware.AuthenticationMiddleware",
8  "django.contrib.messages.middleware.MessageMiddleware",
9  "django.middleware.clickjacking.XFrameOptionsMiddleware",
10 ]

◆ TEMPLATES

list pyShelf.src.frontend.settings.TEMPLATES
Initial value:
1 = [
2  {
3  "BACKEND": "django.template.backends.django.DjangoTemplates",
4  "DIRS": [],
5  "APP_DIRS": True,
6  "OPTIONS": {
7  "context_processors": [
8  "django.template.context_processors.debug",
9  "django.template.context_processors.request",
10  "django.contrib.auth.context_processors.auth",
11  "django.contrib.messages.context_processors.messages",
12  ],
13  },
14  },
15 ]