""" askbot askbot url configuraion file """ import os.path from django.conf import settings from django.conf.urls.defaults import url, patterns, include from django.conf.urls.defaults import handler500, handler404 from django.contrib import admin from django.utils.translation import ugettext as _ from askbot import views from askbot.feed import RssLastestQuestionsFeed, RssIndividualQuestionFeed from askbot.sitemap import QuestionsSitemap from askbot.skins.utils import update_media_revision admin.autodiscover() update_media_revision() #needs to be run once, so put it here feeds = {'rss': RssLastestQuestionsFeed, 'question': RssIndividualQuestionFeed} sitemaps = {'questions': QuestionsSitemap} APP_PATH = os.path.dirname(__file__) urlpatterns = patterns( '', url(r'^$', views.readers.index, name='index'), url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}, name='sitemap'), url( r'^m/(?P<skin>[^/]+)/media/(?P<resource>.*)$', views.meta.media, name='askbot_media',
""" askbot askbot url configuraion file """ import os.path from django.conf import settings from django.conf.urls.defaults import url, patterns, include from django.conf.urls.defaults import handler500, handler404 from django.contrib import admin from askbot import views from askbot.feed import RssLastestExercisesFeed, RssIndividualExerciseFeed from askbot.sitemap import ExercisesSitemap from askbot.skins.utils import update_media_revision admin.autodiscover() update_media_revision()#needs to be run once, so put it here if getattr(settings, "ASKBOT_TRANSLATE_URL", False): from django.utils.translation import ugettext as _ else: _ = lambda s:s feeds = { 'rss': RssLastestExercisesFeed, 'exercise':RssIndividualExerciseFeed } sitemaps = { 'exercises': ExercisesSitemap } APP_PATH = os.path.dirname(__file__) urlpatterns = patterns('',