X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/b1c8df390750f696ba75cdc3220db589d5a49d21..80e81e8ba3e132d6b51a0bb4c794d8f2c1f600d9:/forum/urls.py diff --git a/forum/urls.py b/forum/urls.py index 58ccc2c..54624fb 100644 --- a/forum/urls.py +++ b/forum/urls.py @@ -3,6 +3,7 @@ import startup import os.path from forum import settings from django.conf.urls.defaults import * +from django.conf import settings as djsettings from django.contrib import admin from forum import views as app from forum.feed import RssLastestQuestionsFeed @@ -37,6 +38,7 @@ urlpatterns += patterns('', #(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': '/media/images/favicon.ico'}), #(r'^favicon\.gif$', 'django.views.generic.simple.redirect_to', {'url': '/media/images/favicon.gif'}), (r'^favicon\.ico$', app.meta.favicon), + url(r'^m/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.join(APP_PATH,'skins').replace('\\','/')}, name='osqa_media', @@ -56,6 +58,8 @@ urlpatterns += patterns('', url(r'^%s(?P\d+)/$' % _('revisions/'), app.readers.revisions, name='revisions'), url(r'^%s$' % _('questions/'), app.readers.questions, name='questions'), url(r'^%s%s$' % (_('questions/'), _('ask/')), app.writers.ask, name='ask'), + url(r'^%s%s$' % (_('questions/'), _('related_questions/')), app.commands.related_questions, name='related_questions'), + url(r'^%s%s$' % (_('questions/'), _('unanswered/')), app.readers.unanswered, name='unanswered'), url(r'^%s(?P\d+)/%s$' % (_('questions/'), _('edit/')), app.writers.edit_question, name='edit_question'), url(r'^%s(?P\d+)/%s$' % (_('questions/'), _('close/')), app.commands.close, kwargs=dict(close=True), name='close'),