/ku-polls

Primary LanguagePython

Python application

Web Polls for Kasetsart University

This is a Python program made with Django that helps you make surveys or polls with multiple-choice questions. It builds upon the Django tutorial project and adds additional functionality.

A polls application for Individual Software Process course at Kasetsart University.

Installation

see Installation

Running the Application

  1. Start the server in the virtual environment.

    # activate the virtualenv for this project. On Linux or MacOS:
    source venv/bin/activate
    # on MS Windows:
    venv\Scripts\activate
    
    # start the django server
    python3 manage.py runserver
    

    This starts a web server listening on port 8000.

  2. You should see this message printed in the terminal window:

    Starting development server at http://127.0.0.1:8000/
    Quit the server with CONTROL-C.
    

    If you get a message that the port is unavailable, then run the server on a different port (1024 thru 65535) such as:

    python3 manage.py runserver 12345
    
  3. In a web browser, navigate to http://localhost:8000

  4. To stop the server, press CTRL-C in the terminal window. Exit the virtual environment by closing the window or by typing:

    deactivate
    

Demo User Accounts

Sample polls and users data are included.

admin account

  • admin password examplepassword1
  • admin2 password examplepassword2

user account

  • harry password hackme22
  • tonnam password examplepassword

Project Documents

All project-related documents are in the Project Wiki