Skip to content

Files

Latest commit

0aa7c82 · Apr 22, 2023

History

History
50 lines (43 loc) · 1.29 KB

README.md

File metadata and controls

50 lines (43 loc) · 1.29 KB

Features:

  • The polls application is extended to a survey where admin can create multiple surveys with multiple questions and choices for each question.

Installation and Launching the application

Requirements:

  • python version > 3.6 installed
  • django version > 3.1.5 installed
python -m pip install django
  • nested-admin > 3.3.3 installed
pip install django-nested-admin 

or

python -m pip install django-nested-admin 

Run

Check for possible schema changes while using the version control as well as for the first run.

Navigate to the project directory (where manage.py is located) and run

python manage.py makemigrations survey

Create schema for models incorporated in survey app. (The sql script returned can be used shared across teams)

python manage.py sqlmigrate survey 0001

Commit all changes to the databases. This also creates necessary tables in the database.

python manage.py migrate

Collect all static assets and add to build/root folder in main application scope

python manage.py collectstatic

Create an admin user for the application

python manage.py createsuperuser

Run the development server

python manage.py runserver