Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django settings outside of project

Tags:

python

django

I have a Django project that uses SQLAlchemy to use some legacy ORM objects. This application also hits up an ldap server for user authentication. I was getting sick of moving from development to production servers for both ldap and the database. I was hoping to create a IS_DEVELOPMENT variable in the settings.py. One problem I am running into is that the ORM modules are not in the Django project.

I know django.conf does a great job of parsing that settings file and making those settings available to you throughout your application. What I can not figure out is how to make those same settings available to myself outside of that app.

Anyone done this one before?

like image 692
grantk Avatar asked Nov 29 '25 01:11

grantk


1 Answers

"Standalone Django Scripts"

like image 130
Ignacio Vazquez-Abrams Avatar answered Nov 30 '25 15:11

Ignacio Vazquez-Abrams



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!