How do I insert a search field into a django page. 

I have looked through the documentation and couldn't get anything. 

I actually want to search for a phone number on a page where there are a lot of 
phone numbers. 

Kindly help. 
Sent from my BlackBerry wireless device from MTN

-----Original Message-----
From: Osiaq <osiaq.net...@gmail.com>
Sender: django-users@googlegroups.com
Date: Wed, 19 Jan 2011 16:49:19 
To: Django users<django-users@googlegroups.com>
Reply-To: django-users@googlegroups.com
Subject: Re: Django + CSS

Same problem here. Follow those rules, is simple and is working
perfect.

http://twigstechtips.blogspot.com/2009/08/django-how-to-serve-media-files-css.html



On Jan 20, 1:58 am, "brian.mus...@ff0000.com"
<brian.mus...@ff0000.com> wrote:
> Is it me or does it blow your mind that there is not one standard way
> of importing something as common as CSS files into Django templates?
> I realize there are a plethora of options as mentioned on the official
> site here:http://docs.djangoproject.com/en/dev/howto/static-files/
> None of which actually ended up working for me and instead ended up
> using this:
>
> urlpatterns in urls.py:
> (r'^static/(?P<path>.*)$', 'django.views.static.serve',
> {'document_root': '/Users/home/djcode/mysite/media/
> css/','show_indexes' : True}),
>
> and then on my actual template page:
> <link rel="stylesheet" type="text/css" href="static/my.css" />
>
> I suppose I was feeling a little misdirected by the default
> settings.py in my projects folder where CSS and other Media are
> supposed to be stored.
> ADMIN_MEDIA_PREFIX = 'media/'  That was not used at all in the
> solution I ended up using which does work.
>
> My main complaint is this - for something so common as importing CSS
> into django templates - why not just make it painfully obvious in the
> documentation/djangobook with one golden way of doing so - why does
> everything have to be so modular, etc?  It starts to feel
> counterproductive at a certain point - like why I am not just writing
> this in python myself if there are going to be so many options.  I
> think django could use a little tightening up. I understand it's loose
> coupling ways, etc - but don't use that as a shield for something
> possibly unfinished? The solution I ended up using felt like a hack
> for something so common.  My two cents.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to