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/projects.py

12 lines
346 B
Python
Raw Normal View History

2016-01-26 18:25:20 +00:00
from project.common.views import CustomTemplate, MarkdownView
class AllView(CustomTemplate):
template_name = 'projects/all.html'
class ProjectView(MarkdownView):
def dispatch(self, request, *args, **kwargs):
self.markdown = 'projects/{0}.md'.format(kwargs['project'])
return super().dispatch(request, *args, **kwargs)