~widelands-dev/widelands-website/django_staticfiles

429.3.2 by franku
each app has his own sitemap.py
1
from django.conf.urls import *
2
3
from mainpage.views import mainpage
4
from django.contrib.sitemaps.views import sitemap
429.3.3 by franku
added wlhelp, mainpage, changelog and docs
5
from static_sitemap import StaticViewSitemap
429.3.2 by franku
each app has his own sitemap.py
6
from wiki.sitemap import *
7
from news.sitemap import *
8
from pybb.sitemap import *
9
from wlhelp.sitemap import *
429.3.13 by franku
consistent use of 2 blank lines after imports
10
429.3.2 by franku
each app has his own sitemap.py
11
12
sitemaps = {
429.3.3 by franku
added wlhelp, mainpage, changelog and docs
13
    'static': StaticViewSitemap,
14
    'news': NewsSitemap,
15
    'wiki': WikiSitemap,
16
    'forum': ForumSitemap,
17
    'wlhelptribe': WlHelpTribeSitemap,
18
    'wlhelpware': WlHelpWareSitemap,
19
    'wlhelpworker': WlHelpWorkerSitemap,
20
    'wlhelpbuildings': WlHelpBuildingSitemap,
438.1.6 by franku
run the script
21
}
429.3.2 by franku
each app has his own sitemap.py
22
23
urlpatterns = [
24
    # Creating a sitemap.xml
25
    url(r'^$', sitemap, {'sitemaps': sitemaps},
429.3.3 by franku
added wlhelp, mainpage, changelog and docs
26
        name='django.contrib.sitemaps.views.sitemap')
438.1.6 by franku
run the script
27
]