Skip to content

Improve base project structure

Juan Pedro Sánchez requested to merge imp_base_project_conf into main

Hi Dani!

I installed black linter and precommit packages. Also, I restructured a little bit the organization of the code to split global configurations from the application code. Under config folder one can find all global configurations (settings, uwsgi files, global urls...). I splitted settings in 3 parts:

  • base.py: common settings
  • local.py: settings that will be loaded in the local environment (this environment can be local development, production..)
  • test.py: settings to use for running the tests

In the same way, I separated requirements.

  • requirements/base.txt are the common requirements for the different environs
  • requirements/devel.txt are the requirements for develop and test

What do you think about this configuration???

Thanks!! 😄

Merge request reports

Loading