File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1- __version__ = "0.0.1"
2-
31from .websocket_consumer import IdomAsyncWebSocketConsumer
42
3+
4+ __version__ = "0.0.1"
55__all__ = ["IdomAsyncWebSocketConsumer" ]
Original file line number Diff line number Diff line change 33from typing import Any
44
55from channels .generic .websocket import AsyncJsonWebsocketConsumer
6-
7- from idom .core .layout import Layout
8- from idom .core .dispatcher import dispatch_single_view
96from idom .core .component import ComponentConstructor
7+ from idom .core .dispatcher import dispatch_single_view
8+ from idom .core .layout import Layout
109
1110
1211class IdomAsyncWebSocketConsumer (AsyncJsonWebsocketConsumer ):
Original file line number Diff line number Diff line change 11import subprocess
22from pathlib import Path
3+
34from django .core .management .base import BaseCommand
45
6+
57HERE = Path (__file__ ).parent
68JS_DIR = HERE .parent .parent .parent / "js"
79
Original file line number Diff line number Diff line change 1818 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1919"""
2020from django .urls import path
21+
2122from .views import base_template
2223
24+
2325urlpatterns = [path ("" , base_template )]
Original file line number Diff line number Diff line change 11import idom
2- from django .template import loader
32from django .http import HttpResponse
3+ from django .template import loader
44
55
66def base_template (request ):
You can’t perform that action at this time.
0 commit comments