A simple Django app to conduct Web-based survey
Project description
Django Form Survey
Django form survey is an application Django to easier create form survey and easy integrated for your project.
Table of content
- Installation
- Configuration
- Features
Installation
-
Install django-form-surveys using:
pip install django-form-surveys
-
Add
djf_surveys
to yourINSTALLED_APPS
setting like thisINSTALLED_APPS = [ ... 'djf_surveys', ]
-
Add context processor
'djf_surveys.context_processors.surveys_context'
'context_processors': [ .... 'djf_surveys.context_processors.surveys_context' ],
-
Run
python manage.py migrate
to create the djf_surveys models. -
Run
python manage.py collectstatic
to collect file static djf_surveys into project. -
Include url
djf_surveys
in your root url.... urlpatterns = [ path('admin/', admin.site.urls), ..... path('surveys/', include('djf_surveys.urls')) ]
-
Access
http://127.0.0.1:8000/surveys/dashboard/
to enter admin page to create a survey. -
Access
http://127.0.0.1:8000/surveys/
get list of survey -
Access
http://127.0.0.1:8000/surveys/{id}
get form of survey
Configuration
There are several configurations that you can write on settings.py
SURVEY_MASTER_TEMPLATE
,default='surveys/master.html'
, ->str
: This configuration to change master template using your template. You can set with your template path. ExampleSURVEY_MASTER_TEMPLATE = 'mywebsite/master.html'
NB: This config will be work if on your template use block content
{% block content %}
to include or render content of context from view and your master template must be including or using Tailwind CSS.SURVEY_USER_PHOTO_PROFILE
,default=''
, ->str
: This configuration is used to add a profile photo object that is related to the User model. Example:SURVEY_USER_PHOTO_PROFILE = 'self.user.profile.photo.url'
Features
- Manage a survey: You must as superuser to manage survey
- You can
create, edit, delete
a survey andshow all available survey
. - To manage survey you can access
http://localhost:8000/surveys/dashboard/
.
- You can
- Option config survey: You can set a survey editable, deletable or duplicate entry
- Support many question type (type field): Available field types include:
- Text
- Number
- Radio
- Select
- Multi Select
- Text Area
- URL
- Date
- Rating
- Easy sorting question: You can drag and drop to sort question
- Change master template: look section
Configuration
- Duplicate entry: look section
Configuration
Thanks!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-form-surveys-1.5.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39d282a67d4982176860dad78393caa73a1c4a47a6e573de236b7ae4f2877203 |
|
MD5 | c830ee38b2197200a74ce579ea78fdb4 |
|
BLAKE2b-256 | 7875a804f5e8f422614ee938ab53e63fa69a4e4bf6d8ce12986fc8c579ec3a7d |
Hashes for django_form_surveys-1.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ffe72ed7a677d8a7897fcfc805d485896f1c4abbfe841eae2b9430e4a2d1872 |
|
MD5 | 583c7f782c8bf5c7d841246e1bad7844 |
|
BLAKE2b-256 | 68a0a7611686f1a53e742208a70f6dbe50a6c13d2287aa8fe38cfe2f953e1575 |