# File and folder routes for Django views

**URL:** <https://forum.djangoproject.com/t/file-and-folder-routes-for-django-views/11912>\
**Category:** Show & Tell\
**Created:** [February 1, 2022, 6:49am UTC](https://forum.djangoproject.com/t/file-and-folder-routes-for-django-views/11912 "2022-02-01T06:49:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerivas](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/jerivas/32/7137_2.png) [@jerivas](https://forum.djangoproject.com/u/jerivas)\
**Post date:** [February 1, 2022, 6:49am UTC](https://forum.djangoproject.com/t/file-and-folder-routes-for-django-views/11912/1 "2022-02-01T06:49:36Z")

</div>

Hey Djangonauts 👋

I’ve been thinking about exploring file-based routing for Django views as an alternative to having code for a feature split across `forms.py`, `views.py`, `urls,py`, and `template.html`. The idea is that all view, form, and template code for a given feature can live together, and the urlpattern can be inferred from the folder structure (a la Next.js and similar frameworks).

Here’s my first stab at this concept, would love to learn what others think and if this idea has any traction: [jerivas/django-file-router: File and folder routes for Django views (github.com)](https://github.com/jerivas/django-file-router)
