diff --git a/Django_api/airline/airline/settings.py b/Django_api/airline/airline/settings.py index 4c493b2..5dfdca8 100644 --- a/Django_api/airline/airline/settings.py +++ b/Django_api/airline/airline/settings.py @@ -88,9 +88,9 @@ ] if ENVIRONMENT == 'development': - WSGI_APPLICATION = 'monprojet.wsgi.application' + WSGI_APPLICATION = 'airline.wsgi.application' else: - ASGI_APPLICATION = 'monprojet.asgi.application' + ASGI_APPLICATION = 'airline.asgi.application' # Database diff --git a/Django_api/requirements.txt b/Django_api/requirements.txt new file mode 100644 index 0000000..b9b3006 Binary files /dev/null and b/Django_api/requirements.txt differ diff --git a/Docker/API/Dockerfile b/Docker/API/Dockerfile index 07a83fb..ac9b336 100644 --- a/Docker/API/Dockerfile +++ b/Docker/API/Dockerfile @@ -1,17 +1,17 @@ FROM python:3.12 -ADD ../../../Django_Frontend/ /app +ADD ../../../Django_api/ /app RUN set -ex \ && python -m venv /env \ && /env/bin/pip install --upgrade pip \ && /env/bin/pip install --no-cache-dir -r /app/requirements.txt -WORKDIR /app/monprojet +WORKDIR /app/airline ENV VIRTUAL_ENV /env ENV PATH /env/bin:$PATH RUN python manage.py djecrety -s -CMD ["daphne", "-b", "0.0.0.0", "-p", "8000", "monprojet.asgi:application"] +CMD ["daphne", "-b", "0.0.0.0", "-p", "8000", "airline.asgi:application"]