Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    django-wordpress-rss 0.1.0

    Download button

    No screenshots available
    Downloads: 83  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Kevin Schaul | More programs
    MIT/X Consortium Lic... / FREE
    August 31st, 2012, 03:12 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-wordpress-rss description

    A Django template tag for integrating Wordpress articles

    django-wordpress-rss is a Django template tag for integrating Wordpress articles.

    Check out the project on GitHub for the latest information http://github.com/kevinschaul/django-wordpress-rss

    Installation

    Install from PyPI using pip:

        pip install django-wordpress-rss

    Add `wordpress_rss` to your settings.py file:

        INSTALLED_APPS = (
            ...
            'wordpress_rss',
            ...
        )


    Add `WORDPRESS_RSS_BASE_URL` to your settings.py file, excluding the trailing slash:

        WORDPRESS_RSS_BASE_URL = 'http://www.kevinschaul.com'

    Usage

    Load the new template tag:

        {% load wordpress_rss %}

    Configure it. The arguments are as follows:
    1. The template tag (`wordpress_rss`)
    2. A variable containing a string represenation of a category to pull from
    3. The number of articles to pull
    4. (as)
    5. A template variable to save the results in

    The resulting template variable will be an array containing rss items, with proerties `href` and `title` (more are planned, feel free to open an issue on GitHub).

    Full example:

    settings.py

        WORDPRESS_RSS_BASE_URL = 'http://www.kevinschaul.com'

    views.py

        return render(request, 'index.html', {'rss_category': 'widsom'})

    index.html

        {% load wordpress_rss %}
        {% wordpress_rss rss_category 10 as rss_results %}
       
        {% for item in rss_results %}
            {{ item.title }}
        {% endfor %}
       



    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    template tag | Django Wordpress | Django | template | tag

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM