Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style cleanup 3
  • Loading branch information
Archmonger committed Jun 20, 2021
commit 6b64aa234b528518f4fb09fe2ab5e8d38587b531
4 changes: 2 additions & 2 deletions src/django_idom/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__version__ = "0.0.1"

from .websocket_consumer import IdomAsyncWebSocketConsumer


__version__ = "0.0.1"
__all__ = ["IdomAsyncWebSocketConsumer"]
5 changes: 2 additions & 3 deletions src/django_idom/websocket_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
from typing import Any

from channels.generic.websocket import AsyncJsonWebsocketConsumer

from idom.core.layout import Layout
from idom.core.dispatcher import dispatch_single_view
from idom.core.component import ComponentConstructor
from idom.core.dispatcher import dispatch_single_view
from idom.core.layout import Layout


class IdomAsyncWebSocketConsumer(AsyncJsonWebsocketConsumer):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_app/management/commands/build_js.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import subprocess
from pathlib import Path

from django.core.management.base import BaseCommand


HERE = Path(__file__).parent
JS_DIR = HERE.parent.parent.parent / "js"

Expand Down
2 changes: 2 additions & 0 deletions tests/test_app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.urls import path

from .views import base_template


urlpatterns = [path("", base_template)]
2 changes: 1 addition & 1 deletion tests/test_app/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import idom
from django.template import loader
from django.http import HttpResponse
from django.template import loader


def base_template(request):
Expand Down