--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8f8a68b4-a3c5-a10d-8246-2ef41635b406%40jfcomputer.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE5VhgUVKqLiGRk80bP2B4O7%3DWBTgkzkS%2BBwHWRByybz_B8HVQ%40mail.gmail.com.
Hi everyone,
I am tasked with updating/upgrading a very old Django web site - I believe it is 1.7. I need convert and need what is required.
Thanks in advance.
I need to convert the following:
from django.conf.urls import patterns, include, url
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8f8a68b4-a3c5-a10d-8246-2ef41635b406%40jfcomputer.com.
-- Signed email is an absolute defence against phishing. This email has been signed with my private key. If you import my public key you can automatically decrypt my signature and be sure it came from me. Your email software can handle signing.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9f972f6c-9a19-8da0-c2fb-2a0a56237f24%40dewhirst.com.au.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFKhtoSO2XrckAe6uqpYoHYxKnqSm4sm3GkaNZXfUeXGs90Ftw%40mail.gmail.com.
from django.urls import include, re_path as url
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE5VhgWFkO%3De-msJwFF2Rwxa1yb8gEho72ge2DZcH_1avCx-Sg%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/IZM9YwsfzX4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c9680819-15cb-47ba-b81e-cb1ce1d65eden%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADpgbkmnm0VzFvfyOTwwZCaACjpwqrfN9LhxoxO8RL%2BE9hpcpA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACX1ULT%3DeAQUZJtfYQBOnv9d5yURKdKr7WBVaMHkrMZkVy-rsQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADpgbk%3DP86q0nehiY8FXpVam%3DP%3DYXKsMOXmfpzfCfWDfffDSmg%40mail.gmail.com.
No, it's not an easy task…
It's not easy because Django 3.0 and above completely moved from python 2 to python 3 and there is no backward compatibility.
So some packages may break.
You have to change all the instances of old code.
You have to check changelog on djanango website and you may have to change some dependencies too.
For example, Django used ‘six’ libraries when it gave support for python 2, but after 3.0, things changed and it will definitely break your old code.
If you still want to migrate, you have to do it carefully, the best option is to create new projects, copy previous Django app to your new project and run the application. The app will give you error related to module import or module not found, then you can replace that code easily from your old app.
Hope it's helpful