Skip to content

Commit

Permalink
move vite build to frontend folder
Browse files Browse the repository at this point in the history
  • Loading branch information
LoTerence committed Sep 20, 2024
1 parent fccdbf7 commit a682879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / 'frontend/templates'],
'DIRS': [BASE_DIR / 'frontend/templates/frontend'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
Expand Down Expand Up @@ -87,7 +87,6 @@
}
}


# Password validation
# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators

Expand Down Expand Up @@ -144,5 +143,5 @@
# Add the build.outDir from vite.config.js to STATICFILES_DIRS
# so that collectstatic can collect your compiled vite assets.
STATICFILES_DIRS = [
BASE_DIR / "frontend/static/vite_assets_dist"
BASE_DIR / 'frontend/static/vite_assets_dist'
]
File renamed without changes.

0 comments on commit a682879

Please sign in to comment.