Skip to content

Commit 67ecc01

Browse files
authored
Merge pull request #44 from tomvictor/feature/django
Feature/django
2 parents 4616d52 + 8980f5a commit 67ecc01

File tree

12 files changed

+44
-5
lines changed

12 files changed

+44
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iotcore"
3-
version = "0.0.14"
3+
version = "0.2.0"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

examples/django/develop/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"django.contrib.sessions",
3838
"django.contrib.messages",
3939
"django.contrib.staticfiles",
40-
"iotcore.djangoiot"
40+
# "iotcore.djangoiot", # Broker only
41+
"iot"
4142
]
4243

4344
MIDDLEWARE = [

examples/django/develop/urls.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
"""
1717
from django.contrib import admin
1818
from django.urls import path
19+
from iot import views
1920

2021
urlpatterns = [
2122
path("admin/", admin.site.urls),
23+
path("sub", views.subscribe),
24+
path("pub", views.publish),
2225
]

examples/django/iot/__init__.py

Whitespace-only changes.

examples/django/iot/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

examples/django/iot/apps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class IotConfig(AppConfig):
5+
default_auto_field = "django.db.models.BigAutoField"
6+
name = "iot"

examples/django/iot/migrations/__init__.py

Whitespace-only changes.

examples/django/iot/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.db import models
2+
3+
# Create your models here.

examples/django/iot/tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.test import TestCase
2+
3+
# Create your tests here.

0 commit comments

Comments
 (0)