~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to urls.py

  • Committer: franku
  • Date: 2018-04-26 20:18:55 UTC
  • mfrom: (489.1.28 widelands)
  • Revision ID: somal@arcor.de-20180426201855-uwt3b8gptpav6wrm
updated code base to fit with django 1.11.12; replaced app tracking with a new middleware

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
from django.contrib import admin
5
5
admin.autodiscover()
6
6
 
7
 
from mainpage.views import mainpage
8
7
from news.feeds import NewsPostsFeed
9
8
from django.views.generic.base import RedirectView
10
9
from django.views.generic import TemplateView
12
11
from registration.backends.hmac.views import RegistrationView
13
12
from mainpage.forms import RegistrationWithCaptchaForm
14
13
 
 
14
 
15
15
urlpatterns = [
16
16
    # Creating a sitemap.xml
17
17
    url(r'^sitemap\.xml/', include('sitemap_urls')),
28
28
    url(r'^accounts/', include('registration.backends.hmac.urls')),
29
29
    url('^', include('django.contrib.auth.urls')),
30
30
 
31
 
    # Feed for Mainpage
 
31
    # Feed for news
32
32
    url(r'^feeds/news/$', NewsPostsFeed()),
33
33
 
34
34
    # Formerly 3rd party
35
35
    url(r'^notification/', include('notification.urls')),
36
36
    
37
 
    url(r'^messages/', include('django_messages.urls')),
 
37
    url(r'^messages/', include('django_messages_wl.urls')),
 
38
 
38
39
    url(r'^threadedcomments/', include('threadedcomments.urls')),
39
40
 
40
41
    # Redirect old urls to docs to docs/wl
47
48
    url(r'^forum/', include('pybb.urls')),
48
49
 
49
50
    # WL specific:
50
 
    url(r'^$', mainpage, name='mainpage'),
51
 
    url(r'^locale/$', 'mainpage.views.view_locale'),
52
 
    url(r'^changelog/$', 'mainpage.views.changelog', name='changelog'),
53
 
    url(r'^developers/$', 'mainpage.views.developers', name='developers'),
54
 
    url(r'^legal_notice/$', 'mainpage.views.legal_notice', name='legal_notice'),
55
 
    url(r'^legal_notice_thanks/$', 'mainpage.views.legal_notice_thanks',
56
 
        name='legal_notice_thanks'),
 
51
    url(r'^', include('mainpage.urls')),
57
52
    url(r'^help/(?P<path>.*)', RedirectView.as_view(url='/encyclopedia/%(path)s',
58
 
                                                    permanent=True)),  # to not break old links
 
53
                                                   permanent=True)),  # to not break old links
59
54
    url(r'^encyclopedia/', include('wlhelp.urls')),
60
55
    url(r'^webchat/', include('wlwebchat.urls')),
61
56
    url(r'^images/', include('wlimages.urls')),