diff --git a/src/crowdprinter/templates/crowdprinter/faq.html b/src/crowdprinter/templates/crowdprinter/faq.html new file mode 100644 index 0000000..c8260db --- /dev/null +++ b/src/crowdprinter/templates/crowdprinter/faq.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} + +{% block content %} +
+

FAQ

+
+{% endblock %} diff --git a/src/crowdprinter/templates/crowdprinter/info.html b/src/crowdprinter/templates/crowdprinter/info.html new file mode 100644 index 0000000..3c73ca5 --- /dev/null +++ b/src/crowdprinter/templates/crowdprinter/info.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} + +{% block content %} +
+

Info

+
+{% endblock %} diff --git a/src/crowdprinter/urls.py b/src/crowdprinter/urls.py index 6843ce9..2841201 100644 --- a/src/crowdprinter/urls.py +++ b/src/crowdprinter/urls.py @@ -24,6 +24,8 @@ path("admin/", admin.site.urls), path("accounts/", include("allauth.urls")), path("", views.PrintJobListView.as_view()), + path("faq", views.FaqView.as_view()), + path("info", views.InfoView.as_view()), path("myprints", views.MyPrintAttempts.as_view(), name="my_printattempts"), path( "create/text", diff --git a/src/crowdprinter/views.py b/src/crowdprinter/views.py index 1f91c75..caca7f6 100644 --- a/src/crowdprinter/views.py +++ b/src/crowdprinter/views.py @@ -23,6 +23,7 @@ from django.views.generic import CreateView from django.views.generic import DetailView from django.views.generic import ListView +from django.views.generic import TemplateView from django.views.generic.base import View import crowdprinter.models as models @@ -291,3 +292,11 @@ def get_file_path(self, **kwargs): return printjobfile.file_gcode.path else: raise Http404() + + +class InfoView(TemplateView): + template_name = "crowdprinter/info.html" + + +class FaqView(TemplateView): + template_name = "crowdprinter/faq.html"