diff --git a/config/settings.py b/config/settings.py index fef4f84..2ff59c6 100644 --- a/config/settings.py +++ b/config/settings.py @@ -59,7 +59,8 @@ INSTALLED_APPS = [ "trials", "answers", "questions", - "categories" + "categories", + "tools" ] # AUTHENTICATION_BACKENDS = ['config.authh.SettingsBackend'] MIDDLEWARE = [ diff --git a/templates/addQuestions.html b/templates/addQuestions.html index 958807c..423dc09 100644 --- a/templates/addQuestions.html +++ b/templates/addQuestions.html @@ -1,13 +1,15 @@ {% extends "base.html" %} +{% load filters %} {% load rest_framework %} + {% block title %}New Test{% endblock %} {% block content %}

Add questions

- {% for i in 1|range:4 %} + {% for i in number_of_questions|times %}

Question {{i}}

@@ -29,7 +31,7 @@

- +