fix template and static file paths; create empty index page

This commit is contained in:
Tim Buckley 2015-07-14 10:26:59 -06:00
parent 2d70634ff3
commit b94e378de7
4 changed files with 26 additions and 1 deletions

View File

@ -74,3 +74,11 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'stackviz', 'static')
]
TEMPLATE_DIRS = [
os.path.join(BASE_DIR, 'stackviz', 'templates')
]

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="{% static 'bundle.js }"></script>
</head>
<body>
</body>
</html>

View File

@ -1,10 +1,15 @@
from django.conf.urls import patterns, include, url
from django.contrib import admin
from stackviz.views.index import IndexView
import settings
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'stackviz.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^$', IndexView.as_view()),
)