irongit

A simpler way to view django projects

add include to the urls

huncholanehuncholaneauthored
parent f8627e9commit c368b5f48a7e9d5904bb97de49bfeb4a26867525Browse files

1 file changed, +2 -2

+2-2snippets/python.json
@@ -2,7 +2,7 @@
22 "DjangoTree URLs": {
33 "prefix": "dt-urls",
44 "body": [
5- "from django.urls import path, re_path",
5+ "from django.urls import path, re_path, include",
66 "from . import views",
77 "",
88 "urlpatterns = [",
@@ -14,7 +14,7 @@
1414 "DjangoTree Websocket URLs": {
1515 "prefix": "dt-ws-urls",
1616 "body": [
17- "from django.urls import path, re_path",
17+ "from django.urls import path, re_path, include",
1818 "from . import consumers",
1919 "",
2020 "websocket_urlpatterns = [",