MAKENTNU / web

The website of the student organization MAKE NTNU, built with Django.
https://makentnu.no
MIT License
9 stars 5 forks source link

Move all Django-related source code into a top-level `src` folder #601

Closed ddabble closed 1 year ago

ddabble commented 1 year ago

This would make it easier to get an overview over the role of the various files and folders in the project - especially if we add e.g. top-level docs, node (already added), docker or similar folders in the future, which would currently be difficult to spot among all the Django app folders. It would consequently also separate the Django code from other code.

This would mainly just comprise moving all the top-level folders in the repo (at the time of writing), except the .github folder.

Also, all files containing tests could optionally simultaneously be moved to a top-level tests folder. This will likely not bring much value, as this project is an "end product" and not expected to be published for usage by other projects - which would be one reason for moving the tests out of the src folder. Also, we would have to get rid of most relative imports in the tests - which are useful for grouping imports from the containing app separately from other imports (using e.g. code formatter tools).

Additional changes after simply moving the folders, would include: (this is not an exhaustive list)