32👍
✅
Use of patterns is deprecated since django 1.8. See docs. You can use plain lists now.
25👍
The use of patterns is deprecated in Django1.10. Therefore do not import ‘patterns’ and your url pattern should be as follows:
from django.conf.urls import include, url
urlpatterns=[
url(r'^admin/', include(admin.site.urls)),
url(........),
]
- [Django]-Django-debug-toolbar breaking on admin while getting sql stats
- [Django]-Django Models (1054, "Unknown column in 'field list'")
- [Django]-How to route tasks to different queues with Celery and Django
4👍
I ran into this error when trying to install Django-Guardian. Instead of downgrading Django, you can install the latest version of Django-Guardian.
Try,
pip install 'django-guardian>=1.4.6'
This resolved the issue for me.
- [Django]-Multiple annotate Sum terms yields inflated answer
- [Django]-Django store user image in model
- [Django]-Django update table using data from another table
Source:stackexchange.com