Moved imports to startup.py.

This commit is contained in:
Usman Khalid
2014-09-10 15:52:53 +05:00
parent 789193ef10
commit fc895fe8bf
7 changed files with 69 additions and 0 deletions

View File

@@ -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()