Algo-Phantoms / Algo-Phantoms-Backend

💻 Algo-Phantoms-Backend is an Application that provides pathways and quizzes along with a code editor to help you towards your DSA journey.📰🔥 This repository contains the REST APIs of the application.✨
MIT License
43 stars 37 forks source link

Multiple Settings Modules #28

Closed bhavikabadjate901 closed 3 years ago

bhavikabadjate901 commented 3 years ago

Usually, it’s a good idea to avoid multiple configuration files, instead, keep your project setup simple. But that’s not always possible, as a Django project starts to grow, the settings.py module can get fairly complex. In those cases, you also want to avoid using if statements like if not DEBUG: # do something.... For clarity and strict separation of what is development configuration and what is production configuration, you can break down the settings.py module into multiple files.

bhavikabadjate901 commented 3 years ago

can you please assign it to me? file structure will look like

AlgoPhantomBackend/ |-- AlgoPhantomBackend/ | |-- init.py | |-- settings/ | | |-- init.py | | |-- base.py | | |-- development.py | | |-- production.py | | +-- staging.py | |-- urls.py | +-- wsgi.py +-- manage.py

diyajaiswal11 commented 3 years ago

Usually, it’s a good idea to avoid multiple configuration files, instead, keep your project setup simple. But that’s not always possible, as a Django project starts to grow, the settings.py module can get fairly complex. In those cases, you also want to avoid using if statements like if not DEBUG: # do something.... For clarity and strict separation of what is development configuration and what is production configuration, you can break down the settings.py module into multiple files.

Hey @bhavikabadjate901 , I don't think this is a considerable issue, I would recommend you to go through the project and come up with more ideas and features to improvise the project. Happy learning :)