django自带的admin错误怎么处理啊?见内容
[DEBUG] 2019-03-29 10:52:38,505 [uWSGIWorker3Core0:139813926107264] [django.template:872] [base:_resolve_lookup]- Exception while resolving variable 'is_popup' in template 'admin/index.html'.
Traceback (most recent call last): File "/usr/local/python3/lib/python3.6/site-packages/django/template/base.py", line 829, in _resolve_lookup current = current[bit]
File "/usr/local/python3/lib/python3.6/site-packages/django/template/context.py", line 83, in getitem raise KeyError(key) KeyError: 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.6/site-packages/django/template/base.py", line 835, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.6/site-packages/django/template/base.py", line 843, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.6/site-packages/django/template/base.py", line 850, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_popup] in [{'True': True, 'False': False, 'None': None}, {'csrf_token':
评论 0