python-ddd icon indicating copy to clipboard operation
python-ddd copied to clipboard

DB-creds in __main__

Open cdorsman opened this issue 2 months ago • 0 comments

Great work. But if I may add a point for improvement:

In your main file, I see that you have DB-creds hardcoded:

container.config.from_dict( dict( # DATABASE_URL="sqlite+pysqlite:///:memory:", DATABASE_URL="postgresql://postgres:password@localhost:5432/postgres", DATABASE_ECHO=False, DEBUG=True, ) )

From a security-perspective, this would be problematic.

cdorsman avatar Oct 13 '25 23:10 cdorsman