Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Jul 15, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 15, 2018

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

@ghost ghost changed the title ImportError: cannot import name TEMPLATE_CONTEXT_PROCESSORS python manage.py syncdb --> ImportError: cannot import name TEMPLATE_CONTEXT_PROCESSORS Jul 15, 2018
@alzearafat
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@alzearafat and others