[Django]-Django Deprecation Warning or ImproperlyConfigured error โ€“ Passing a 3-tuple to django.conf.urls.include() is not supported

148๐Ÿ‘

โœ…

As of Django 1.9, the old way of including the admin urls is deprecated. You should pass admin.site.urls directly to url(), without the call to include():

from django.contrib import admin

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    ...
]
๐Ÿ‘คAlasdair

1๐Ÿ‘

I struggled with this on my Macbook. I had a virtual environment activated with Django 2.0 installed. But django-admin was still pointing to a system level install from an old version of django. My solution was to uninstall the system level django. After that, django-admin was pointing to the newer virtualenv version.

๐Ÿ‘ค2achary

0๐Ÿ‘

Itโ€™s problem belongs to your global virtualenv.First step deactivate your virtualenv and delete your old django module.

1.Deactivate your virtualenv deactivate

2.Delete your old django module pip uninstall django

3.Activate yor virtualenv and install new django module

Happy Coding ๐ŸŽ‰

๐Ÿ‘คMuhammadalive

Leave a comment