Skip to content
Snippets Groups Projects
Commit 90f76b73 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-595: frontend template static paths

parent bdfbb3c1
No related branches found
No related tags found
1 merge request!343Resolve TMSS-557 and TMSS-307
......@@ -133,7 +133,7 @@ ROOT_URLCONF = 'lofar.sas.tmss.tmss.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR, os.path.join(BASE_DIR, 'templates'), os.path.join(BASE_DIR, '../../frontend','tmss_webapp')],
'DIRS': [BASE_DIR, os.path.join(BASE_DIR, 'templates'), os.path.join(BASE_DIR, 'frontend','tmss_webapp')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
......@@ -147,7 +147,7 @@ TEMPLATES = [
]
STATICFILES_DIRS = [
os.path.join(BASE_DIR, '../../frontend','tmss_webapp/build/static')
os.path.join(BASE_DIR, 'frontend','tmss_webapp/build/static')
]
WSGI_APPLICATION = 'lofar.sas.tmss.tmss.wsgi.application'
......
......@@ -41,7 +41,7 @@ def subtask_parset(request, subtask_pk:int):
def index(request):
return render(request, os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), '../../../frontend','tmss_webapp/build/index.html'))
return render(request, os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), '../frontend','tmss_webapp/build/index.html'))
#return render(request, "../../../frontend/frontend_poc/build/index.html")
......
include(NPMInstall)
npm_install(package.json PUBLIC public SOURCE src DESTINATION ${PYTHON_INSTALL_DIR}/lofar/sas/frontend/tmss_webapp/build)
npm_install(package.json PUBLIC public SOURCE src DESTINATION ${PYTHON_INSTALL_DIR}/lofar/sas/tmss/frontend/tmss_webapp/build)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment