Skip to content

Commit

Permalink
Fix for missing Site import.
Browse files Browse the repository at this point in the history
  • Loading branch information
rizumu committed Mar 23, 2017
1 parent 4d84dd7 commit dc24940
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions podcasting/feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils.feedgenerator import rfc2822_date, Rss201rev2Feed, Atom1Feed
from django.views.generic.base import RedirectView
from django.shortcuts import get_object_or_404

from django.contrib.sites.models import Site
try:
from django.contrib.sites.models import get_current_site
except ImportError:
from django.contrib.sites.shortcuts import get_current_site
from django.contrib.syndication.views import Feed
from django.views.generic.base import RedirectView


try:
import imagekit
Expand All @@ -34,7 +36,7 @@
import easy_thumbnails
imagekit = False # noqa
sorl = False
photologue = False
photologue = False # noqa
except ImportError:
pass

Expand Down

0 comments on commit dc24940

Please sign in to comment.