Description:
File "/workspace/cine-frights/frights/models.py", line 3, in
from django.contrib.auth.models import User
File "/workspace/cine-frights/frights/views.py", line 4, in
from models import Movie, Comment
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Fix:
[x] Created a new app called movies, moved all files from previous app frights , migrated all changes and deleted frights app fixed the issues. To make sure i took correct steps i added Pylint and installed a newer version of Django to the project.
Description: File "/workspace/cine-frights/frights/models.py", line 3, in
from django.contrib.auth.models import User
File "/workspace/cine-frights/frights/views.py", line 4, in
from models import Movie, Comment
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Fix:
All Commits Regarding to app change: