On Thursday, September 20, 2018 at 4:40:57 PM UTC+5:30, Peter Mudoko wrote: > > Hi guys am experimenting how i can use django restful framework in a > standalone python project , i am trying to import from rest_framework > import status > from rest_framework.generics import GenericAPIView, from > rest_framework.response import Response but this error is propping always > how can i handle it considering its not a djangle project how can i hack it > > File > "/home/peter/.local/lib/python3.6/site-packages/django/conf/__init__.py", > line 42, in _setup > % (desc, ENVIRONMENT_VARIABLE)) > 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. > > https://stackoverflow.com/questions/15556499/django-db-settings-improperly-configured-error
please check link -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4a4e49d5-c225-4b5b-aaa4-64687699448d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.