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

  1. Describe the issue briefly
    I wrote both the functions but when i am running views.py I am getting the above error
  2. How much time have you spent debugging this issue?
    (Please spend at least 15 minutes to resolve the issue on your own before posting a new topic here)
    3 hrs
  3. What is your hypothesis?
    issue with something out of my scope
3 Likes

Facing the same issue, u resolved it?

1 Like

the same problem for me too!

check your code through Qeats android app.
don’t run views.py to check your code…

i did try, but my QEats isn’t showing any response, i.e. no order history no restaurants around me

I’ve got the exact same issue