Go to file
2023-09-21 20:48:47 +07:00
.github/workflows Create flake8-lint.yml 2023-09-05 20:33:10 +07:00
data Update Data 2023-09-18 02:12:40 +07:00
mysite Add Logging 2023-09-15 01:33:09 +07:00
polls Use Lazy Import (get_model) To solve migration problem 2023-09-18 02:12:33 +07:00
.flake8 Format file according to flake8 2023-09-18 00:11:35 +07:00
.gitignore Delete db.sqlite3 from remote repos/ Add superuser and poll data to remote 2023-08-31 17:25:12 +07:00
Installation.md Update Installation Guide and .env 2023-09-21 20:48:47 +07:00
manage.py Creating a Django project. 2023-08-26 16:08:33 +07:00
README.md Update README.md Layout 2023-09-19 23:50:35 +07:00
requirements.txt Add is_published, can_vote to QuestionModel/ Add test for can_vote, is_published 2023-09-05 21:25:04 +07:00
sample.env Update Installation Guide and .env 2023-09-21 20:48:47 +07:00
setup.ps1 Update Setup to load Vote 2023-09-18 02:17:56 +07:00
setup.py no activate in venv when install with setup.py in posix 2023-09-21 20:34:04 +07:00

KU Polls: Online Survey Questions

Unit Tests

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.

Django-Tutorial