Skip to content

Commit b5107c4

Browse files
committed
Complete Django's 'How to write reusable apps' tutorial.
1 parent 0c1888a commit b5107c4

20 files changed

+87
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
Working through the official Django Tutorials
44

55
* ["Writing your first Django app"](https://docs.djangoproject.com/en/3.0/intro/tutorial01/) - Completed 5/9/2020
6-
* ["How to write reusable apps"](https://docs.djangoproject.com/en/3.0/intro/reusable-apps/)
6+
* ["How to write reusable apps"](https://docs.djangoproject.com/en/3.0/intro/reusable-apps/) - Completed /10/2020

django-polls/LICENSE

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2020, Logan Elandt
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

django-polls/MANIFEST.in

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include LICENSE
2+
include README.md
3+
recursive-include polls/static *
4+
recursive-include polls/templates *
5+
recursive-include docs *

django-polls/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Polls
2+
3+
Polls is a Django app to conduct web-based polls. For each question, visitors can choose between a fixed number of answers.
4+
5+
Detailed documentation is in the "docs" directory.
6+
7+
## Quick Start
8+
9+
1. Add "polls" to your INSTALLED_APPS setting like this
10+
11+
```python
12+
INSTALLED_APPS = [
13+
...
14+
'polls',
15+
]
16+
```
17+
18+
2. Include the polls URLConf in your project urls.py like this `path('polls/', include ('polls.urls')),`
19+
3. Run `python manage.py migrate` to create the polls models.
20+
4. Start the development server and visit <http://127.0.0.1:8000/admin/> to create a poll (you'll need the Admin app enabled).
21+
5. Visit <http://127.0.0.1:8000/polls> to participate in the poll.
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.

django-polls/setup.cfg

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[metadata]
2+
name = django-polls
3+
version = 0.1
4+
description = A Django app to conduct web-based polls.
5+
long_description = file: README.md
6+
url = https://www.example.com/
7+
author = Logan Elandt
8+
author_email = someemail@example.com
9+
license = BSD-3-Clause
10+
classifiers =
11+
Environment :: Web Environment
12+
Framework :: Django
13+
Framework :: Django :: 3.0
14+
Intended Audience :: Developers
15+
License :: OSI Approved :: BSD License
16+
Operating System :: OS Independent
17+
Programming Language :: Python
18+
Programming Language :: Python :: 3
19+
Programming Language :: Python :: 3 :: Only
20+
Programming Language :: Python :: 3.6
21+
Programming Language :: Python :: 3.7
22+
Programming Language :: Python :: 3.8
23+
Topic :: Internet :: WWW/HTTP
24+
Topic :: Internet :: WWW/HTTP :: Dynamic Content
25+
26+
[options]
27+
include_package_data = true
28+
packages = find:

django-polls/setup.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from setuptools import setup
2+
3+
setup()

0 commit comments

Comments
 (0)