Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.36 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.36 KB

django_lp

django questionnaires app

Questionnaires

Questionnaires is a simple Django app to conduct Web-based tests. Each quiz can have multiple pages with questions and multiple choices that the user can select.

Quick start

  1. Unzip the package.

  2. Install the app using the command 'python setup.py install'

  3. Add "questionnaires" to your INSTALLED_APPS setting, and enable the admin app like this:

INSTALLED_APPS = ( ... 'django.contrib.admin', 'questionnaires', )

  1. Add the following line to settings.py to save every request in session.

SESSION_SAVE_EVERY_REQUEST = True

  1. In your settings.py file uncomment the last line from TEMPLATE_LOADERS to look like this:

TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.template.loaders.eggs.Loader', )

  1. Include the questionnaries URLconf in your project urls.py like this:

    url(r'^questionnaires/', include('questionnares.urls', namespace='questionnaires')),

  2. Make sure you configured your database settings and run 'manage.py syncdb'.

  3. Start the development server and visit http://127.0.0.1:8000/admin/ to create a questionnaire (you'll need the Admin app enabled).

  4. Visit http://127.0.0.1:8000/questionnaires/ to participate in the questionnaire.