From dcf121d377450e9992e3d372d576718d80d60789 Mon Sep 17 00:00:00 2001 From: "Lucas F." Date: Wed, 15 Jan 2025 08:50:32 -0300 Subject: [PATCH] update: include import views --- lua/django/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/django/utils.lua b/lua/django/utils.lua index 9a6e8ee..6064625 100644 --- a/lua/django/utils.lua +++ b/lua/django/utils.lua @@ -147,7 +147,7 @@ local function perform_create_app(value) create_template_static_dirs(value, value) execute_command( os.execute, - "echo -e \"from django.urls import path\n\napp_name = '" + "echo -e \"from django.urls import path\n\nfrom . import views\n\napp_name = '" .. appname .. "'\n\nurlpatterns = []\" > " .. value