Commits

keba  committed 698ae3d

fixed Page's absoluteurl

  • Participants
  • Parent commits fad0f69

Comments (0)

Files changed (2)

+local_settings.py

File pages/models/__init__.py

 from django.db import models
 from django.db.models.signals import class_prepared
 from django.contrib.auth.models import User
-from django.core.urlresolvers import reverse as urlresolve
+from django.core.urlresolvers import set_script_prefix, reverse as urlresolve
 from django.conf import settings
 from limited.utils import thumbnail
 from limited import markup
+from settings import BLOG_URL
+
+## We want to generate absolute URLs here
+set_script_prefix(BLOG_URL)
 
 def apply_filter_method(**kwargs):
     model = kwargs.pop('sender')