fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: manage.py importbooks -P means: don't build pdf.
[wolnelektury.git]
/
apps
/
opds
/
views.py
diff --git
a/apps/opds/views.py
b/apps/opds/views.py
index
7ee09be
..
9431684
100644
(file)
--- a/
apps/opds/views.py
+++ b/
apps/opds/views.py
@@
-4,6
+4,7
@@
#
from base64 import b64encode
import os.path
#
from base64 import b64encode
import os.path
+from urlparse import urljoin
from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse
from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse
@@
-58,7
+59,7
@@
_root_feeds = (
def full_url(url):
def full_url(url):
- return
"http://%s%s" % (
Site.objects.get_current().domain, url)
+ return
urljoin("http://%s" %
Site.objects.get_current().domain, url)
class OPDSFeed(Atom1Feed):
class OPDSFeed(Atom1Feed):