Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
concrexit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
thalia
concrexit
Commits
0a7f54e9
Commit
0a7f54e9
authored
Jun 06, 2019
by
Sébastiaan Versteeg
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'add-education-sitemap' into 'master'
Add education sitemap See merge request
!1285
parents
e5fd37d6
c45bcc91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
website/thaliawebsite/tests/test_website.py
website/thaliawebsite/tests/test_website.py
+4
-1
website/thaliawebsite/urls.py
website/thaliawebsite/urls.py
+2
-0
No files found.
website/thaliawebsite/tests/test_website.py
View file @
0a7f54e9
...
...
@@ -18,7 +18,10 @@ def load_tests(_loader, tests, _ignore):
class
SitemapTest
(
TestCase
):
fixtures
=
[
'members.json'
,
'member_groups.json'
]
fixtures
=
[
'members.json'
,
'member_groups.json'
,
'merchandiseitems.json'
,
]
def
test_sitemap_success
(
self
):
response
=
self
.
client
.
get
(
'/sitemap.xml'
)
...
...
website/thaliawebsite/urls.py
View file @
0a7f54e9
...
...
@@ -41,6 +41,7 @@ from django.views.i18n import JavaScriptCatalog
import
members
from
activemembers.sitemaps
import
sitemap
as
activemembers_sitemap
from
documents.sitemaps
import
sitemap
as
documents_sitemap
from
education.sitemaps
import
sitemap
as
education_sitemap
from
events.sitemaps
import
sitemap
as
events_sitemap
from
events.views
import
AlumniEventsView
from
members.sitemaps
import
sitemap
as
members_sitemap
...
...
@@ -68,6 +69,7 @@ THALIA_SITEMAP.update(members_sitemap)
THALIA_SITEMAP
.
update
(
documents_sitemap
)
THALIA_SITEMAP
.
update
(
thabloid_sitemap
)
THALIA_SITEMAP
.
update
(
partners_sitemap
)
THALIA_SITEMAP
.
update
(
education_sitemap
)
THALIA_SITEMAP
.
update
(
events_sitemap
)
# pragma pylint: disable=line-too-long
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment