UTMediaCAT / Voyage

Other
12 stars 5 forks source link

server.py / admin page no longer runs when updating from django 1.8.0 to 1.11.29 #96

Closed jacqueline-chan closed 4 years ago

jacqueline-chan commented 4 years ago

server.py:34: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. config = yaml.load(config_yaml)

jacqueline-chan commented 4 years ago

using SafeLoader gets rid of the WARNING but it does not solve the ERROR of not being able to run the django project

jacqueline-chan commented 4 years ago

python3 manage.py runserver 0.0.0.0:80 is the root cause

provides the following error:

Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File "/root/.pyenv/versions/mediacatProjectDjangoUpgrade/lib/python3.5/site-packages/django/core/management/init.py", line 364, in execute_from_command_line utility.execute() File "/root/.pyenv/versions/mediacatProjectDjangoUpgrade/lib/python3.5/site-packages/django/core/management/init.py", line 308, in execute settings.INSTALLED_APPS File "/root/.pyenv/versions/mediacatProjectDjangoUpgrade/lib/python3.5/site-packages/django/conf/init.py", line 56, in getattr self._setup(name) File "/root/.pyenv/versions/mediacatProjectDjangoUpgrade/lib/python3.5/site-packages/django/conf/init.py", line 41, in _setup self._wrapped = Settings(settings_module) File "/root/.pyenv/versions/mediacatProjectDjangoUpgrade/lib/python3.5/site-packages/django/conf/init.py", line 110, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/root/.pyenv/versions/3.5.2/lib/python3.5/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 665, in exec_module File "", line 222, in _call_with_frames_removed File "/voyage_storage_with_django_upgrade/Voyage/Frontend/Frontend/settings.py", line 13, in from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as TCP ImportError: cannot import name 'TEMPLATE_CONTEXT_PROCESSORS'