Using Cheetah Templates in django
hi all, do anybody think that Using Cheetah Templates in django is more than any normal Html Thank you, -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
value error
Hi all, I am using "location = request.get_full_path()"in my view, when the user is logged in this " request.get_full_path() " is getting the correct path but when user gets logged out and again logging in at that time this "request.get_full_path()" is adding the extra braces"{}" to that path i mean, "http://127.0.0.1:8080/book/{}/; but it should be "http://127.0.0.1:8080/book/; i do not know what wrong i am doing, please can anybody help me to solve this Thank you --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Getting Key Error at /search/
Hi, Matías Costa well in the document it says either we can use sorl or whoosh, i did not heard about pysorl anywhere in the document so, if pysorl is the one which is needed, can you please tell me how to install that pysorl search engine into my haystack-search. On Apr 21, 6:40 pm, Matías Costa <m.costac...@gmail.com> wrote: > On Tue, Apr 21, 2009 at 1:29 PM, srini <srinivas...@gmail.com> wrote: > > Exception Location: /usr/lib/python2.5/site-packages/ > > Whoosh-0.1.13- > > py2.5.egg/whoosh/fields.py in name_to_number, line 339 > > That django_ct_s seems pysolr related, and you are using woosh. May be there > is a disturbing raw_query. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Getting Key Error at /search/
Hello everybody well i am using haystacksearch now Everything is running fine but in search section, while submitting the search query i am receiving the following error ie: == KeyError at /search/ ([u'django_ct_s'], {}) Request Method: GET Request URL:http://127.0.0.1:8000/search/ Exception Type: KeyError Exception Value: ([u'django_ct_s'], {}) Exception Location: /usr/lib/python2.5/site-packages/ Whoosh-0.1.13- py2.5.egg/whoosh/fields.py in name_to_number, line 339 Python Executable: /usr/bin/python Python Version: 2.5.2 == Please help me :-) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: case insensitive search
Mr.Dulmandakh Use search_fields = ['name'] in the corresponding class inside admin.py Their is no such a case sensitive exists in Django search field , It will show it's matches either case sensitive or case insensitive. > Hello all. > > Just now I've deployed my first django web app. it's kind of address > book. everything went > smoothly.http://docs.djangoproject.com/en/dev/ref/contrib/admin/says that > search_fields is case insensitive. but when I search some person using > django admin, it shows exact matches with case. I need to search > everything no mater what the case is. > > I'm using django 1.0, and sqlite3 as a storage. > > -- > Regards > Dulmandakh --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: CSS link problem(how to call css)
Thank you so much Low Kian for your help. now i got the answer here is the solution (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': 'media'}), Thank On Oct 24, 5:00 pm, "Dj Gilcrease" <[EMAIL PROTECTED]> wrote: > {% block stylesheet %}{{ MEDIA_URL }}/css/gaslog.css{% endblock %} > > Should work > > Dj Gilcrease > OpenRPG Developer > ~~http://www.openrpg.com > > On Fri, Oct 24, 2008 at 1:10 AM, srini <[EMAIL PROTECTED]> wrote: > > > Hi All, > > i created one page template where i am trying to use my css and i am > > calling that css in this fashion > > > {% block stylesheet %}/css/gaslog.css{% endblock %} > > > but its not calling my css file. i think i attempted some silly thing > > or do not know exact way how to call my css. > > > could any one suggest me or may refer any link to resolve it. > > > thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: css
Thank you so much Low Kian for your help. now i got the answer here is the solution (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': 'media'}), Thanks On Oct 24, 12:23 pm, "Low Kian Seong" <[EMAIL PROTECTED]> wrote: > Read up on serving static files from django. The documentation is quite > complete and you should be up and on your way in no time by just adapting > examples from there. > > On Fri, Oct 24, 2008 at 2:46 PM, srini <[EMAIL PROTECTED]> wrote: > > > Dear users, > > >I am beginner in Djago, Well i have created my new project > > in django , But the problem is i am unable to link css static files to > > my template which ever i created in django application. > > >Well, i do not know the right way to link css to my > > template in django, Please help me it's urgent without that i cannot > > move ahead in my project. > > > Thank You --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
CSS link problem(how to call css)
Hi All, i created one page template where i am trying to use my css and i am calling that css in this fashion {% block stylesheet %}/css/gaslog.css{% endblock %} but its not calling my css file. i think i attempted some silly thing or do not know exact way how to call my css. could any one suggest me or may refer any link to resolve it. thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: css
i did the same way i.e but still its not calling the css.. On Oct 24, 12:10 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On Friday 24 October 2008 12:16:50 pm srini wrote: > > >Well, i do not know the right way to link css to my > > template in django, Please help me it's urgent without that i cannot > > move ahead in my project. > > a template is just html - so attach the css just as you would in an ordinary > html file. Uusually it is put in the head section of base.html. > > -- > regards > KGhttp://lawgon.livejournal.com --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
css
Dear users, I am beginner in Djago, Well i have created my new project in django , But the problem is i am unable to link css static files to my template which ever i created in django application. Well, i do not know the right way to link css to my template in django, Please help me it's urgent without that i cannot move ahead in my project. Thank You --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---