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

2023-09-18 Thread Mike Dewhirst
phone) Original message From: 'Simon Connah' via Django users Date: 18/9/23 22:27 (GMT+10:00) To: django-users@googlegroups.com Subject: Splitting views.py and urls.py into a directory rather than single files Hi,I have an app which has a lot of views and URLs and keeping them

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

2023-09-18 Thread Asim Sulehria
You are welcome On Mon, Sep 18, 2023 at 6:00 PM 'Simon Connah' via Django users < django-users@googlegroups.com> wrote: > Thank you! That got it working! > > --- Original Message --- > On Monday, September 18th, 2023 at 13:34, Asim Sulehria < > de.asimha...@gmail.com> wrote: > > You can

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

2023-09-18 Thread 'Simon Connah' via Django users
Thank you! That got it working! --- Original Message --- On Monday, September 18th, 2023 at 13:34, Asim Sulehria wrote: > You can just directly declare an array of URL Patterns in a separate file and > then import that file in the url files you want to make the main urls file > >

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

2023-09-18 Thread Asim Sulehria
You can just directly declare an array of URL Patterns in a separate file and then import that file in the url files you want to make the main urls file On Mon, Sep 18, 2023 at 5:28 PM 'Simon Connah' via Django users < django-users@googlegroups.com> wrote: > Hi, > > I have an app which has a lot

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

2023-09-18 Thread 'Simon Connah' via Django users
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