Python comes already pre-installed on the terminal, so by typing python you can find your version number i.e Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type "help", "copyright", "credits" or "license" for more information.
Mac: If you are getting permission issues while installing libraries, follow guide super user set up: -https://support.apple.com/en-us/HT204012
The modules below may need to be installed, but first follow the "Run the application" steps below
- Installed pip:
- sudo easy_install pip
- Django framework version 1.6.1
- pip install django==1.6.1
- Installed virtualenv
- sudo easy_install virtualenv
- Installed the following libraries if you do not already have them:
- pattern: pip install pattern
- requests: pip install requests or easy_install requests
- run the command to display all the modules installed:
- pip freeze
- Run command virtualenv your-project-name
- copy the all the files from Baobab into your-project-name(replacing the old one)
- Activate the virtual environemnt:
- cd to your-project-name directory
- source bin/activate
- perform pip freeze to ensure the following modules are installed (if not installed them as described above):
-BeautifulSoup==3.2.1
- Django==1.6.1
- django-registration==1.0
- Pattern==2.6
- requests==2.7.0
- South==1.0.2
- stripe==1.27.0
- wheel==0.24.0
- cd to your-project-name/src/
-run commnand:
- ./manage.py runserver
- navigate to the URL displayed: http://127.0.0.1:8000
Edit movie entry +++++++++++++++++++++++++++++++++++
- Navigate to http://127.0.0.1:8000/admin
- login with super user: suBaobab pw: baobab
- user: admin pw: pssword
- select Add movies -> title (year) - > edit movie.
- poster image from OMDB api does not show on safari, and sometimes on Chrome.