Traceback (most recent call last):<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/cherrypy.wsgiserver.wsgiserver2", line 1353, in communicate<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/cherrypy.wsgiserver.wsgiserver2", line 868, in respond<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/cherrypy.wsgiserver.wsgiserver2", line 2267, in respond<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/cherrypy.wsgiserver.wsgiserver2", line 2477, in __call__<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/django.core.handlers.wsgi", line 206, in __call__<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/django.core.handlers.base", line 194, in get_response<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/django.core.handlers.base", line 229, in handle_uncaught_exception<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/django.views.debug", line 69, in technical_500_response<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/django.views.debug", line 322, in get_traceback_html<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/django.template.base", line 125, in __init__<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/django.template.base", line 152, in compile_string<br/>
File "home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/django.template.debug", line 35, in __init__<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/django.template.base", line 239, in __init__<br/>
File "/home/rpmbuild/venv/build/pyi.linux2/MF/out00-PYZ.pyz/django.template.base", line 353, in add_library<br/>
AttributeError: 'NoneType' object has no attribute 'tags'
我为在cherrypy服务器上运行的django项目安装了pyinstaller。
它从命令提示符python manage.py runserver
开始工作
不通过pyinstaller捆绑使用。
我在settings.py
中测试了开发环境和生产环境DEBUG = False/True<br>
Allowed_HOSTS = ['*']
答案 0 :(得分:0)
你可以在某处使用这样的代码:
<something>.tags
估计为无
答案 1 :(得分:0)
如果你使用django.contrib.markup.templatetags.markup
这就是问题,因为django.contrib.markup.templatetags.markup
已被弃用