Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Python JavaScript HTML CSS Other
tag: 0.9.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
apps
closure
deploy
locale
media
previous_prototype
templates
test
utils
.gitignore
COPYING
README
README.transifex
__init__.py
context_processors.py
dev-runserver.sh
dev-settings.py
initial_data.yaml
manage.py
middleware.py
msdean-settings.py
msdennis-settings.py
msholmes-settings.py
msnick-settings.py
search_site.py
settings.py
unisubs-settings.py.template
urls.py

README

To run the development version:

1. Git clone the repository:

       git clone git://github.com/8planes/mirosubs.git unisubs

   Now the entire project will be in the unisubs directory.

2. Install virtualenv http://pypi.python.org/pypi/virtualenv

3. (optional) download and download the virtualenv wrapper bash
   functions http://www.doughellmann.com/projects/virtualenvwrapper/

4. create a virtual environment and activate it

5. run:
   $ easy_install -U setuptools
   $ easy_install pip
   $ cd deploy
   $ pip install -r requirements.txt
       note: you'll need mercurial installed to make this last command work.

6. Check out google closure into directory of your choice: svn checkout 
   http://closure-library.googlecode.com/svn/trunk/ <directory>. Then 
   symlink media/js/closure-library to the checkout location.

7. Add mirosubs.example.com to your hosts file, pointing at 127.0.0.1. 
   This is necessary for Twitter oauth to work correctly.

8. From the unisubs directory created in step 1, use the dev-settings file when 
   running manage.py. First create the database with

       ./manage.py syncdb --settings=dev-settings

   Then update the database with

       ./manage.py migrate --settings=dev-settings

   SQLLite warnings are okay. Then run the site with:

       ./dev-runserver.sh

   You can access the site at http://mirosubs.example.com:8000.

9. (optional) If you want to run video searches locally, you need to set up solr:
   A. Download solr and unzip to ../buildout/parts/solr (relative to this directory).
   B. Run ./manage.py run_solr in one terminal that is dedicated to running the solr process.
   C. run ./manage.py rebuild_index to update the index.
   D. That should be it but, in case you're interested, there's a 
      list of haystack commands at 
      http://docs.haystacksearch.org/dev/management_commands.html
Something went wrong with that request. Please try again.