etianen / django-watson

Full-text multi-table search application for Django. Easy to install and use, with good performance.
BSD 3-Clause "New" or "Revised" License
1.21k stars 129 forks source link

NoReverseMatch at /admin/ 'admin' is not a registered namespace with Django 2.2.5 #265

Closed oumkale closed 4 years ago

oumkale commented 4 years ago

from django.conf.urls import url from chelaapp import views from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import re_path,include

template tagging

from chelaapp import views app_name='chelaapp' urlpatterns=[ url(r'^index/$',views.index,name='index.html'),

re_path(r'^admin/',admin.site.urls),

url(r'^admin/',admin.site.urls),
url(r'^about.html/$',views.about,name='about.html'),
url(r'^courses/$',views.courses,name='courses.html'),
url(r'^teacher/$',views.teacher,name='teacher.html'),
url(r'^blog/$',views.blog,name='blog.html'),
url(r'^contact/$',views.contact,name='contact.html'),
url(r'^login/$',views.login,name='login.html'),
#path(('admin/',views.admin.site.urls)),

#url(r'^admin/',admin.site.urls,name='admin'),

]# + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

biozz commented 4 years ago

There is a great stack overflow answer about how to add admin urls.

And this repository is about django-watson package and not django in general.