|
32 | 32 | from .views.account import AccountActivationView |
33 | 33 | from .views.article_views import ArticleListView, ArticleDetailsView |
34 | 34 | from .views.login import MyLoginView |
| 35 | +from .views.misc_views import AdsTextView |
35 | 36 | from .views.old_blog_redirect_view import AuthorRedirectView |
36 | 37 | from .views.old_blog_redirect_view import OldCategoryDetailsRedirectView |
37 | 38 | from .views.old_blog_redirect_view import OldTagArchiveRedirectView |
|
66 | 67 | path('authors', AuthorsListView.as_view(), name="authors"), |
67 | 68 | path('user/<str:username>', PublicProfileView.as_view(), name="user_profile"), |
68 | 69 |
|
69 | | - # path('profile', login_required(MyProfileView.as_view()), name="profile.view"), |
70 | 70 | path('edit-profile', login_required(EditProfileView.as_view()), name="profile.edit_profile"), |
71 | 71 | path('dashboard', login_required(MyProfileView.as_view()), name="profile.dashboard"), |
72 | 72 | path('bookmarks', login_required(UserBookmarksView.as_view()), name="profile.bookmarks"), |
73 | 73 |
|
74 | 74 | path('privacy', TemplateView.as_view(template_name="pages/static/privacy-policy.html"), name='pages.privacy'), |
75 | | - path('code-of-conduct', TemplateView.as_view(template_name="pages/static/code_of_conduct.html"), name='pages.code_of_conduct'), |
| 75 | + path('code-of-conduct', TemplateView.as_view(template_name="pages/static/code_of_conduct.html"), |
| 76 | + name='pages.code_of_conduct'), |
76 | 77 | path('contribute', TemplateView.as_view(template_name="pages/static/contribute.html"), name='pages.contribute'), |
77 | 78 | path('about', AboutPageView.as_view(), name='pages.about'), |
78 | 79 | path('contact', TemplateView.as_view(template_name="pages/static/contact.html"), name='pages.contact'), |
79 | | - path('terms-of-service', TemplateView.as_view(template_name="pages/static/terms-of-service.html"), name='pages.terms_of_service'), |
80 | | - path('cookie-policy', TemplateView.as_view(template_name="pages/static/cookie-policy.html"), name='pages.cookie_policy'), |
| 80 | + path('terms-of-service', TemplateView.as_view(template_name="pages/static/terms-of-service.html"), |
| 81 | + name='pages.terms_of_service'), |
| 82 | + path('cookie-policy', TemplateView.as_view(template_name="pages/static/cookie-policy.html"), |
| 83 | + name='pages.cookie_policy'), |
81 | 84 |
|
82 | 85 | path("rss/articles", ArticlesRssFeed(), name="articles_feed"), |
83 | 86 | path("rss/courses", CoursesRssFeed(), name="courses_feed"), |
84 | 87 | path('sitemap.xml', index, {'sitemaps': sitemaps_list}, name='django.contrib.sitemaps.views.index'), |
85 | | - path('sitemap/<str:section>.xml', sitemap, {'sitemaps': sitemaps_list}, name='django.contrib.sitemaps.views.sitemap'), |
| 88 | + path('sitemap/<str:section>.xml', sitemap, {'sitemaps': sitemaps_list}, |
| 89 | + name='django.contrib.sitemaps.views.sitemap'), |
86 | 90 |
|
87 | 91 | # static files for SEO or other reasons |
88 | 92 | path('robots.txt', TemplateView.as_view(template_name="robots.txt", content_type="text/plain")), |
89 | | - path('ads.txt', TemplateView.as_view(template_name="ads.txt", content_type="text/plain")), |
| 93 | + path('ads.txt', AdsTextView.as_view(), name='ads_txt'), |
90 | 94 | path('220764bdee4b4ff297c588217aaaafa3.txt', |
91 | | - TemplateView.as_view(template_name="220764dee4b4ff297c588217aaaafa3.txt", content_type="text/plain")), |
| 95 | + TemplateView.as_view(template_name="220764bdee4b4ff297c588217aaaafa3.txt", content_type="text/plain")), |
92 | 96 |
|
93 | 97 | # redirects for old website migration |
94 | 98 | path('author/<str:user>', AuthorRedirectView.as_view()), |
|
0 commit comments