Figured it out myself.  In my django admin I had not properly set the
Site information when I went from the development server to the live
server.

On Jan 7, 10:57 am, RevMatt <[EMAIL PROTECTED]> wrote:
> I'm launching my first django site and am having an odd problem with
> syndication (I'm sure there are more problems, but that's what I'm
> hitting right now):
>
> the rss file is spitting out the links as "http://example.com[path]";
> rather than "http://mydomain.com/[path]";.  Here's my model:
>
> from django.db import models
> from django.contrib.syndication.feeds import Feed
> from django.utils.feedgenerator import Atom1Feed
> from soapbox.blog.models import Post
>
> class RSSFeed(Feed):
>         title = "revmatt"
>         link="http://revmatt.com/feeds/rss";
>         description = "updates"
>         item_author_name="Reverend Matt"
>         item_author_link="http://revmatt.com";
>         def items(self):
>                 return Post.objects.order_by('-date')[:5]
>
> class AtomFeed(RSSFeed):
>         feed_type = Atom1Feed
>         subtitle = RSSFeed.description
>
> And my urlconf:
>
> from django.conf.urls.defaults import *
> from soapbox.feeds.models import RSSFeed, AtomFeed
> feeds = {
>         'rss': RSSFeed,
>         'atom': AtomFeed,
>
> }
>
> urlpatterns = patterns('',
>     # Example:
>      (r'^', include('soapbox.blog.urls')),
>      (r'^comments/',
> include('django.contrib.comments.urls.comments')),
>      (r'^feeds/(?P<url>.*)/$','django.contrib.syndication.views.feed',
> {'feed_dict': feeds}),
>
> I don't see example.com anywhere in my tree except the commented line
> of settings.py
> settings.py:# Examples: "http://media.lawrence.com";, "http://
> example.com/media/"
>
> Is this an apache config issue?  My host is using apache2 with
> mod_python.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to