1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/project/pages/views.py
2015-12-28 18:17:49 +00:00

39 lines
959 B
Python

from project.common.views import CustomTemplate
class IndexView(CustomTemplate):
template_name = 'index.html'
html_title = "Homepage"
body_class = "index"
class NoJavascriptView(CustomTemplate):
template_name = 'core/no-js.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['js_redirect'] = False
return context
class Custom404View(CustomTemplate):
template_name = 'core/404.html'
def get(self, request, *args, **kwargs):
context = self.get_context_data(**kwargs)
return self.render_to_response(context, status=404)
class AboutWebsiteView(CustomTemplate):
template_name = 'about/website.html'
html_title = "About website"
class AboutIndexView(CustomTemplate):
template_name = 'about/index.html'
html_title = "About"
class AboutMeView(CustomTemplate):
template_name = 'about/me.html'
html_title = "About Me"