We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I opened settings.py and saw that you use SQLite:
settings.py
SQLite
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3', } }
It's a bad practice to be honest.
I recommented to use PostgreSQL. This database is much better suited for professional development.
Your settings should look something like this:
DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": os.getenv("POSTGRES_DB"), "USER": os.getenv("POSTGRES_USER"), "PASSWORD": os.getenv("POSTGRES_PASSWORD"), "HOST": "db", "PORT": "5432", } }
But better read the official documentation.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!
I opened
settings.py
and saw that you useSQLite
:It's a bad practice to be honest.
I recommented to use PostgreSQL.
This database is much better suited for professional development.
Your settings should look something like this:
But better read the official documentation.
The text was updated successfully, but these errors were encountered: