The release notes say django.conf.urls.patterns was removed in 1.10, so in 1.9.12 it should still be there.
You can check the Django version with "import django; django.VERSION". You can run "manage.py shell" and check the version there, but it's possible Gunicorn/mod_wsgi/uWSGI is running a different version, so if in doubt you'd need to show it in a page.
BTW, it doesn't make much sense to upgrade to 1.9, since it will be supported only until April 2017. Logicallly you'd upgrade either to 1.8, which is the LTS version, or to 1.10, which is the latest one.
Antonis Christofides http://djangodeployment.com
On 01/30/2017 08:09 AM, Soham Navadiya wrote:
I upgraded django 1.7 to 1.9.12.--I have seen in django >1.9 doc that they removed from django.conf.urls import patterns.Still after upgrading the django It is not showing any error on,
urlpatterns = patterns()
So how can I check that django upgradations was successfully done or not.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8eb9a7c3-2967-4f78-ac2f-6e2e0177cb87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment