<filename>SistemaGestionPedidos/settings/local.py
from SistemaGestionPedidos.settings.base import *

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

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


"""
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}
"""

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'bd_gestio',
        'USER': 'root',
        'PASSWORD': '<PASSWORD>',
        'HOST': 'localhost',
        'PORT': 5432,
    }
}

STATICFILES_DIRS = (BASE_DIR, "static")

<filename>SistemaGestionPedidos/settings/local.py
from SistemaGestionPedidos.settings.base import *

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

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


"""
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}
"""

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'bd_gestio',
        'USER': 'root',
        'PASSWORD': '<PASSWORD>',
        'HOST': 'localhost',
        'PORT': 5432,
    }
}

STATICFILES_DIRS = (BASE_DIR, "static")

# Database # https://docs.djangoproject.com/en/3.0/ref/settings/#databases # # SECURITY WARNING: don't run with debug turned on in production! DATABASES = {     'default': {         'ENGINE': 'django.db.backends.sqlite3',         'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),     } }