GithubHelp home page GithubHelp logo

prasannakulkarni333 / django-polls Goto Github PK

View Code? Open in Web Editor NEW

This project forked from do-community/django-polls

0.0 0.0 0.0 28 KB

Django Tutorial Polls App

License: MIT License

Python 91.22% CSS 0.58% HTML 8.21%

django-polls's Introduction

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.

django-polls's People

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.