1
0
Fork 0

Installed django-bower package and included Underscore, Backbone, and D3 components.

merge-requests/101/head
keikreutler 2016-08-02 14:44:27 +02:00
parent 5251c399b3
commit 2120608fd2
3 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ nosetests.xml
# Media & Static
media
/staticfiles/*
db/static/bower_components/

View File

@ -19,11 +19,17 @@ THIRD_PARTY_APPS = (
'allauth.account',
'crispy_forms',
'compressor',
'djangobower',
)
LOCAL_APPS = (
'db.base',
'db.api',
)
BOWER_INSTALLED_APPS = (
'underscore',
'backbone',
'd3#3.5.17',
)
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
# Middlware
@ -100,12 +106,16 @@ STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'compressor.finders.CompressorFinder',
'djangobower.finders.BowerFinder',
)
MEDIA_ROOT = path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
CRISPY_TEMPLATE_PACK = 'bootstrap3'
SATELLITE_DEFAULT_IMAGE = '/static/img/sat.png'
# Django-Bower
BOWER_COMPONENTS_ROOT = path.join(BASE_DIR, 'static')
# App conf
ROOT_URLCONF = 'db.urls'
WSGI_APPLICATION = 'db.wsgi.application'

View File

@ -112,6 +112,9 @@
{% compress js %}
<script src="{% static 'js/lib/jquery-1.11.2.min.js' %}"></script>
<script src="{% static 'js/lib/bootstrap.min.js' %}"></script>
<script src="{% static 'bower_components/underscore/underscore-min.js' %}"></script>
<script src="{% static 'bower_components/backbone/backbone-min.js' %}"></script>
<script src="{% static 'bower_components/d3/d3.min.js' %}"></script>
<script src="{% static 'js/app.js' %}"></script>
{% block javascript %}
{% endblock javascript %}