From 7d7ba9fc715ea6002d050bcc8f9456137dc5df1d Mon Sep 17 00:00:00 2001 From: Tiago Silva Date: Wed, 10 Apr 2024 00:26:57 +0100 Subject: [PATCH 1/3] Update urls.py-tpl (#50) * Update urls.py-tpl * Update routing.md --- docs/routing.md | 2 +- .../_templates/project_template/project_name/urls.py-tpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/routing.md b/docs/routing.md index c09d1d6..1d50527 100644 --- a/docs/routing.md +++ b/docs/routing.md @@ -250,7 +250,7 @@ Includes are unique to Lilya, powerful and with more control and allows: 6. Less human lead bugs. !!! Warning - Includes **DO NOT** take path parameters. E.g.: `Include('/{name:path}, routes=[...])`. + Includes **DO NOT** take path parameters. E.g.: `Include('/include/{id:int}, routes=[...])`. ### Include and application diff --git a/lilya/_internal/_templates/project_template/project_name/urls.py-tpl b/lilya/_internal/_templates/project_template/project_name/urls.py-tpl index 3e15689..b6edbb0 100644 --- a/lilya/_internal/_templates/project_template/project_name/urls.py-tpl +++ b/lilya/_internal/_templates/project_template/project_name/urls.py-tpl @@ -7,13 +7,13 @@ The `route_patterns` list routes URLs to views. Examples: Function views: 1. Add an import: from my_app.views import home - 2. Add a URL to route_patterns: Gateway('/', handler=home, name='home') + 2. Add a URL to route_patterns: Path('/', handler=home, name='home') Class-based views: 1. Add an import: from other_app.views import Home - 2. Add a URL to route_patterns: Gateway('/', handler=Home, name='home') + 2. Add a URL to route_patterns: Path('/', handler=Home, name='home') Including another configuration: 1. Import the Include object: from lilya import Include - 2. Add a URL to route_patterns: Gateway('/api/v1/', Include(namespace='myapp.urls')) + 2. Add a URL to route_patterns: Include('/api/v1/', namespace='myapp.urls')) """ from lilya.routing import Path, Include From 8f57b2f26ce68ea801a0186fc965ef2c66cf39a0 Mon Sep 17 00:00:00 2001 From: Tiago Silva Date: Wed, 10 Apr 2024 00:28:51 +0100 Subject: [PATCH 2/3] Update urls.py-tpl --- .../_templates/project_template/project_name/urls.py-tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lilya/_internal/_templates/project_template/project_name/urls.py-tpl b/lilya/_internal/_templates/project_template/project_name/urls.py-tpl index b6edbb0..74b2037 100644 --- a/lilya/_internal/_templates/project_template/project_name/urls.py-tpl +++ b/lilya/_internal/_templates/project_template/project_name/urls.py-tpl @@ -6,14 +6,14 @@ The `route_patterns` list routes URLs to views. Examples: Function views: - 1. Add an import: from my_app.views import home + 1. Add an import: from my_app.views import home 2. Add a URL to route_patterns: Path('/', handler=home, name='home') Class-based views: - 1. Add an import: from other_app.views import Home + 1. Add an import: from other_app.views import Home 2. Add a URL to route_patterns: Path('/', handler=Home, name='home') Including another configuration: - 1. Import the Include object: from lilya import Include - 2. Add a URL to route_patterns: Include('/api/v1/', namespace='myapp.urls')) + 1. Import the Include object: from lilya.routing import Include + 2. Add a URL to route_patterns: Include('/api/v1/', namespace='myapp.urls')) """ from lilya.routing import Path, Include From 8fa223ef5f2b743d548d67b783e6c0a5c80fddd9 Mon Sep 17 00:00:00 2001 From: Tiago Silva Date: Wed, 10 Apr 2024 23:12:28 +0100 Subject: [PATCH 3/3] Update __init__.py (#51) * Update __init__.py * Update release-notes.md --- docs/release-notes.md | 10 ++++++++++ lilya/__init__.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index bd3f8fe..825a481 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -5,6 +5,16 @@ hide: # Release Notes +## 0.3.5 + +### Changed + +- Documentation improvements. + +### Fixed + +- Typo in the create project directive urls file descripton. + ## 0.3.4 ### Added diff --git a/lilya/__init__.py b/lilya/__init__.py index 334b899..a8d4557 100644 --- a/lilya/__init__.py +++ b/lilya/__init__.py @@ -1 +1 @@ -__version__ = "0.3.4" +__version__ = "0.3.5"