Monday, September 18, 2023

Splitting views.py and urls.py into a directory rather than single files

-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wnUEARYKACcFgmUIQgIJkFrvKC74ta6lFiEEXOYF9uqFRn4815bYWu8oLvi1
rqUAAH1eAP0a5qqApOgpQRRQLrOY5ZkyBzKlgQRRiqbr/JpvzrTeIgD9GqH2
MvUmzUv7PlngGlqP/6pAhiW8j3zmOF0IMcJGGww=
=I1LF
-----END PGP SIGNATURE-----

Hi,

I have an app which has a lot of views and URLs and keeping them in just one file makes it really hard to manage because it is so long. I'd like to make a views and URLs folder which will allow me to break up views and URLs into different categories but I'm not sure what the best way to go about doing that is.

Can someone point me in the right direction please?

Thank you!

Simon.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4svI0xN0uu53BvHzhG9Aa1qvI61v1qPlQOhkOLpaJPRXX1Jysfu-BOmrFlBsDOfHfKRHwTaXJNmKFApZ1W13jQLdpVvXQDEPdWq87T-ILR8%3D%40protonmail.com.

No comments:

Post a Comment