You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
This is the error message on terminal, how to resolve it?

i m getting the same error

Did you run the Django server while executing the
And make sure all the parameters in the pinterest api are present in the code.

how do i run the django server in