Hey can anybody help?
I haave my app deployed, but I tried to change my db to posgress and since the changes, now i cannot do python manage.py <command>
here my db settings, I have thhe new one commented in order to my app to work.
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } ---NEW DB--- '''DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'dbName', 'USER': 'dbUserName', 'PASSWORD': 'password', 'HOST': 'possgress URL', 'PORT': XXXX, } }'''
here my wsgi.py
import os import sys
from dotenv import load_dotenv
project_folder = os.path.expanduser('~/home/VictorOCP/Web_Ohana/Web Developments Proyects/OCP/src/skills_tutor') # adjust as appropriate
load_dotenv(os.path.join(project_folder, '.env'))
path = '/home/VictorOCP/Web_Ohana/Web Developments Proyects/OCP/src/skills_tutor' #project´s dir if path not in sys.path: sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'skills_tutor.settings'
from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
here the error: ModuleNotFoundError: No module named 'config.settings'