Skip to content

ahampt/Pref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pref

Rate, rank, and keep track of media consumed or desired to be consumed. This site will serve as the one stop spot for any and all things related to personalized preferences data. This project will use Rotten Tomatoes, IMDb, Netflix, and Wikipedia API's for data gathering including more in the future.

RIP

As of September 11, 2016 Pref should be considered deprecated. Things may or may not continue to work but no guarantees. Rotten Tomatoes has closed up their once-public API and I don't feel like continuing with oMDB/iMDB only after putting so much work into de-duplicating people based on RT data. I highly advise you look into supporting the great people at Letterboxd as they have built basically I could have ever dreamed of for Pref (with great reporting tools before I even got to it). Farewell.

Installation

Install Pref yourself to contribute to the site and use it for your own organizational needs. There's plenty to add and fix.

Dependencies

  1. Install Python 2.7.3+.

  2. Install setuptools, MySQL-Python, URLEncoding, Oauth, unicodecsv, Facebook SDK, Tweepy, and Google API Python Client python modules in this order. Let me know if you need any of the packages as I think some of them have lost support.

  3. Install Apache Stack for Linux (type "sudo apt-get install lamp-server^ phpmyadmin" into a terminal), Windows, or Mac if you don't have Apache and MySQL.

  4. Install Django

Configuration

  1. Download the project code from master or fork if you plan on possibly contributing later.

  2. Create your own settings file to preserve the global file.

    • Copy local_settings.template where it lies and name the copy "local_settings.py" (Make sure you use this exact filename).
    • Copy client_secrets.template where it lies and name the copy "client_secrets.json" (Make sure you use this exact filename) - You can generate one from the Google API console as well but be sure all of the fields in the template file are present in the final file.
  3. Configure the settings page to work with your system All changes should be made in the local_settings.py file and not settings.py.

    • Get your own API keys from Rotten Tomatoes and Netflix (Key and Secret).
    • Create DB using phpmyadmin with whatever name you want, just be sure to put the name of it here. (Set the collation to utf8_bin)
    • Set your own username and password for said database. Leave password blank ('') if no password.
    • Enter your own email information to be able to send and recieve emails directly from Pref.
    • Be sure to replace the * in ALLOWED_HOSTS to the domain name of your site for security reasons (example: "pref.andyhampton.com")
    • Set the time zone correctly for you or leave alone.
    • Change the PREFIX_URL as you see fit (This means to get to the site you will have to go to http://localhost/PREFIX_URL)
    • Change LOGGING_DIR to wherever you have a folder to keep all of the log files from this project (Default is to folder in /var/log/pref). Be sure that the folder already exists or you make it beforehand.
    • Make any other changes that the template describes (very important for external API's).
  4. cd into the project root directory (it has manage.py in it). To create the DB tables, run the command: python manage.py syncdb

  5. To start the test server, run the command: python manage.py runserver

  6. If you have any difficulties getting setup, let me know about and I may be able to help.

About

Website to manage and develop user preferences with regards to movies, comics, food, and more

Resources

License

Stars

Watchers

Forks

Packages

No packages published