mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Fix typos in settings.py (#9048)
This commit is contained in:
parent
a3be8e986b
commit
49824ddf31
@ -171,7 +171,7 @@ SECRET_KEY = config.get_secret_key()
|
|||||||
# The filesystem location for served static files
|
# The filesystem location for served static files
|
||||||
STATIC_ROOT = config.get_static_dir()
|
STATIC_ROOT = config.get_static_dir()
|
||||||
|
|
||||||
# The filesystem location for uploaded meadia files
|
# The filesystem location for uploaded media files
|
||||||
MEDIA_ROOT = config.get_media_dir()
|
MEDIA_ROOT = config.get_media_dir()
|
||||||
|
|
||||||
# Needed for the parts importer, directly impacts the maximum parts that can be uploaded
|
# Needed for the parts importer, directly impacts the maximum parts that can be uploaded
|
||||||
@ -1290,7 +1290,7 @@ ACCOUNT_DEFAULT_HTTP_PROTOCOL = get_setting(
|
|||||||
|
|
||||||
if ACCOUNT_DEFAULT_HTTP_PROTOCOL is None:
|
if ACCOUNT_DEFAULT_HTTP_PROTOCOL is None:
|
||||||
if SITE_URL and SITE_URL.startswith('https://'):
|
if SITE_URL and SITE_URL.startswith('https://'):
|
||||||
# auto-detect HTTPS prtoocol
|
# auto-detect HTTPS protocol
|
||||||
ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
|
ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
|
||||||
else:
|
else:
|
||||||
# default to http
|
# default to http
|
||||||
@ -1361,7 +1361,7 @@ MARKDOWNIFY = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ignore these error typeps for in-database error logging
|
# Ignore these error types for in-database error logging
|
||||||
IGNORED_ERRORS = [Http404, django.core.exceptions.PermissionDenied]
|
IGNORED_ERRORS = [Http404, django.core.exceptions.PermissionDenied]
|
||||||
|
|
||||||
# Maintenance mode
|
# Maintenance mode
|
||||||
@ -1420,7 +1420,7 @@ if CUSTOM_FLAGS:
|
|||||||
SESAME_MAX_AGE = 300
|
SESAME_MAX_AGE = 300
|
||||||
LOGIN_REDIRECT_URL = '/api/auth/login-redirect/'
|
LOGIN_REDIRECT_URL = '/api/auth/login-redirect/'
|
||||||
|
|
||||||
# Configuratino for API schema generation
|
# Configuration for API schema generation
|
||||||
SPECTACULAR_SETTINGS = {
|
SPECTACULAR_SETTINGS = {
|
||||||
'TITLE': 'InvenTree API',
|
'TITLE': 'InvenTree API',
|
||||||
'DESCRIPTION': 'API for InvenTree - the intuitive open source inventory management system',
|
'DESCRIPTION': 'API for InvenTree - the intuitive open source inventory management system',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user