Hi yes it's bad practice.....this is why: The best point is to be able to reuse applications in different projects. There will be problem if you are saving all your URLs in the “projecturl.py” file. So best practice is to create an “url.py” per application and to include it in your main projects url.py file.
Regards Chuck G. Madamombe NAM: +264 81 842 1284 RSA: +27 78 208 7034 Twitter: @chuckygari Skype: chuckygari Facebook: Chucky Mada Madamombe LinkedIn: Chucknorris Garikayi Madamombe On Sun, 12 Apr 2020, 14:37 Esther Camilo <esthercam...@gmail.com> wrote: > Most of the tutorial recomends you create a url.py inside your app (as > polls for example). Is it a bad practice using only url.py from the main > project folder? > Thanks for your attention. > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0c93108f-370b-4555-8a65-e6d78f829e36%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/0c93108f-370b-4555-8a65-e6d78f829e36%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJaKOsdtNurnoVdqwO8QDtyCBBF2u-nc%2Bzc5%3DHB2Vc%3Dk%3DDernA%40mail.gmail.com.