QEats module 3 return of views.py

  1. Describe the issue briefly
    server is runnig even it is showing this error…
    in my QEats app tags are not displayed…what to do…??
    Traceback (most recent call last):
    File “views.py”, line 3, in
    from rest_framework.views import APIView
    ModuleNotFoundError: No module named ‘rest_framework’

getting this error … i manually installed the rest_framework using pip3
after that i m getting more error which is like

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.

Traceback (most recent call last):
File “views.py”, line 3, in
from rest_framework.views import APIView
ModuleNotFoundError: No module named ‘rest_framework’

  1. 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)
    one days …

  2. What is your hypothesis?

Hey , I think your are executing views.py , you don’t have to do that , you just have to start the django server

have you imported clarifai_tag_suggestions properly before using a method from that file?
it seems like you have edited and importing from views it has to be ‘.views’ (in urls.py file).Make all the changes and push again. If your code is proper it should run successfully now. try it.

Closing this topic as there is no response since last 12 hours. Please feel free to create a new topic and post this question as a reference link in the description of the new topic.