File tree 5 files changed +9
-6
lines changed
5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
- __version__ = "0.0.1"
2
-
3
1
from .websocket_consumer import IdomAsyncWebSocketConsumer
4
2
3
+
4
+ __version__ = "0.0.1"
5
5
__all__ = ["IdomAsyncWebSocketConsumer" ]
Original file line number Diff line number Diff line change 3
3
from typing import Any
4
4
5
5
from channels .generic .websocket import AsyncJsonWebsocketConsumer
6
-
7
- from idom .core .layout import Layout
8
- from idom .core .dispatcher import dispatch_single_view
9
6
from idom .core .component import ComponentConstructor
7
+ from idom .core .dispatcher import dispatch_single_view
8
+ from idom .core .layout import Layout
10
9
11
10
12
11
class IdomAsyncWebSocketConsumer (AsyncJsonWebsocketConsumer ):
Original file line number Diff line number Diff line change 1
1
import subprocess
2
2
from pathlib import Path
3
+
3
4
from django .core .management .base import BaseCommand
4
5
6
+
5
7
HERE = Path (__file__ ).parent
6
8
JS_DIR = HERE .parent .parent .parent / "js"
7
9
Original file line number Diff line number Diff line change 18
18
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
19
19
"""
20
20
from django .urls import path
21
+
21
22
from .views import base_template
22
23
24
+
23
25
urlpatterns = [path ("" , base_template )]
Original file line number Diff line number Diff line change 1
1
import idom
2
- from django .template import loader
3
2
from django .http import HttpResponse
3
+ from django .template import loader
4
4
5
5
6
6
def base_template (request ):
You can’t perform that action at this time.
0 commit comments