1. Bryan Head
  2. rootstrikers-replace-disqus-comments-and-voting-with

Overview

HTTPS SSH
Rootstrikers
------------

Requirements (suggested install methods included):

django-disqus
    pip install django-disqus

django-tagging
    pip install django-tagging

feedparser
    pip install feedparser

disqus-python
    pip install disqus-python

django-social-auth
    pip install django-social-auth

django-threadedcomments
    pip install -e git+https://github.com/HonzaKral/django-threadedcomments.git#egg=django-threadedcomments

Just make sure everything's on your path.

By default, the server uses a sqlite3 database. This should be used for testing purposes. You can configure which database to use in settings.py. 

To run a test copy of the website, do the following:

python manage.py syncdb
python manage.py runserver


Static Files
------------

The folders rootstrikers/static/ and {appname}/static/ are served statically. Any images, scripts, styles, etc. should be placed in there. For example, the up arrow used the voting aspect of the story_collector app is stored in:

rootstrikers/story_collector/static/images/up_arrow_off.png

These directories are all serverd at {{ STATIC_URL }} (it's likely going to be domain.com/static/, but don't rely on that). Use that in the templates. So the code to display that arrow looks like:

<img src="{{ STATIC_URL }}/images/up_arrow_off.png">