Folder structure for a Django project that has multi functional module.

51 views
Skip to first unread message

Salima Begum

unread,
May 12, 2021, 12:43:10 AM5/12/21
to django...@googlegroups.com
Hi, 
We initially developed our project with the following folder structure;

old_folder_structure.PNG

As shown in the above image we have developed and integrated everything into a few files. Since the functionality is growing we are planning to separate each functional module as an individual app folder structure. That means module A(app A)  will have its own default .py files that includes its own models.py and views.py, whereas in the previous case everything is under one app folder( just like what is seen in above image). So the new folder structure is created as shown in the image below.

new_folder_structure.PNG

We think the new structure is going to have more advantages, like performance, files organization and etc., but we really want to check with experts in this community. We appreciate your valuable opinion and any other suggestions to improve.

Thanks
~Salima


Ammar Mohammed

unread,
May 12, 2021, 2:07:15 AM5/12/21
to django...@googlegroups.com
Separating every functional module is the right way !
You should build your website on a base module using oop and structural method.

Good luck


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMSz6b%3D5NLDcBwuvNn6_119T2SarYYpt0U-byv1qDYxmtRSLTA%40mail.gmail.com.

Salima Begum

unread,
May 12, 2021, 3:16:05 AM5/12/21
to django...@googlegroups.com
Thank you for your opinion. 

Reply all
Reply to author
Forward
0 new messages