Formatting in settings.py
This commit is contained in:
parent
6e8e1d040a
commit
6ed1025a8d
1 changed files with 31 additions and 33 deletions
|
@ -1,17 +1,16 @@
|
|||
""" bookwyrm settings and configuration """
|
||||
|
||||
|
||||
|
||||
import os
|
||||
import requests
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from environs import Env
|
||||
from typing import AnyStr
|
||||
|
||||
from environs import Env
|
||||
|
||||
|
||||
import requests
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
|
||||
|
||||
# pylint: disable=line-too-long
|
||||
|
||||
env = Env ()
|
||||
env . read_env ( "/etc/bookwyrm/config.env" , recurse = False )
|
||||
DOMAIN = env ("DOMAIN")
|
||||
|
@ -29,13 +28,12 @@ RELEASE_API = env(
|
|||
|
||||
PAGE_LENGTH = env . int ( "PAGE_LENGTH" , 15 )
|
||||
DEFAULT_LANGUAGE = env ( "DEFAULT_LANGUAGE" , "English" )
|
||||
# TODO: extend maximum age to 1 year once termination of active sessions
|
||||
# is implemented (see bookwyrm-social#2278, bookwyrm-social#3082).
|
||||
# TODO: Extend maximum age to 1 year once termination of active sessions is implemented (see bookwyrm-social#2278, bookwyrm-social#3082).
|
||||
SESSION_COOKIE_AGE = env . int ( "SESSION_COOKIE_AGE" , 3600 * 24 * 30 ) # 1 month
|
||||
|
||||
JS_CACHE = "8a89cad7"
|
||||
|
||||
# email
|
||||
# Email
|
||||
EMAIL_BACKEND = env ( "EMAIL_BACKEND" , "django.core.mail.backends.smtp.EmailBackend" )
|
||||
EMAIL_HOST = env ("EMAIL_HOST")
|
||||
EMAIL_PORT = env . int ( "EMAIL_PORT" , 587 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue