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),
...
]
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.
- [Django]-Custom QuerySet and Manager without breaking DRY?
- [Django]-Change a form value before validation in Django form
- [Django]-How to print BASE_DIR from settings.py from django app in terminal?
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 ๐
- [Django]-Django development IDE
- [Django]-Get list item dynamically in django templates
- [Django]-How to access array elements in a Django template?