alzearafat / DSS-Django

Sistem Pendukung Keputusan (Decision Support System) Pemberian Beasiswa Berbasis Django
GNU General Public License v3.0
8 stars 5 forks source link

python manage.py syncdb --> ImportError: cannot import name TEMPLATE_CONTEXT_PROCESSORS #2

Open ghost opened 6 years ago

ghost commented 6 years ago

Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "C:\Python27\lib\site-packages\django\core\management__init.py", line 364, in execute_from_command_line utility.execute() File "C:\Python27\lib\site-packages\django\core\management__init.py", line 308, in execute settings.INSTALLED_APPS File "C:\Python27\lib\site-packages\django\conf__init.py", line 56, in getattr__ self._setup(name) File "C:\Python27\lib\site-packages\django\conf__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "C:\Python27\lib\site-packages\django\conf\init.py", line 110, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "C:\Python27\lib\importlib\init__.py", line 37, in import_module import__(name) File "D:\MyRepo\DSS-Django\beasiswa_app\settings.py", line 103, in from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as TCP ImportError: cannot import name TEMPLATE_CONTEXT_PROCESSORS

alzearafat commented 6 years ago

@UllmanS

Coba remove line ini dari settings.py:

from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as TCP

Ini masih pakai Django lama, belum sempet update. Di Djangi 1.8 ke atas, TEMPLATE_CONTEXT_PROCESSORS udah deprecated :)