Iteration4 Fix Issue #56 Redirect user when access invalid poll / Add minimum date to creation form |
||
|---|---|---|
| .github/workflows | ||
| data | ||
| mysite | ||
| polls | ||
| templates/registration | ||
| .flake8 | ||
| .gitignore | ||
| Installation.md | ||
| manage.py | ||
| README.md | ||
| requirements.txt | ||
| sample.env | ||
| setup.ps1 | ||
| setup.py | ||
KU Polls: Online Survey Questions
An application to conduct online polls and surveys based on the Django Tutorial project, with additional features.
Installation
Here is Install Instruction.
How to Run
Setup.py Method
Using setup.py method, it will set .env for you and runserver automatically with --insecure.
You can set DEBUG=True later and then runserver normally to load static files.
Then, connect to http://127.0.0.1:8000/
Manual Installation
After follow all of instruction.
- Set Virtual Environment and Use it.
- Install Dependencies.
- Migrate and then Load fixtures.
- Set variable of
.env
You can run with this command.
python manage.py runserver
Anyway, if you set DEBUG = False then django production server will not load static files for you.
You need to set DEBUG = True or run this command.
python manage.py runserver --insecure
Then, connect to http://127.0.0.1:8000/
NOTE : If you have problems with port you can use runserver and specific your own port.
For example, If you run this command then you need to connect to http://127.0.0.1:7000/
python manage.py runserver 7000
Demo Superuser
| Username | Password |
|---|---|
| admin | ineedmorebullets |
Demo User
| Username | Password |
|---|---|
| tester1 | aa12345678aa |
| tester2 | aa12345678aa |
| tester3 | aa12345678aa |
| tester4 | aa12345678aa |
| novote | aa12345678aa |
Project Documents
All project documents are in the Project Wiki.