Skip to content

Commit 29069ed

Browse files
committed
working on aggregate page for django projects
1 parent 9806c4c commit 29069ed

File tree

2 files changed

+110
-1
lines changed

2 files changed

+110
-1
lines changed
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
title: Django Code Examples
2+
category: page
3+
slug: django-code-examples
4+
sortorder: 50000
5+
toc: False
6+
sidebartitle: Django Code Examples
7+
meta: Python code examples that show how to use the Django web application framework for many different situations.
8+
9+
10+
[Django](/django.html) is a Python [web framework](/web-frameworks.html).
11+
12+
<a href="http://www.djangoproject.com/" style="border: none;"><img src="/img/logos/django.png" width="100%" alt="Official Django logo. Trademark Django Software Foundation." class="shot" style="margin-top:20px"></a>
13+
14+
15+
## Django Projects
16+
Part of Django's widespread adoption comes from its broad ecosystem of
17+
open source code libraries and example projects.
18+
19+
It's good to familiarize yourself with the following projects to
20+
learn what is available to you beyond the extensive
21+
"[batteries-included](https://www.quora.com/Why-does-Django-tout-itself-as-a-batteries-included-web-framework-when-you-have-to-manually-write-regexes-to-do-URL-routing)"
22+
code base.
23+
24+
These projects, ordered alphabetically, are also helpful as example
25+
code for how to build your own applications.
26+
27+
28+
### django-cms
29+
[django-cms](https://github.com/divio/django-cms)
30+
([project website](https://www.django-cms.org/en/)) is a Python-based
31+
content management system (CMS) [library](https://pypi.org/project/django-cms/)
32+
for use with Django web apps that is open sourced under the
33+
[BSD 3-Clause "New" License](https://github.com/divio/django-cms/blob/develop/LICENSE).
34+
35+
Example code from django-cms:
36+
37+
* [django.conf.urls url](/django-conf-urls-url-examples.html)
38+
* [django.db.models Model](/django-db-models-model-examples.html)
39+
* [django.utils timezone](/django-utils-timezone-examples.html)
40+
41+
42+
### django-easy-timezones
43+
[django-easy-timezones](https://github.com/Miserlou/django-easy-timezones)
44+
([project website](https://www.gun.io/blog/django-easy-timezones))
45+
is a Django
46+
[middleware](https://docs.djangoproject.com/en/2.2/topics/http/middleware/)
47+
[code library](https://pypi.org/project/django-easy-timezones/)
48+
to simplify handling time data in your applications using
49+
users' geolocation data.
50+
51+
Useful example code found within django-easy-timezones:
52+
53+
* [django.conf settings](/django-conf-settings-examples.html)
54+
* [django.dispatch Signal](/django-dispatch-dispatcher-signal-examples.html)
55+
* [django.utils.timezone](/django-utils-timezone-examples.html)
56+
57+
58+
### django-filer
59+
[django-filer](https://github.com/divio/django-filer)
60+
([project documentation](https://django-filer.readthedocs.io/en/latest/))
61+
is a file management library for uploading and organizing files and images
62+
in Django's admin interface. The project's code is available under the
63+
[BSD 3-Clause "New" or "Revised" open source license](https://github.com/divio/django-filer/blob/develop/LICENSE.txt).
64+
65+
Code from django-filer can be found on these pages:
66+
67+
* [django.conf settings](/django-conf-settings-examples.html)
68+
* [django.contrib.admin](/django-contrib-admin.html)
69+
* [django.core.management.base BaseCommand](/django-core-management-base-basecommand-examples.html)
70+
71+
72+
### gadget-board
73+
[gadget-board](https://github.com/mik4el/gadget-board) is a
74+
[Django](/django.html),
75+
[Django REST Framework (DRF)](/django-rest-framework-drf.html) and
76+
[Angular](/angular.html) web application that is open source under the
77+
[Apache2 license](https://github.com/mik4el/gadget-board/blob/master/LICENSE).
78+
79+
Additional example code found within gadget-board:
80+
81+
* [django.conf.urls url](/django-conf-urls-url-examples.html)
82+
83+
84+
### register
85+
[register](https://github.com/ORGAN-IZE/register) is a [Django](/django.html),
86+
[Bootstrap](/bootstrap.html), [PostgreSQL](/postgresql.html) project that is
87+
open source under the
88+
[GNU General Public License v3.0](https://github.com/ORGAN-IZE/register/blob/master/LICENSE).
89+
This web application makes it easier for people to register as organ donors.
90+
You can see the application live at
91+
[https://register.organize.org/](https://register.organize.org/).
92+
93+
Useful example code from register can be found on:
94+
95+
* [django.conf.urls url](/django-conf-urls-url-examples.html)
96+
97+
98+
### wagtail
99+
[wagtail](https://github.com/wagtail/wagtail)
100+
([project website](https://wagtail.io/)) is a fantastic
101+
[Django](/django.html)-based CMS with code that is open source
102+
under the
103+
[BSD 3-Clause "New" or "Revised" License](https://github.com/wagtail/wagtail/blob/master/LICENSE).
104+
105+
Example code from wagtail shown on these pages:
106+
107+
* [django.conf.urls url](/django-conf-urls-url-examples.html)
108+
109+

theme/templates/table-of-contents.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ <h4 class="bp"><a href="https://testdriven.io/courses/microservices-with-docker-
230230
<h2>Example Python Code</h2>
231231
<div class="row">
232232
<div class="c6">
233-
<h3 style="margin-top:16px">Django examples</h3>
233+
<h3 style="margin-top:16px"><a href="/django-code-examples.html">Django code examples</a></h3>
234234
<h4 class="bp"><a href="/django-conf-settings-examples.html">django.conf.settings</a></h4>
235235
<h4 class="bp"><a href="/django-conf-urls-url-examples.html">django.conf.urls.url</a></h4>
236236
<h4 class="bp"><a href="/django-contrib-admin-examples.html">django.contrib.admin</a></h4>

0 commit comments

Comments
 (0)