diff --git a/nsupdate/main/urls.py b/nsupdate/main/urls.py new file mode 100644 index 0000000..134a217 --- /dev/null +++ b/nsupdate/main/urls.py @@ -0,0 +1,6 @@ +from django.conf.urls import patterns, include, url +from django.views.generic import TemplateView + +urlpatterns = patterns('', + url(r'^$', TemplateView.as_view(template_name="base.html")), +) diff --git a/nsupdate/nsupdate/settings.py b/nsupdate/nsupdate/settings.py index eea617d..190604e 100644 --- a/nsupdate/nsupdate/settings.py +++ b/nsupdate/nsupdate/settings.py @@ -11,8 +11,8 @@ MANAGERS = ADMINS DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': '', # Or path to database file if using sqlite3. + 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'nsupdate.sqlite', # Or path to database file if using sqlite3. # The following settings are not used with sqlite3: 'USER': '', 'PASSWORD': '', @@ -23,13 +23,13 @@ DATABASES = { # Hosts/domain names that are valid for this site; required if DEBUG is False # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['nsupdate.info', 'www.nsupdate.info'] # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # In a Windows environment this must be set to your system time zone. -TIME_ZONE = 'America/Chicago' +TIME_ZONE = 'Europe/Berlin' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html @@ -120,10 +120,10 @@ INSTALLED_APPS = ( 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', - # Uncomment the next line to enable the admin: - # 'django.contrib.admin', - # Uncomment the next line to enable admin documentation: - # 'django.contrib.admindocs', + 'django.contrib.admin', + 'south', + 'nsupdate', + 'main', ) # A sample logging configuration. The only tangible logging diff --git a/nsupdate/nsupdate/static/css/nsupdate.css b/nsupdate/nsupdate/static/css/nsupdate.css new file mode 100644 index 0000000..3108276 --- /dev/null +++ b/nsupdate/nsupdate/static/css/nsupdate.css @@ -0,0 +1,3 @@ +.content { + margin-top: 40px; +} diff --git a/nsupdate/nsupdate/templates/base.html b/nsupdate/nsupdate/templates/base.html new file mode 100644 index 0000000..8054f10 --- /dev/null +++ b/nsupdate/nsupdate/templates/base.html @@ -0,0 +1,47 @@ +{% load static from staticfiles %} + + +
+ + + + + +Welcome to the base template. Extend this template in all other + templates and override the content block
+ {% endblock %} +