Problem in running views.py in Module 3

On running views.py without any change, it gives me the following error:

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.

Can someone tell me what to do?

i don’t think you have to run the views.py file
you need to start the server and try posting via the app by selecting an image, writing a message and selecting the pinterest icon.
let me know if it works.

1 Like

you have to make some changes in views.py according to TODO’s in views.py and make sure your django server is on in another terminal.

1 Like