Skip to content
New issue

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

DATABASE: PRODUCTION AND LOCAL #19

Open
ma-za-kpe opened this issue Feb 29, 2024 · 1 comment
Open

DATABASE: PRODUCTION AND LOCAL #19

ma-za-kpe opened this issue Feb 29, 2024 · 1 comment
Assignees

Comments

@ma-za-kpe
Copy link
Owner

The issue is manual commenting and uncommenting of the database configs while pushing to production.
We don't want that, instead its should be automatic.

THIS IS THE FILE YOU WILL UPDATE: https://github.com/ma-za-kpe/linky_project/blob/main/linky_api/settings.py

Database

https://docs.djangoproject.com/en/5.0/ref/settings/#databases

DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }

'default': dj_database_url.config(
    # Replace this value with your local database's connection string.
    default= os.environ.get('DATABASE_URL'),
    conn_max_age=600
) 

}

@paulocouana
Copy link
Collaborator

Ok, I am working on it. I will keep you posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants