Add initial static directory with rudimentary CSS for tables

This commit is contained in:
Jeffrey Forman 2011-04-14 22:08:22 -04:00
parent 26187f738b
commit 3ed63a3c55
4 changed files with 17 additions and 2 deletions

View File

@ -10,7 +10,6 @@ ADMINS = (
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.

8
binder/static/style.css Normal file
View File

@ -0,0 +1,8 @@
table {
border-collapse: collapse;
}
table, th, td {
border: 1px solid black;
}

View File

@ -2,6 +2,7 @@
{% block header %}
<head>
<title>Binder DNS Admin Tool</title>
<link rel="stylesheet" type="text/css" href="/static/style.css" />
</head>
{% endblock header %}

View File

@ -1,6 +1,7 @@
from django.conf.urls.defaults import *
from django.conf import settings
import os
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
@ -11,3 +12,9 @@ urlpatterns = patterns('',
(r'^info/(?P<dns_hostname>[a-zA-Z0-9.-]+)/$', 'bcommon.views.list_server_zones'),
(r'^info/(?P<dns_hostname>[a-zA-Z0-9.-]+)/(?P<zone_name>[a-zA-Z0-9.-]+)/$', 'bcommon.views.list_zone'),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root' : os.path.join(settings.SITE_ROOT, 'static')}),
)