NoReverseMatch at /admin/ error after upgrading Django

Multi tool use
Multi tool use


NoReverseMatch at /admin/ error after upgrading Django



After I upgraded my Django project from 1.8 to 2.0, I try to log into the admin page, and receive this error message. I am able to see the login page, other links of the admin like "http://159.203.172.178/admin/QI/page/", but I can't see the first page only.admin error picture link



I definitely included too many code here because I really don't now where the problem is. Great thanks beforehand.



urls.py for admin:


from django.conf.urls import *
from django.contrib import admin
from django.contrib.admin.views.decorators import staff_member_required
from . import views
from django.urls import path,re_path,reverse,include

app_name="QI"

urlpatterns = [
path('admin/', admin.site.urls),
]



settings.py:


import os
from .settings_secret import *

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

STATIC_URL = '/static/'

STATIC_ROOT = os.path.join(BASE_DIR, 'static')

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

# Application definition

INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'import_export',
'xml_tool',
'haystack',
'QI',
)

MIDDLEWARE = (
'django.middleware.security.SecurityMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',)

ROOT_URLCONF = 'QI.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.template.context_processors.static',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',



The review_transcription_lists that is included in this html file:


{% extends 'admin/base_site.html' %}

{% load staticfiles %}


{% block extrastyle %}
<link rel="stylesheet" href="{% static 'admin/css/forms.css' %}">
<link rel="stylesheet" href="{% static 'admin/css/widgets.css' %}">
{% endblock %}

{% block content %}


All Unapproved Transcriptions











{% for transcription in object_list %}





{% endfor %}
Manuscript Date Transcribed Author
{{ transcription.doc.id_tei }} {{ transcription.uploaded }} {{ transcription.name }}






I see there are two backslashes in the image. before admin. Try removing one may be.
– Ojas Kale
Jul 2 at 19:15





Where, I can't find it. Thanks
– S.Xia
Jul 3 at 13:09





in the image that you uploaded.
– Ojas Kale
Jul 3 at 13:33





still the same error
– S.Xia
Jul 3 at 14:50









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

HCXXUxSz,0 sAFRz2BdiShbM 0yrs,jOTJ855SgURi uu,dVGrZWm KvHA
jgFD,8nRR,e9byohbfNDR1,6 GxU,fqT6VT9GdfU6MBr7N6GICChR Lp

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications