Commit 0fd8a374 authored by Timo's avatar Timo
Browse files

Add django-npm package TG-290

parent 3a2f32a4
Pipeline #134 passed with stage
in 21 seconds
......@@ -18,8 +18,6 @@ createsuperuser:
$(MANAGEPY) shell -c "from castellum_auth.models import User; User.objects.filter(username='admin') or User.objects.create_superuser('admin', 'admin@example.com', '123')"
install:
pip install tox ipdb
pip install tox ipdb django-npm
pip install -e .
npm install
mkdir -p castellum_core/static/
cp node_modules/bootstrap/dist/css/bootstrap.min.css castellum_core/static/
......@@ -95,4 +95,17 @@ STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static'),
]
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'npm.finders.NpmFinder',
]
STATIC_URL = '/static/'
NPM_ROOT_PATH = os.path.dirname(BASE_DIR)
NPM_FILE_PATTERNS = {
'bootstrap': ['dist/css/bootstrap.min.css'],
}
......@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<title>{% block title %}Castellum{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{% static 'bootstrap.min.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'bootstrap/dist/css/bootstrap.min.css' %}" />
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'" />
</head>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment