django-1.6

django-registration - NoReverseMatch at /accounts/login/at /accounts/login/

浪尽此生 提交于 2021-02-20 03:16:53
问题 Trying to make django-registration work within the Django Tutorial polls projects. I'm using Django 1.6, django-registration 1.0 and the django-registration-templates When I try to access http://localhost:8000/accounts/login/ I get NoReverseMatch at /accounts/login/ Reverse for 'index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] The line in the template, mysite/templates/base.html, that's cited in the error report is : <a href="{% url 'index' %}">{% trans

django-registration - NoReverseMatch at /accounts/login/at /accounts/login/

只愿长相守 提交于 2021-02-20 03:10:09
问题 Trying to make django-registration work within the Django Tutorial polls projects. I'm using Django 1.6, django-registration 1.0 and the django-registration-templates When I try to access http://localhost:8000/accounts/login/ I get NoReverseMatch at /accounts/login/ Reverse for 'index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] The line in the template, mysite/templates/base.html, that's cited in the error report is : <a href="{% url 'index' %}">{% trans

django-registration - NoReverseMatch at /accounts/login/at /accounts/login/

99封情书 提交于 2021-02-20 03:10:00
问题 Trying to make django-registration work within the Django Tutorial polls projects. I'm using Django 1.6, django-registration 1.0 and the django-registration-templates When I try to access http://localhost:8000/accounts/login/ I get NoReverseMatch at /accounts/login/ Reverse for 'index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] The line in the template, mysite/templates/base.html, that's cited in the error report is : <a href="{% url 'index' %}">{% trans

django-registration - NoReverseMatch at /accounts/login/at /accounts/login/

删除回忆录丶 提交于 2021-02-20 03:09:56
问题 Trying to make django-registration work within the Django Tutorial polls projects. I'm using Django 1.6, django-registration 1.0 and the django-registration-templates When I try to access http://localhost:8000/accounts/login/ I get NoReverseMatch at /accounts/login/ Reverse for 'index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] The line in the template, mysite/templates/base.html, that's cited in the error report is : <a href="{% url 'index' %}">{% trans

django-registration - NoReverseMatch at /accounts/login/at /accounts/login/

别来无恙 提交于 2021-02-20 03:08:56
问题 Trying to make django-registration work within the Django Tutorial polls projects. I'm using Django 1.6, django-registration 1.0 and the django-registration-templates When I try to access http://localhost:8000/accounts/login/ I get NoReverseMatch at /accounts/login/ Reverse for 'index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] The line in the template, mysite/templates/base.html, that's cited in the error report is : <a href="{% url 'index' %}">{% trans

Invalid HTTP_HOST header in Django 1.6.2

不羁的心 提交于 2020-01-11 08:52:49
问题 I am receiving a lot of Invalid HTTP_HOST header messages from my Django web application- [Django] ERROR: Invalid HTTP_HOST header: 'www.bing.com'.You may need to add u'www.bing.com' to ALLOWED_HOSTS It comes from known websites (like bing.com, google.com ) as well as very random websites ( www2t.biglobe.ne.jp, proxy.me5b.ru ). The message in the emails is: No stack trace available Request repr() unavailable. I have read other questions about this on other SO questions, like this and this and

Why is “django.core.context_processors.request” not enabled by default?

懵懂的女人 提交于 2020-01-01 05:37:18
问题 I was troubleshooting a problem with obtaining the request obj with a new project and realized "django.core.context_processors.request" was commented in vanilla installs of Django. Like the title suggests, why would this seemingly helpful context processor be turned off by default? Is it an issue with performance? Is it an issue with security? Is it somehow redundant? Some mild searching has not turned up anything for me, but I thought I'd ask here. 回答1: This is a good question. The docs say

Django 1.6 TransactionManagementError: database doesn't behave properly when autocommit is off

試著忘記壹切 提交于 2019-12-31 20:06:08
问题 I'm trying to update a project from Django 1.5.5 to Django 1.6 however I've been getting this error everywhere. Traceback (most recent call last): File "project/virtualenv/lib/python2.7/site-packages/django/core/handlers/base.py", line 114, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "project/virtualenv/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 215, in wrapper return self.admin_view(view, cacheable)(*args, **kwargs) File