ma-za-kpe / linky_project

LINKY - Revolutionizing Knowledge Management
https://linky-3il1.onrender.com/swagger/
BSD 3-Clause "New" or "Revised" License
9 stars 4 forks source link

DATABASE: PRODUCTION AND LOCAL #19

Open ma-za-kpe opened 6 months ago

ma-za-kpe commented 6 months ago

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 commented 6 months ago

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