After switching to routers, I started getting this error. I cant find any specific way to fix it. Any ideas?
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Requested setting REST_FRAMEWORK, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.