Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6346123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:57:27+00:00 2026-05-24T20:57:27+00:00

Adding CSS to RSS is quite simple as shown in here: http://www.petefreitag.com/item/208.cfm Creating RSS

  • 0

Adding CSS to RSS is quite simple as shown in here: http://www.petefreitag.com/item/208.cfm

Creating RSS is simple with django too as documented in here: https://docs.djangoproject.com/en/1.3/ref/contrib/syndication/

How to combine these two? Or better, how to add CSS to RSS while using django provided feed framework?

I know that i could create my own RSS xml file but why I should do that if framework works just fine? I just need a way to link css, that I could use code highlight or something like that.

What are the best practices to provide pretty RSS in django?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:57:27+00:00Added an answer on May 24, 2026 at 8:57 pm

    I believe the one way to do this would be to create a custom page view and point the URL to this page view (modifying the example from the Django syndication page):

    (r'^beats/(?P<beat_id>\d+)/rss/$','yourapp_views_custompageview'),

    Then in this page view, return <?xml-stylesheet type="text/css" href="http://you.com/rss.css" ?> + BeatFeed(), where BeatFeed is your FeedClass.

    I’m not using the feed framework right now, so it is difficult for me to test. Please let me know if this works or if you run into difficulties.

    You might also want to look at: https://code.djangoproject.com/browser/django/trunk/django/utils/feedgenerator.py.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<style type='text/css'> #span1{ background-image:url(http://www.reoiv.com/images/rss.jpg); background-repeat:no-repeat; cursor:pointer; display:block; float:left; height:15px; width:15px; vertical-align:text-bottom; } </style> <span
After creating a selectbox and adding CSS to it, a <p> tag aligns next
I've been adding css support for handheld to my website but haven't been able
I'm trying to accomplish simply adding a css class to a div on alternate
I would like to allow the logged user to edit MediaWiki/Common.css without adding them
Adding an element to the head of an alist (Associative list) is simple enough:
I am adding an external CSS file and an external JS file to my
I have been using ResolveUrl for adding CSS and Javascript in ASP.NET files. But
I'm adding css-based tab navigation to a site that is still using table-based layout.
I have a problem adding CSS classes to my HTML links in CakePHP: I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.