Browse Source

update: include import views

master
Lucas 1 week ago
parent
commit
dcf121d377
  1. 2
      lua/django/utils.lua

2
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

Loading…
Cancel
Save