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 1108461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:05:12+00:00 2026-05-17T02:05:12+00:00

I am looking into adding RSS feeds to one of my Django apps and

  • 0

I am looking into adding RSS feeds to one of my Django apps and I would like to be able to have them be authenticated.

I want to use the new syndication framework in Django 1.2. I’ve read the docs on how to do this and have the basic feeds setup.

I am new to authenticating feeds, so I am not sure what the best approach to take is or what my options really are.

Each user has a unique sub domain and I would like the URL structure to look something like this: http://mysubdomain.mysite.com/myapp/rss/ if possible.

I don’t want the feeds to be publicly available, is it possible to use the users username and password for the authentication? Have you found that most feed readers support this? If it’s not possible to authenticate for each user, should I try to use a uuid to give them a unique url or is that not secure enough?

As you can probably tell I am not sure what direction to take with this, so any advice on the best way to do this would be very much appreciated.

Thanks

  • 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-17T02:05:13+00:00Added an answer on May 17, 2026 at 2:05 am

    Have you tried wrapping the syndication view django.contrib.syndication.views.feed into a view that requires login? RSS feeds should normally be fetched over HTTP, so this should work!

    # Import Django's standard feed view.
    from django.contrib.auth.decorators import login_required
    from django.django.contrib.syndication.views import feed
    
    # Wrap it in a new feed view that requires authentication!
    private_feed = login_required(feed)
    

    Caveat: I’ve never tried this!

    Edit!

    To be safe with RSS readers that don’t support redirection, return a HTTP 401 status code with the following:

    authentication_url = '/accounts/login'
    def feed_safe_login_required ( view ):
        def _ ( request, *args, **kwargs ):
            if not request.user.is_authenticated:
                return HttpResponseNotAuthorized, authentication_url
        return _
    
    feed = feed_safe_login_required(django.contrib.syndication.views.feed)
    

    Where HttpResponseNotAuthorized is as defined in this django snippet.

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

Sidebar

Related Questions

I'm looking into adding a jquery modal popup to my mvc project. I have
I have been looking into IKVMing Apache's FOP project to use with our .NET
I've been looking into different web statistics programs for my site, and one promising
I've been looking into OSGi recently and think it looks like a really good
I am looking into adding unit tests at work. I used MbUnit in the
I'm looking into adding some unit tests for some classes in my data access
I'm looking into adding scripting to my C# application. I've been debating between Lua
I'm looking at adding validation into my web app. Some models' validity depends on
I have been looking into different types of timers that i could use for
I'm looking into using Visual Studio 2008's built in unit test projects instead of

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.