Created
October 24, 2012 06:22
-
-
Save pije76/3944348 to your computer and use it in GitHub Desktop.
ElephantBlog Config - 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## ELEPHANTBLOG CONFIGURATION | |
def elephantblog_entry_url_app(self): | |
from feincms.content.application.models import app_reverse | |
return app_reverse('elephantblog_entry_detail', 'elephantblog.urls', kwargs={ | |
'year': self.published_on.strftime('%Y'), | |
'month': self.published_on.strftime('%m'), | |
'day': self.published_on.strftime('%d'), | |
'slug': self.slug, | |
}) | |
def elephantblog_categorytranslation_url_app(self): | |
from feincms.content.application.models import app_reverse | |
return app_reverse('elephantblog_category_detail', 'elephantblog.urls', kwargs={ | |
'slug': self.slug, | |
}) | |
ABSOLUTE_URL_OVERRIDES = { | |
'elephantblog.entry': elephantblog_entry_url_app, | |
'elephantblog.categorytranslation': elephantblog_categorytranslation_url_app, | |
} | |
########## END ELEPHANTBLOG CONFIGURATION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment