Skip to content

Commit

Permalink
Static asset configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jarpineh committed May 15, 2015
1 parent a00932f commit 9c20f1b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


class Observer(models.Model):
name = models.CharField(max_length=512)
location = models.CharField("Coordinates of observer", max_length=512)
min = models.IntegerField("lowest observed measurement")
max = models.IntegerField("highest observed measurement")
Expand Down
2 changes: 2 additions & 0 deletions app/templates/app/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<head lang="en">
<meta charset="UTF-8">
<title>Vesikorkeusmittauspisteiden tiedot</title>
{% load staticfiles %}
<link rel="stylesheet" href="{% static "app/app.css" %}">
</head>
<body>
<h1>Vesikorkeusmittauspisteiden tiedot</h1>
Expand Down
Binary file modified projekti/db.sqlite3
Binary file not shown.
7 changes: 6 additions & 1 deletion projekti/projekti/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@
from app.urls import router
import app.urls

urlpatterns = [
from django.conf.urls.static import static
from django.conf import settings

urlpatterns = static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += [
url(r'^admin/', include(admin.site.urls)),
url(r'^api/', include(router.urls)),

url(r'', include(app.urls))
]

0 comments on commit 9c20f1b

Please sign in to comment.