The Polling Project allows users to Create, Manage and Vote in multiple polls created by various users. As a result, one can statistically analyze the trend by taking public opinion through these polls.
This application is purely build with the Django Framework of Python.
Requirements:
- Python 3
- python-pip
- virtualenv
- Django 3.2
- django-crispy-form
- python-decouple
- Pillow
- sqlite3
First, clone this respository with the following link:
git clone https://github.com/Parth-Shah-99/Polling-Project.gitNext, navigate in the following folder:
cd Polling-ProjectCreate a virtualenv for the following project and activate it:
virtualenv venv
source venv/bin/activateNext, install the requirements from requirements.txt file:
pip install -r requirements.txt- Before running migrations, edit the settings.py file:
- Generate new SECRET_KEY (help: you can generate it from Djecrety)
( SECRET_KEY = "<generated_key>" ) - Set DEBUG = True
- Update EMAIL_HOST_USER and EMAIL_HOST_PASSWORD
( EMAIL_HOST_USER = "<your_email_id>", EMAIL_HOST_PASSWORD = "<your_password>" )
Next, run migrations:
python manage.py makemigrations polls
python manage.py migrateNext, create a default superuser (enter username and password for admin):
python manage.py createsuperuserRun the server:
python manage.py runserverFinally, navigate to http://127.0.0.1:8000/ and ENJOY THE POLLING APP.
For Admin Panel, navigate to http://127.0.0.1:8000/admin/ and enter username and password you have used earlier.
Please see the LICENSE file for details.