-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
213 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 ot-nemoto | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include LICENSE | ||
include README.rst | ||
recursive-include django_polls/static * | ||
recursive-include django_polls/templates * | ||
recursive-include docs * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
============ | ||
django-polls | ||
============ | ||
|
||
django-polls is a Django app to conduct web-based polls. For each | ||
question, visitors can choose between a fixed number of answers. | ||
|
||
Detailed documentation is in the "docs" directory. | ||
|
||
Quick start | ||
----------- | ||
|
||
1. Add "polls" to your INSTALLED_APPS setting like this:: | ||
|
||
INSTALLED_APPS = [ | ||
..., | ||
"django_polls", | ||
] | ||
|
||
2. Include the polls URLconf in your project urls.py like this:: | ||
|
||
path("polls/", include("django_polls.urls")), | ||
|
||
3. Run ``python manage.py migrate`` to create the models. | ||
|
||
4. Start the development server and visit the admin to create a poll. | ||
|
||
5. Visit the ``/polls/`` URL to participate in the poll. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Metadata-Version: 2.1 | ||
Name: django-polls | ||
Version: 0.1 | ||
Summary: A Django app to conduct web-based polls. | ||
Home-page: https://github.com/ot-nemoto/django-tutorial | ||
Author: ot-nemoto | ||
Author-email: nemoto@opentone.co.jp | ||
License: MIT License | ||
Classifier: Environment :: Web Environment | ||
Classifier: Framework :: Django | ||
Classifier: Framework :: Django :: 5.0 | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: BSD License | ||
Classifier: Operating System :: OS Independent | ||
Classifier: Programming Language :: Python | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3 :: Only | ||
Classifier: Programming Language :: Python :: 3.10 | ||
Classifier: Programming Language :: Python :: 3.11 | ||
Classifier: Programming Language :: Python :: 3.12 | ||
Classifier: Topic :: Internet :: WWW/HTTP | ||
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content | ||
Requires-Python: >=3.10 | ||
License-File: LICENSE | ||
Requires-Dist: Django>=5.0 | ||
|
||
============ | ||
django-polls | ||
============ | ||
|
||
django-polls is a Django app to conduct web-based polls. For each | ||
question, visitors can choose between a fixed number of answers. | ||
|
||
Detailed documentation is in the "docs" directory. | ||
|
||
Quick start | ||
----------- | ||
|
||
1. Add "polls" to your INSTALLED_APPS setting like this:: | ||
|
||
INSTALLED_APPS = [ | ||
..., | ||
"django_polls", | ||
] | ||
|
||
2. Include the polls URLconf in your project urls.py like this:: | ||
|
||
path("polls/", include("django_polls.urls")), | ||
|
||
3. Run ``python manage.py migrate`` to create the models. | ||
|
||
4. Start the development server and visit the admin to create a poll. | ||
|
||
5. Visit the ``/polls/`` URL to participate in the poll. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
pyproject.toml | ||
setup.cfg | ||
setup.py | ||
django_polls/__init__.py | ||
django_polls/admin.py | ||
django_polls/apps.py | ||
django_polls/models.py | ||
django_polls/tests.py | ||
django_polls/urls.py | ||
django_polls/views.py | ||
django_polls.egg-info/PKG-INFO | ||
django_polls.egg-info/SOURCES.txt | ||
django_polls.egg-info/dependency_links.txt | ||
django_polls.egg-info/requires.txt | ||
django_polls.egg-info/top_level.txt | ||
django_polls/migrations/0001_initial.py | ||
django_polls/migrations/__init__.py | ||
django_polls/static/polls/style.css | ||
django_polls/static/polls/images/background.png | ||
django_polls/templates/polls/detail.html | ||
django_polls/templates/polls/index.html | ||
django_polls/templates/polls/results.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Django>=5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
django_polls |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ['setuptools>=40.8.0'] | ||
build-backend = 'setuptools.build_meta' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[metadata] | ||
name = django-polls | ||
version = 0.1 | ||
description = A Django app to conduct web-based polls. | ||
long_description = file: README.rst | ||
url = https://github.com/ot-nemoto/django-tutorial | ||
author = ot-nemoto | ||
author_email = nemoto@opentone.co.jp | ||
license = MIT License | ||
classifiers = | ||
Environment :: Web Environment | ||
Framework :: Django | ||
Framework :: Django :: 5.0 | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: BSD License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Programming Language :: Python :: 3.12 | ||
Topic :: Internet :: WWW/HTTP | ||
Topic :: Internet :: WWW/HTTP :: Dynamic Content | ||
|
||
[options] | ||
include_package_data = true | ||
packages = find: | ||
python_requires = >=3.10 | ||
install_requires = | ||
Django >= 5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from setuptools import setup | ||
|
||
setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ django | |
mysqlclient | ||
coverage | ||
django-debug-toolbar | ||
setuptools |