From 5d204d24e865cb1c708a5cbf2e6c80090d46a57d Mon Sep 17 00:00:00 2001 From: Brian Wiborg Date: Sat, 27 Sep 2025 06:09:11 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8FImprove=20templates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ohmyapi/core/templates/app/models.py.j2 | 6 +++--- src/ohmyapi/core/templates/project/settings.py.j2 | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ohmyapi/core/templates/app/models.py.j2 b/src/ohmyapi/core/templates/app/models.py.j2 index a0fc523..6ffbcd9 100644 --- a/src/ohmyapi/core/templates/app/models.py.j2 +++ b/src/ohmyapi/core/templates/app/models.py.j2 @@ -1,6 +1,6 @@ from ohmyapi.db import Model, field -class MyModel(Model): - id: int = field.IntField(min=1, pk=True) - ... +# class MyModel(Model): +# id: int = field.IntField(min=1, pk=True) +# ... diff --git a/src/ohmyapi/core/templates/project/settings.py.j2 b/src/ohmyapi/core/templates/project/settings.py.j2 index 5f42a26..6d65f01 100644 --- a/src/ohmyapi/core/templates/project/settings.py.j2 +++ b/src/ohmyapi/core/templates/project/settings.py.j2 @@ -1,5 +1,7 @@ # {{ project_name }} settings.py PROJECT_NAME = "MyProject" DATABASE_URL = "sqlite://db.sqlite3" -INSTALLED_APPS = [] +INSTALLED_APPS = [ + #'ohmyapi_auth', +]