~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to urls.py

  • Committer: franku
  • Date: 2016-11-04 08:07:18 UTC
  • mto: This revision was merged to the branch mainline in revision 434.
  • Revision ID: somal@arcor.de-20161104080718-291pc9xpym21wakc
each app has his own sitemap.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
from django.contrib.syndication.views import Feed
12
12
from mainpage.views import OwnRegistrationView
13
13
from mainpage.forms import RegistrationWithCaptchaForm
14
 
from sitemaps import *
15
 
sitemaps = {
16
 
    'News': NewsSitemap,
17
 
    'Wiki': WikiSitemap,}
 
14
 
18
15
 
19
16
urlpatterns = [
 
17
    # Creating a sitemap.xml
 
18
    url(r'^sitemap\.xml/', include('sitemaps_urls')),
 
19
 
20
20
    # Uncomment the next line to enable the admin:
21
21
    url(r'^admin/', admin.site.urls),
22
 
    # Creating a sitemap.xml
23
 
    url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps},
24
 
    name='django.contrib.sitemaps.views.sitemap'),
25
22
    
26
23
    # Django builtin / Registration
27
24
    # overwrite registration with own implementation