Skip to content

Commit

Permalink
sitemap and cvs
Browse files Browse the repository at this point in the history
  • Loading branch information
ramibch committed Dec 29, 2023
1 parent f24d9a6 commit ea73461
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"django.contrib.messages",
"django.contrib.staticfiles",
"django.contrib.humanize",
"django.contrib.sitemaps",
"django.contrib.sites",
"django.forms",
# My own apps
Expand Down
5 changes: 4 additions & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from wagtail import urls as wagtail_urls
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.documents import urls as wagtaildocs_urls
from wagtail.contrib.sitemaps.views import sitemap

urlpatterns = [
##### Django admin
Expand All @@ -26,7 +27,9 @@
path("stripe/", include("djstripe.urls", namespace="djstripe")),
# rosetta
path("rosetta/", include("rosetta.urls")),
##### core app
# sitemap
path("sitemap.xml", sitemap),
# core app
path("", include("core.urls")),
]

Expand Down
1 change: 1 addition & 0 deletions core/models/cvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def crete_cvs_from_profile_templates(cls):
cv = cls.objects.create(profile=profile, tex=tex, auto_created=True)
cv.render_files()
print(f"✅ {cv} created.")
del cv

def __str__(self) -> str:
return f"CV ({self.profile.fullname} {self.tex})"
Expand Down

0 comments on commit ea73461

Please sign in to comment.