Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I noticed you have tagged your question as pertaining to Django. If you are going to build a Django application based on this problem, then the <a href="https://docs.djangoproject.com/en/dev/ref/contrib/syndication/">syndication framework</a> is what you want to use. However, this isn't worth it unless you are planning to use other components of Django, such as the database stuff and / or the template language.</p> <p>However, you asked for the "simplest and easiest" solution. I love Django and it only takes me minutes to set up an app so for me the easiest way to do your whole project would probably be to make a quick Django app. The simplest solution is probably to create the feed manually, shouldn't be that hard; something like:</p> <pre><code>inp="""System MA user id = 2084 username = XYZ90 selection = pnq decimal = 6.000 Percentage = 19.1176470588 % System NA user id = 2086 username = pron1 selection = abc decimal = 13.000 Percentage = 13.1147540984 % System M user id = 1664 username = Chrisod selection = pleader decimal = 15.000 Percentage = 16.091954023 %""" inp=inp.split('\n\n') rss_start="""&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt; &lt;rss version="2.0"&gt; &lt;channel&gt; &lt;title&gt;Your title&lt;/title&gt; &lt;link&gt;http://yoursite.com&lt;/link&gt; &lt;description&gt;Your discription&lt;/description&gt; """ rss_end="""&lt;/channel&gt; &lt;/rss&gt; """ def description(item): return item def title(item): return item.split('\n')[0] def link(item): return 'http://mysite.com/' + item.split('\n')[0] rss_items=[] for counter, item in enumerate(inp): rss_items.append(""" &lt;item&gt; &lt;title&gt;%s&lt;/title&gt; &lt;link&gt;%s&lt;/link&gt; &lt;description&gt;%s&lt;/description&gt; &lt;guid&gt;counter&lt;/guid&gt; &lt;/item&gt;""" % (title(item),description(item),link(item))) rss_output=rss_start+''.join(rss_items)+rss_end </code></pre> <p>You probably also want to add <code>&lt;pubDate&gt;</code> tags. And make sure your <code>&lt;guid&gt;</code>s are unique.</p> <p>Note: rss template copied from w3schools.com</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload