From 90813f3137b05b428af31fe782dfe54a0af668c1 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 24 Mar 2007 17:31:00 -0700 Subject: added search boilerplate --- bn_django/settings.py.example | 2 +- bn_django/templates/base.html | 2 +- bn_django/templates/search.html | 10 ++++++++++ bn_django/urls.py | 4 +++- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 bn_django/templates/search.html diff --git a/bn_django/settings.py.example b/bn_django/settings.py.example index d9e3198..16a90b2 100644 --- a/bn_django/settings.py.example +++ b/bn_django/settings.py.example @@ -46,7 +46,7 @@ MEDIA_URL = '/static/' ADMIN_MEDIA_PREFIX = '/static/django-admin/' # Make this unique, and don't share it with anybody. -SECRET_KEY = 'jdsgk29845ldsfg0090204tv(GFD8g0(%$)*@$#R%U)#*ifd;/q' +SECRET_KEY = 'jdsgk298451dsfg0090204tv(GFD8g0(%$)*@$#R%U)#*ifd;/q' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( diff --git a/bn_django/templates/base.html b/bn_django/templates/base.html index 7349669..100ef4a 100644 --- a/bn_django/templates/base.html +++ b/bn_django/templates/base.html @@ -21,7 +21,7 @@
-
+
Seach isn't implemented yet! +{% endblock %} diff --git a/bn_django/urls.py b/bn_django/urls.py index eaf991e..08986f1 100644 --- a/bn_django/urls.py +++ b/bn_django/urls.py @@ -22,13 +22,15 @@ urlpatterns = patterns('', {'template': 'credits.html'}), (r'^copyright/$', 'django.views.generic.simple.direct_to_template', {'template': 'copyright.html'}), + (r'^search/$', 'django.views.generic.simple.direct_to_template', + {'template': 'search.html'}), (r'^knowledge/$', 'bn_django.git_wiki.views.frontpage',), (r'^k/', include('bn_django.git_wiki.urls')), (r'^code/', include('bn_django.git_browse.urls')), (r'^photos/', include('bn_django.photos.urls')), - (r'^search/', include('bn_django.search.urls')), + #(r'^search/', include('bn_django.search.urls')), # Uncomment this for admin: (r'^admin/', include('django.contrib.admin.urls')), -- cgit v1.2.3