Skip to content

Commit 0a8f209

Browse files
committed
update titles on all code examples pages
1 parent a2424e1 commit 0a8f209

19 files changed

+192
-36
lines changed

content/pages/04-web-development/39-code-metrics.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ system are occurring.
4949
* [Black](https://github.com/ambv/black) is a Python code formatter with
5050
strong, uncompromising assumptions about how your code must be formatted.
5151

52+
* [dlint](https://github.com/duo-labs/dlint) is a linter for secure coding
53+
practices.
54+
5255
* [pylintdb](https://github.com/nedbat/pylintdb) puts pylint results into
5356
a [SQLite](/sqlite.html) database for programmatic access and searching.
5457
Ned Batchelder coded it and wrote about how he uses the program in this

content/pages/examples/django/django-conf-settings-examples.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: django.conf settings Examples
1+
title: django.conf settings Code Examples
22
category: page
33
slug: django-conf-settings-examples
44
sortorder: 50010
@@ -7,7 +7,6 @@ sidebartitle: django.conf settings
77
meta: Python code examples for Django settings files.
88

99

10-
# django.conf settings Examples
1110
The [Django](/django.html)
1211
[settings](https://docs.djangoproject.com/en/dev/topics/settings/)
1312
file contains all of the configuration for a web application.

content/pages/examples/django/django-conf-urls-url.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: django.conf.urls.url Examples
1+
title: django.conf.urls.url Code Examples
22
category: page
33
slug: django-conf-urls-url-examples
44
sortorder: 50001
@@ -7,7 +7,6 @@ sidebartitle: django.conf.urls.url
77
meta: Python code examples for the url function within the django.conf.urls module of the Django project.
88

99

10-
# django.conf.urls.url Examples
1110
The [url](https://github.com/django/django/blob/master/django/conf/urls/__init__.py)
1211
function is contained with the
1312
[django.conf.urls](https://github.com/django/django/tree/master/django/conf/urls)

content/pages/examples/django/django-contrib-admin.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: django.contrib.admin Examples
1+
title: django.contrib.admin Code Examples
22
category: page
33
slug: django-contrib-admin-examples
44
sortorder: 50001
@@ -7,7 +7,6 @@ sidebartitle: django.contrib.admin
77
meta: Python code examples for the admin module within django.contrib of the Django project.
88

99

10-
# django.contrib.admin Examples
1110
The [Django admin](https://docs.djangoproject.com/en/2.2/ref/contrib/admin/)
1211
is an automatically-generated user interface for [Django models](/django-orm.html).
1312
The admin interface can be heavily customized and the code examples below can

content/pages/examples/django/django-core-exceptions-improperlyconfigured.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: django.core.exceptions ImproperlyConfigured Examples
1+
title: django.core.exceptions ImproperlyConfigured Code Examples
22
category: page
33
slug: django-core-exceptions-improperlyconfigured
44
sortorder: 50030
@@ -7,7 +7,6 @@ sidebartitle: django.core.exceptions ImproperlyConfigured
77
meta: Python code examples for the ImproperlyConfigured exception class provided by the Django codebase.
88

99

10-
# django.core.exceptions ImproperlyConfigured Examples
1110
[ImproperlyConfigured](https://github.com/django/django/blob/master/django/core/exceptions.py)
1211
is a class within the [Django](/django.html) project that is thrown
1312
when there is a mistake in an application's settings. The exception

content/pages/examples/django/django-core-mail-messages-emailmessage.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: django.core.mail.messages.EmailMessage Examples
1+
title: django.core.mail.messages EmailMessage Code Examples
22
category: page
33
slug: django-core-mail-messages-emailmessage-examples
44
sortorder: 50007
@@ -7,7 +7,6 @@ sidebartitle: django.core.mail.messages EmailMessage
77
meta: Python code examples for the EmailMessage function within the django.core.mail module of the Django project.
88

99

10-
# django.core.mail.messages.EmailMessage Examples
1110
The
1211
[EmailMessage](https://github.com/django/django/blob/master/django/core/mail/message.py)
1312
class is contained with the

content/pages/examples/django/django-core-mail-send-mail.markdown

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: django.core.mail.send_mail Examples
1+
title: django.core.mail.send_mail Code Examples
22
category: page
33
slug: django-core-mail-send-mail-examples
44
sortorder: 50006
@@ -7,15 +7,17 @@ sidebartitle: django.core.mail.send_mail
77
meta: Python code examples for the send_mail function within the django.core.mail module of the Django project.
88

99

10-
# django.core.mail.send_mail Examples
1110
[send_mail](https://github.com/django/django/blob/master/django/core/mail/__init__.py)
1211
is a function in [Django](/django.html) that can send an email
1312
using the [EmailMessage](/django-core-mail-messages-emailmessage-examples.html)
1413
class.
1514

1615

1716
## Example 1 from apiserver
18-
17+
[apiserver](https://github.com/renjith-tring/apiserver) is a
18+
[RESTful web API](/application-programming-interfaces.html) project
19+
built with [Django](/django.html) for user management tasks such as
20+
registration (with email verification), login, logout and password changes.
1921

2022
[**apiserver/apps/accounts/signals.py**](https://github.com/renjith-tring/apiserver/blob/master/apps/accounts/signals.py)
2123

content/pages/examples/django/django-core-management-base-basecommand.markdown

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: django.core.management.base BaseCommand Examples
1+
title: django.core.management.base BaseCommand Code Examples
22
category: page
33
slug: django-core-management-base-basecommand-examples
44
sortorder: 50018
@@ -7,7 +7,6 @@ sidebartitle: django.core.management.base BaseCommand
77
meta: Python code examples for Django management commands.
88

99

10-
# django.core.management.base BaseCommand Examples
1110
[BaseCommand](https://github.com/django/django/blob/master/django/core/management/base.py)
1211
is a [Django](/django.html) object for creating new Django admin commands
1312
that can be invoked with the `manage.py` script. The Django project team
@@ -42,24 +41,26 @@ from filer.models.imagemodels import Image
4241
~~ def handle(self, *args, **options):
4342
"""
4443
Generates image thumbnails
45-
NOTE: To keep memory consumption stable avoid iteration over the Image queryset
44+
NOTE: To keep memory consumption stable avoid iteration
45+
over the Image queryset
4646
"""
4747
pks = Image.objects.all().values_list('id', flat=True)
4848
total = len(pks)
4949
for idx, pk in enumerate(pks):
5050
image = None
5151
try:
5252
image = Image.objects.get(pk=pk)
53-
self.stdout.write(u'Processing image {0} / {1} {2}'.format(idx + 1, total, image))
53+
self.stdout.write(u'Processing image {0} / {1} {2}'.\
54+
format(idx + 1, total, image))
5455
self.stdout.flush()
5556
image.thumbnails
5657
image.icons
5758
except IOError as e:
58-
self.stderr.write('Failed to generate thumbnails: {0}'.format(str(e)))
59+
self.stderr.write('Failed to generate thumbnails: {0}'\
60+
.format(str(e)))
5961
self.stderr.flush()
6062
finally:
6163
del image
6264
```
6365

6466

65-

content/pages/examples/django/django-db-models-model.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: django.db.models.Model Examples
1+
title: django.db.models Model Code Examples
22
category: page
33
slug: django-db-models-model-examples
44
sortorder: 50002
@@ -7,7 +7,6 @@ sidebartitle: django.db.models Model
77
meta: Python code examples for the Model class within the django.db.models module of the Django project.
88

99

10-
# django.db.models.Model Examples
1110
The
1211
[Model](https://github.com/django/django/blob/master/django/db/models/base.py)
1312
class is the superclass for all data stored in [Django](/django.html)

content/pages/examples/django/django-db-models-signals.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: django.db.models.signal Examples
1+
title: django.db.models signal Code Examples
22
category: page
33
slug: django-db-models-signal-examples
44
sortorder: 50005
@@ -7,7 +7,6 @@ sidebartitle: django.db.models.signal
77
meta: Python code examples for database signals within a Django project.
88

99

10-
# django.db.models.signal Examples
1110
The
1211
[Signal](https://github.com/django/django/blob/master/django/db/models/signals.py)
1312
module allows certain senders to notify a set of receivers that some action

0 commit comments

Comments
 (0)