Skip to content

Commit

Permalink
some changes to new backend
Browse files Browse the repository at this point in the history
  • Loading branch information
vivoit00 committed Apr 29, 2024
1 parent b23f14a commit 9e949a3
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 163 deletions.
12 changes: 6 additions & 6 deletions sample/otel-in-action/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ services:
# depends_on:
# - postgresdb

todobackend-django: #NICHT FERTIG
image: #WHAT IS DIS
networks:
- todonet
todobackend-django:
build:
context: ./todobackend_django
dockerfile: Dockerfile
networks:
- todonet
ports:
- "8080:8080"
restart: unless stopped
- "8000:8000"
restart: unless-stopped


todoui-thymeleaf:
image: todoui:otel
Expand Down
1 change: 1 addition & 0 deletions sample/otel-in-action/todobackend_django/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# python manage.py runserver 8080 muss glaub rein oder so
2 changes: 1 addition & 1 deletion sample/otel-in-action/todobackend_django/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "todo_project.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "todobackend_django.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
123 changes: 0 additions & 123 deletions sample/otel-in-action/todobackend_django/todo_project/settings.py

This file was deleted.

23 changes: 0 additions & 23 deletions sample/otel-in-action/todobackend_django/todo_project/urls.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
ASGI config for todo_project project.
ASGI config for todobackend_django project.
It exposes the ASGI callable as a module-level variable named ``application``.
Expand All @@ -11,6 +11,6 @@

from django.core.asgi import get_asgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "todo_project.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "todobackend_django.settings")

application = get_asgi_application()
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from django.core.management.utils import get_random_secret_key

ALLOWED_HOSTS = ['*']

ROOT_URLCONF = 'todobackend_django.urls'

SECRET_KEY = get_random_secret_key()

INSTALLED_APPS = [

'rest_framework',
'todos',

]

#DATABASES: {}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
WSGI config for todo_project project.
WSGI config for todobackend_django project.
It exposes the WSGI callable as a module-level variable named ``application``.
Expand All @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "todo_project.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "todobackend_django.settings")

application = get_wsgi_application()
6 changes: 0 additions & 6 deletions sample/otel-in-action/todobackend_django/todos/settings.py

This file was deleted.

0 comments on commit 9e949a3

Please sign in to comment.