Skip to content

sirateek/ku-polls

Repository files navigation

ku-polls

Django CI codecov

The online polls web application that have flexibility on open and close the poll's question. Also, User can view the polls result anytime in form of pie chart.

📦 Installation

$ git clone https://github.com/sirateek/ku-polls.git
$ pip3 install -r requirements.txt
$ python3 manage.py runserver

Note: If you just clone this repository and run the command as above. You are likely to run the django on the production mode which is NOT recommended for the one who want to serve it without a proper web server. See also #12.

TLDR: I recommend for the one who want to serve it locally to also set the DEBUG=True in the env config file as in the instruction below.

🔧 Configuration

I have used the package django-environ to externalize the sensitive config of Django.

The env config file containing the Django config parameters for this app must be located in this directory config/.env

You can set the 3 parameters for the Django. Every keys are optional, They all have the default value.

# The Django Secret Key.
# Type: string | Default: 'missing-secret-key'
SECRET_KEY=some_key

# The host that allow to connect to the Django.
# Type: list | Default: ["127.0.0.1", "localhost"]
ALLOWED_HOSTS=localhost

# The debug mode of the Django.
# Type: bool | Default: False
DEBUG=True

Defaut user you can use:

Username Password
demo1 Vote4me!
demo2 Vote4me2

Project Information

About

An online poll or survey web application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published