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
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
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
>
> O
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 j
Details are available on the Django project weblog:
https://www.djangoproject.com/weblog/2023/sep/18/django-50-alpha-1-released/
This is my first alpha release, so let me know if you see something odd!
Cheers, Natalia.
--
You received this message because you are subscribed to the Google Group
I like the following method because it lets me start a project with a single
file of views per app and then later when it grows, split it into named files
in a 'views' directory - without needing to adjust other code which imports
them.1. Create a views directory in the app dir2. Create __init__
6 matches
Mail list logo