Skip to content

prasannakulkarni333/django-polls

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Tutorial Polls App

This repository contains the complete code for the Django project's tutorial polls app. The code should mirror the code you've written at the end of Part 7.

The SECRET_KEY variable in mysite/settings.py has been scrubbed, and instructions for regenerating the key are available in the accompanying DigitalOcean tutorial.

This app is meant to be used as a reference Django app for several DigitalOcean tutorials, and should not be deployed in production.


Quickstart

Polls is a simple Django app to conduct Web-based polls. For each question, visitors can choose between a fixed number of answers.

  1. Add polls to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
        ...
        'polls',
    ]
  1. Include the polls URLconf in your project urls.py like this:
path('polls/', include('polls.urls')),
  1. Run python manage.py migrate to create the polls models.

  2. Start the development server and visit http://127.0.0.1:8000/admin/ to create a poll (you'll need the Admin app enabled).

  3. Visit http://127.0.0.1:8000/polls/ to participate in the poll.

About

Django Tutorial Polls App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.2%
  • HTML 8.2%
  • CSS 0.6%