Giter Club home page Giter Club logo

pollingapp's Introduction

pollingapp

This is a Django project, which expands on Django's official 'polling app' tutorial (https://docs.djangoproject.com/en/3.1/intro/tutorial01/).

Hosted demo

https://rniem-awsumpolls.herokuapp.com/

Functionality

In addition to the functionality of voting on polls, this polling app includes:

  • A user profile and authentication system (only authenticated users can create polls and vote),
  • Visual representations of poll results,
  • A threaded comment system for each poll,
  • Visual styling using Javascript and Bulma CSS (https://bulma.io/).

Preview

Overall functionality

previewgif

Home screen

home

Voting view

voting

Home screen

results

Create polls

createpoll

Requirements

Python: 3.8.1 < Django: 3.1.2 <

Plus all the packages for Python, as specified in requirements.txt

To run this app, perform the following steps:

  1. Download this repository,
  2. Install all the Python packages needed from the requirements.txt file,
  3. In the pollingapp folder, apply database migrations using python manage.py makemigrations, and then python manage.py migrate,
  4. Still in the pollingapp folder, run the following command: python manage.py runserver.

Password reset functionality on localhost

To make sure the password reset email works:

  1. Make sure you performed the steps from the Requirements section,
  2. Follow the instructions on this page to configure a local SMTP server: https://aiosmtpd.readthedocs.io/en/latest/aiosmtpd/docs/cli.html
  3. after you have started up the server, whenever a password reset email is sent, it will appear on the command line of the terminal which you used to set up the server. From there you can copy the reset link and continue in the webapp.

An alternative to this is to set up your own email server remotely, e.g. using Gmail. More info here: (https://www.lifewire.com/get-a-password-to-access-gmail-by-pop-imap-2-1171882). Note that this will require some tinkering with the settings.py file in the main Django application folder.

pollingapp's People

Contributors

rniem379349 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.