~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to urls.py

  • Committer: Shevonar
  • Date: 2012-05-17 19:28:39 UTC
  • mto: This revision was merged to the branch mainline in revision 330.
  • Revision ID: infomh@anmaruco.de-20120517192839-bkyrqqcj3gm9wwp5
Moved and fixed online_help to fit add wlprefix. Will only work with next commit!

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
from widelands.news.feeds import NewsPostsFeed
10
10
from widelands.wiki.feeds import RssHistoryFeed
 
11
from django.views.generic.simple import redirect_to
11
12
 
12
13
feeds = {
13
14
    'news': NewsPostsFeed,
41
42
    url(r'^$', mainpage, name="mainpage"),
42
43
    url(r'^changelog/$', "mainpage.views.changelog", name="changelog"),
43
44
    url(r'^developers/$', "mainpage.views.developers", name="developers"),
44
 
    url(r'^help/', include("online_help.urls")),
 
45
    url(r'^help/(?P<path>.*)', redirect_to, { "url": "/encyclopedia/%(path)s", "permanent": True }), # to not break old links
 
46
    url(r'^encyclopedia/', include("wlhelp.urls")),
45
47
    url(r'^webchat/', include("wlwebchat.urls")),
46
48
    url(r'^images/', include("wlimages.urls")),
47
49
    url(r'^profile/', include("wlprofile.urls")),