Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions assets/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,23 @@ section.timeline {
a, a:visited, a:active {
color: #FFF;
}
code {
background: lighten(#000, 20%);
border: 1px solid lighten(#000, 50%);
padding: 1px 3px;
font-size: 80%;
font-family: monospace;
}
}
img {
dispay: block;
max-width: 100%;
}
&.release p {
font-size: 80%;
padding: 10px 20px;
}

blockquote {
font-style: italic;
padding-right: 30px;
Expand Down
2 changes: 1 addition & 1 deletion content/timeline/00_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ params:
---

<!--Description paragraph, markdown possible-->

<!--NB! Use present tense! "Django gets a ...", not "Django got a ..."-->
2 changes: 1 addition & 1 deletion content/timeline/2005-07-13-first-commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ params:

---

Just before lunch on July 13, 2005, Jacob Kaplan-Moss made [the first commit](https://github.com/django/django/commit/d6ded0e91bcdd2a8f7a221f6a5552a33fe545359) to the public repository that would become Django. This was followed by a series of commits by Adrian Holovaty importing from the private repository where Django had lived up to that point.
Just before lunch on July 13, 2005, Jacob Kaplan-Moss makes [the first commit](https://github.com/django/django/commit/d6ded0e91bcdd2a8f7a221f6a5552a33fe545359) to the public repository that would become Django. This is followed by a series of commits by Adrian Holovaty importing from the private repository where Django had lived up to that point.
15 changes: 15 additions & 0 deletions content/timeline/2008-09-04-django-1-released.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "Django version 1.0"
date: "2017-12-02"
draft: false

params:
timeline_date: 2008-09-04
timeline_type: release
timeline_release: "1.0"

---

Django version 1.0 is released and Django's Documentation (docs.djangoprojects.com) is officially launched.

> Since Django 0.96, we’ve made over 4,000 code commits, fixed more than 2,000 bugs, and edited, added, or removed around 350,000 lines of code. We’ve also added 40,000 lines of new documentation, and greatly improved what was already there.
21 changes: 21 additions & 0 deletions content/timeline/2008-django-pony/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "Django Pony is born"
date: "2025-07-03"
draft: false

params:
timeline_date: 2008-09-08
timeline_type: milestone

---

In a keynote called "Why I Hate Django", a joke is made that Django needs a mascot with magical powers. Bryan Veloso comes up with [the first design](https://avalonstar.com/blog/2008/the-web-framework-for-ponies/), based on a design from iStockPhoto. A tagline "The web framework for ponies with magical powers" and [djangopony.com](https://djangopony.com/) is launched.

{{< imgProc
img="django_pony_bryan_veloso.jpg"
command="Fit"
options="800x800"
alt="Django Pony wallpaper by Bryan Veloso and iStockPhoto"
class="photo"
>}}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions content/timeline/2008-djangocon-us.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: "First DjangoCon!"
date: "2025-07-03"
draft: false

params:
timeline_date: 2008-09-06
timeline_type: milestone

---

[The first DjangoCon is held](https://www.djangoproject.com/weblog/2008/jul/13/djangocon/), a 2-day DjangoCon US in Mountain View. The event has 200 attendees and marks the launch of Django 1.0.
13 changes: 13 additions & 0 deletions content/timeline/2009-07-29-django-1.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Django version 1.1"
date: "2017-12-02"
draft: false

params:
timeline_date: 2009-07-29
timeline_type: release
timeline_release: "1.1"

---

Django 1.1 is released, including new features like the `TransactionTestCase` (wrapping test cases in database transactions), aggregate support in the ORM, `F()` expressions, proxy models, admin actions, and many more things that have since then become classics.
3 changes: 2 additions & 1 deletion content/timeline/2010-05-17-first-pypi-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ draft: false

params:
timeline_date: 2010-05-17
timeline_type: milestone
timeline_type: release
timeline_release: "1.0.1"

---

Expand Down
2 changes: 1 addition & 1 deletion content/timeline/2015-07-13-10th-birthday.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ params:
---

Django has its first big birthday celebration. [A blog post](https://www.djangoproject.com/weblog/2015/jul/13/happy-10th-birthday-django/
) was written and a Django Birthday conference was held in the US. Also this series of video greetings was sent from community all-over the world:
) is written and a Django Birthday conference is held in the US. Also this series of video greetings is sent from community all-over the world:

<iframe width="560" height="315" src="https://www.youtube.com/embed/ycKC3JMEk8U?si=aA1yutBYSxLLZgnr" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
13 changes: 13 additions & 0 deletions content/timeline/2017-12-02-django-2-released.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Django version 2.0"
date: "2017-12-02"
draft: false

params:
timeline_date: 2017-12-02
timeline_type: release
timeline_release: "2.0"

---

Django version 2.0 is released, highlights include: New default URL patterns, mobile-friendly admin, Window expressions for the ORM.
13 changes: 13 additions & 0 deletions content/timeline/2019-12-02-django-3-released.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Django version 3.0"
date: "2019-12-02"
draft: false

params:
timeline_date: 2019-12-02
timeline_type: release
timeline_release: "3.0"

---

Django version 3.0 is released, highlight include MariaDB support and ASGI support.
13 changes: 13 additions & 0 deletions content/timeline/2021-12-07-django-4-released.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Django version 4.0"
date: "2021-12-07"
draft: false

params:
timeline_date: 2021-12-07
timeline_type: release
timeline_release: "4.0"

---

Django version 4.0 is released, highlights include: Template-based form rendering, the pytz dependency is removed, `Meta.constraints` introduces functional expressions, a new Redis cache backend is added.
13 changes: 13 additions & 0 deletions content/timeline/2023-12-04-django-5-released.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Django version 5.0"
date: "2023-12-04"
draft: false

params:
timeline_date: 2023-12-04
timeline_type: release
timeline_release: "5.0"

---

Django version 5.0 is released, highlights include: db-computed field defaults, `GeneratedField` is added, and a simplified `.as_field_group` form field template rendering.
3 changes: 3 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ languages:
- name: "Add event"
url: "/add-event/"
weight: 2
- name: "Timeline"
url: "/timeline/"
weight: 3
# - name: "Gifts"
# url: "/gifts/"
# weight: 3
22 changes: 22 additions & 0 deletions themes/django20/layouts/shortcodes/imgProc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{- $img := .Get "img" -}}
{{- $command := .Get "command" -}}
{{- $options := .Get "options" -}}
{{- $alt := .Get "alt" -}}
{{- $class := .Get "class" -}}
{{- $style := .Get "style" -}}

{{- $original := .Page.Resources.GetMatch (printf "*%s*" $img) -}}
{{- $new := "" -}}

{{- if eq $command "Fit"}}
{{- $new = $original.Fit $options -}}
{{- else if eq $command "Resize"}}
{{- $new = $original.Resize $options -}}
{{- else if eq $command "Fill"}}
{{- $new = $original.Fill $options -}}
{{- else -}}
{{- errorf "Invalid image processing command: Must be one of Fit, Fill or Resize."}}
{{- end -}}

<img src="{{ $new.Permalink }}" alt="{{ $alt }}" class="{{ $class }}" style="{{ $style | safeCSS }}"/>

3 changes: 2 additions & 1 deletion themes/django20/layouts/timeline/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
<ul>
{{ $timeline := (where .Pages.ByDate "published" "!=" "false") }}
{{ range sort $timeline ".Params.timeline_date" "asc" }}
<li>
<li class="{{ .Params.timeline_type }}">
<time>{{ .Params.timeline_date }}</time>
{{ if .Params.timeline_release }}<p class="release">📦 {{ .Params.timeline_release }} released (<a href="https://docs.djangoproject.com/en/5.2/releases/2.0/" target="_blank">docs</a>)</p>{{ end }}
{{ .Content }}
</li>
{{ end }}
Expand Down