mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-06-27 15:31:44 +02:00
fix: issue with import (#1245)
This commit is contained in:
parent
f7a2f049bd
commit
ab4d9d67df
@ -445,19 +445,6 @@ CELERY_TASK_ALWAYS_EAGER = False
|
|||||||
if os.environ.get("TESTING"):
|
if os.environ.get("TESTING"):
|
||||||
CELERY_TASK_ALWAYS_EAGER = True
|
CELERY_TASK_ALWAYS_EAGER = True
|
||||||
|
|
||||||
|
|
||||||
if GLOBAL_LOGIN_REQUIRED:
|
|
||||||
# this should go after the AuthenticationMiddleware middleware
|
|
||||||
MIDDLEWARE.insert(6, "login_required.middleware.LoginRequiredMiddleware")
|
|
||||||
LOGIN_REQUIRED_IGNORE_PATHS = [
|
|
||||||
r'/accounts/login/$',
|
|
||||||
r'/accounts/logout/$',
|
|
||||||
r'/accounts/signup/$',
|
|
||||||
r'/accounts/password/.*/$',
|
|
||||||
r'/accounts/confirm-email/.*/$',
|
|
||||||
# r'/api/v[0-9]+/',
|
|
||||||
]
|
|
||||||
|
|
||||||
# if True, only show original, don't perform any action on videos
|
# if True, only show original, don't perform any action on videos
|
||||||
DO_NOT_TRANSCODE_VIDEO = False
|
DO_NOT_TRANSCODE_VIDEO = False
|
||||||
|
|
||||||
@ -544,3 +531,16 @@ try:
|
|||||||
from .dev_settings import * # noqa
|
from .dev_settings import * # noqa
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if GLOBAL_LOGIN_REQUIRED:
|
||||||
|
# this should go after the AuthenticationMiddleware middleware
|
||||||
|
MIDDLEWARE.insert(6, "login_required.middleware.LoginRequiredMiddleware")
|
||||||
|
LOGIN_REQUIRED_IGNORE_PATHS = [
|
||||||
|
r'/accounts/login/$',
|
||||||
|
r'/accounts/logout/$',
|
||||||
|
r'/accounts/signup/$',
|
||||||
|
r'/accounts/password/.*/$',
|
||||||
|
r'/accounts/confirm-email/.*/$',
|
||||||
|
# r'/api/v[0-9]+/',
|
||||||
|
]
|
||||||
|
@ -1 +1 @@
|
|||||||
VERSION = "5.0.0"
|
VERSION = "5.0.1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user