Pierre-Sassoulas / django-survey

A django survey app that can export results as CSV or PDF using your native language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What does template mean in the Add Survey page and how to use it

a-wip0 opened this issue · comments

image

What should i type there if i want to use template?
How to use it?
where it get implemented?

Hello, by default the template used is survey/one_page_survey.html is the survey is displayed all in one page or survey/survey.html if not. You can use another template by changing the value for something else (probably a template you created yourself specifically for your survey), the file must exists and be accessible by django at runtime.

The implementation is mostly here:

def handle_invalid_form(context, form, request, survey):

thank you for your response, i have another

  1. does the sort by question and by category work? i tried it and it didn't work
  2. about the image question, how to put the asnwer option? url? local image?

I never used images, both url and local images are good idea. It's probably only a template link in static though. You can open a new issue for the sorting bug, or for the images by url/local image, I would welcome a pull request for both this :)