Skip to content

Commit

Permalink
CH-59 Update api to __APP_NAME__ in django templates
Browse files Browse the repository at this point in the history
  • Loading branch information
condar-metacell committed Sep 13, 2024
1 parent af6d130 commit 45c1e24
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion application-templates/django-app/api/templates/main.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apps.populate(settings.INSTALLED_APPS)
# migrate the Django models
os.system("python manage.py migrate")

from api.controllers import *
from __APP_NAME__.controllers import *

app = FastAPI(
{% if info %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

class ApiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'api'
name = '__APP_NAME__'
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import api.controllers.test as test_controller
import __APP_NAME__.controllers.test as test_controller
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@

# add the local apps
INSTALLED_APPS += [
"api",
"__APP_NAME__"
"__APP_NAME__",
"ch_django"
]

# override django admin base template with a local template
Expand Down

0 comments on commit 45c1e24

Please sign in to comment.