Moved imports to startup.py.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"""
|
||||
Module with code executed during Studio startup
|
||||
"""
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
# Force settings to run so that the python path is modified
|
||||
@@ -14,6 +15,10 @@ def run():
|
||||
"""
|
||||
Executed during django startup
|
||||
"""
|
||||
# Patch the xml libs.
|
||||
from safe_lxml import defuse_xml_libs
|
||||
defuse_xml_libs()
|
||||
|
||||
django_utils_translation.patch()
|
||||
|
||||
autostartup()
|
||||
|
||||
Reference in New Issue
Block a user