Module-3(milestone -4) Error in views.py while running it

  1. Describe the issue briefly

  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. What is your hypothesis?

please explain the process of running views.py, i am also getting error if i have not added a single line of code in it.

this is the log document

You have hardcoded the values in pinterest_post.py file. Please avoid that.
You have made changes in def init(self) in facebook_post.py please revert back the changes in that definition. Use facebook_post.py as a reference and complete pinterest_post.py there are some definitions which are missing. There is a reason that access_token.sh file is given please use that file. Don’t hardcode any values. As it might not pass the assessment.

okay , let me try the same

I founded the error can you please explain how to convert this url (
https://api.pinterest.com/v1/pins/?access_token=AtT8lQxAuMO4lYr1Y14-eYesCiwIFe_ts6pPgLJGgv4Q3OCy5AkJADAAANsfRoL-xKigoWsAAAAA&fields=id%2Clink%2Cnote%2Curl )
generated from pinterest api to url we will use in pinterest.py,
i did like this
response = requests.post(“https://api.pinterest.com/v1/pins”,params=params)

and passing the values in params as did early in facebook.py

try using url as ‘https://api.pinterest.com/v1/pins/?access_token=%s’%self.page_access_token

I am also getting the same error but I have not hardcoded any value in pinterest_post.py

@xddddd
Is your problem resolved?? How did you resolve it?? I am also getting same error

not yet solved, i will let you know if i know in future

hey just ignore that and proceed. you need not run views.py

okay, i did some changes in init method on facebook post.py , can you give the screenshot of the function that was provided .

how to remove this error , even i have not written a single line in view.js

can you please suggest some solution , i have done the changes that you wanted me to do!!
and also my facebook_post.py and pinterest_post.py is working fine

In pinterest_post.py you have hardcoded the parameters and you are not using the parameters passed in the function.