Skip to content

Commit

Permalink
settings.py aktualisieren
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahBakir97 authored May 27, 2024
1 parent 374624a commit 89d2d24
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions backend/project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
https://docs.djangoproject.com/en/5.0/ref/settings/
"""

import os
from pathlib import Path
from celery.schedules import crontab
from datetime import timedelta
Expand Down Expand Up @@ -119,7 +120,7 @@
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [],
"DIRS": [os.path.join(BASE_DIR, 'frontend/dist')],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
Expand Down Expand Up @@ -183,7 +184,16 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.0/howto/static-files/

STATIC_URL = "static/"
BASE_DIR = Path(__file__).resolve().parent.parent

# Static files (CSS, JavaScript, Images)
STATIC_URL = '/static/'

# Add these lines
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'frontend/dist'), # Point to the built Vue.js application
]


# Default primary key field type
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
Expand Down

0 comments on commit 89d2d24

Please sign in to comment.