Skip to content

Commit 657cc00

Browse files
Make jinja2 optional - remove from core dependencies
- Remove jinja2 from pyproject.toml dependencies - Make Jinja2 backend optional with ImportError handling - Simplify home app - return JSON instead of templates - Remove templates directory from project template - Make render_template require jinja2 installation - Add fallback string replacement in template rendering
1 parent 0e59fad commit 657cc00

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+122
-1075
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ dependencies = [
1010
"uvicorn>=0.15.0",
1111
"starlette>=0.27.0",
1212
"asgiref>=3.0.0",
13-
"jinja2>=2.10.0",
1413
"python-multipart>=0.0.5",
1514
"sqlalchemy>=1.4.0,<2.0.0",
1615
"alembic>=1.8.0",
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Register your models here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from raystack.compat import JSONResponse
2+
3+
# Create your views here.
4+
5+
def example_view(request):
6+
return JSONResponse({"message": "Example view"})

0 commit comments

Comments
 (0)