aaronbjohnson / movie-trailer-website

Movie Trailer Website uses server-side code to store a list of favorite movies. Youtube and OMDB APIs deliver current information about each movie entered into the movie list array.
MIT License
0 stars 0 forks source link

Config has no attribute 'youtube_key' #1

Open TheOpsDev opened 9 years ago

TheOpsDev commented 9 years ago

Below is the issue i hit when I try to run your code. I am running Python 2.7.6

vagrant@vagrant-ubuntu-trusty-32:/vagrant/movie-trailer-website$ python entertainment_center.py Traceback (most recent call last): File "entertainment_center.py", line 7, in youtube_suffix = config.youtube_key AttributeError: 'module' object has no attribute 'youtube_key'

aaronbjohnson commented 9 years ago

Thanks for reporting Christian. I used to have my youtube API key referenced right inside entertainment_center.py, but switched to storing the API key in config.py and then adding config.py to my .gitignore. I will update the README to account for this.