This commit is contained in:
Peter Kotyczka 2024-03-24 22:58:33 +01:00
parent 6b59303c31
commit 679d7d1b58
55 changed files with 40 additions and 0 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
README.MD Normal file → Executable file
View File

Binary file not shown.

View File

0
artemis/artemis-data/journal/activemq-data-1.amq Normal file → Executable file
View File

0
artemis/artemis-data/journal/activemq-data-2.amq Normal file → Executable file
View File

BIN
artemis/artemis-data/journal/server.lock Normal file → Executable file

Binary file not shown.

0
artemis/artemis-data/journal/serverlock.1 Normal file → Executable file
View File

0
artemis/artemis-data/journal/serverlock.2 Normal file → Executable file
View File

0
artemis/docker-compose-amq.yml Normal file → Executable file
View File

0
demo/app/address.py Normal file → Executable file
View File

0
demo/app/basic.py Normal file → Executable file
View File

0
demo/app/config.py Normal file → Executable file
View File

0
demo/app/dice.py Normal file → Executable file
View File

0
demo/app/edit.py Normal file → Executable file
View File

0
demo/app/queue/__pycache__/config.cpython-311.pyc Normal file → Executable file
View File

0
demo/app/queue/ampq_client.py Normal file → Executable file
View File

0
demo/app/queue/ampq_receiver.py Normal file → Executable file
View File

0
demo/app/queue/ampq_sender.py Normal file → Executable file
View File

0
demo/app/queue/ampq_server.py Normal file → Executable file
View File

0
demo/app/queue/client_http.py Normal file → Executable file
View File

0
demo/app/queue/config.py Normal file → Executable file
View File

0
demo/app/queue/connect.json Normal file → Executable file
View File

0
demo/app/queue/db_receive.py Normal file → Executable file
View File

0
demo/app/queue/db_send.py Normal file → Executable file
View File

0
demo/app/queue/send.py Normal file → Executable file
View File

0
demo/app/queue/test.py Normal file → Executable file
View File

0
demo/app/temp.py Normal file → Executable file
View File

BIN
demo/db.sqlite3 Normal file → Executable file

Binary file not shown.

0
demo/demo/__init__.py Normal file → Executable file
View File

0
demo/demo/api-client.py Normal file → Executable file
View File

0
demo/demo/asgi.py Normal file → Executable file
View File

0
demo/demo/settings.py Normal file → Executable file
View File

0
demo/demo/urls.py Normal file → Executable file
View File

0
demo/demo/wsgi.py Normal file → Executable file
View File

0
demo/migration/__init__.py Normal file → Executable file
View File

0
demo/migration/admin.py Normal file → Executable file
View File

0
demo/migration/apps.py Normal file → Executable file
View File

0
demo/migration/migrations/0001_initial.py Normal file → Executable file
View File

View File

@ -0,0 +1,24 @@
# Generated by Django 5.0.2 on 2024-02-26 20:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('migration', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='shoppingitem',
name='price',
field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
),
migrations.AddField(
model_name='shoppingitem',
name='quantity',
field=models.PositiveIntegerField(default=0.0),
preserve_default=False,
),
]

0
demo/migration/migrations/__init__.py Normal file → Executable file
View File

View File

View File

2
demo/migration/models.py Normal file → Executable file
View File

@ -6,6 +6,8 @@ class ShoppingItem(models.Model):
created_at = models.DateField(default=date.today)
name = models.CharField(max_length=120)
done = models.BooleanField(default=False)
price = models.DecimalField(max_digits=10, decimal_places=2, default = 0.0)
quantity = models.PositiveIntegerField()
def __str__(self):
return str(self.id) + ' - ' + self.name

7
demo/migration/serializers.py Executable file
View File

@ -0,0 +1,7 @@
from rest_framework import serializers
from .models import ShoppingItem
class ShoppingItemSerializer(serializers.ModelSerializer):
class Meta:
model = ShoppingItem
fields = '__all__'

0
demo/migration/templates/migration.html Normal file → Executable file
View File

0
demo/migration/tests.py Normal file → Executable file
View File

0
demo/migration/urls.py Normal file → Executable file
View File

6
demo/migration/views.py Normal file → Executable file
View File

@ -1,6 +1,12 @@
from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from migration.models import ShoppingItem
from rest_framework import viewsets
from migration.serializers import ShoppingItemSerializer
class ShoppingItemViewSet(viewsets.ModelViewSet):
queryset = ShoppingItem.objects.all()
serializer_class = ShoppingItemSerializer
def index(response):
return HttpResponse("Welcome to siMed Migration")

0
demo/queue/queue_consumer.py Normal file → Executable file
View File

0
docker-compose-queue.yml Normal file → Executable file
View File

0
docker-compose.yml Normal file → Executable file
View File

0
requirements.txt Normal file → Executable file
View File

1
undefined/new.camel.yaml Normal file
View File

@ -0,0 +1 @@
[]