django search query

2013-06-29 Thread Harjot Mann
Is there any search query in django which can ignore vowels like I want to make a query which displays all the clients name who writes their name as 'amanjit' or 'amanjeet'. It should take take ee=i or anything like this. Please help me I have to finish my task asap. -- You received this

Re: Help in finding how to learn Django

2013-06-29 Thread Grant George
The best way to learn anything related to programming is by doing. Here are some great resources that teach and utilize examples. Code any examples yourself and understand how they work. Here's an order I recommend, where you can skip steps depending on your comfort level: Step 1 - Essential

Re: Ajax

2013-06-29 Thread Russell Keith-Magee
On Sat, Jun 29, 2013 at 11:51 PM, Gamesbrainiac wrote: > Sorry, was on a mobile phone. Let me give you exact link, please excuse me > being a little stupid. > > https://code.djangoproject.com/wiki/AJAX -> First line, "Django does not > natively support Ajax". > That

Re: ANNOUNCE: Django 1.6 beta 1 released

2013-06-29 Thread Hannu Krosing
On 06/28/2013 03:48 PM, Jacob Kaplan-Moss wrote: > Hi folks -- > > I'm pleased to announce that we've just released Django 1.6 beta 1, > the second in our series of preview releases leading up to Django 1.6 > (due in August). > > More information can be found on our blog: > > >

Change template block via AJAX

2013-06-29 Thread Parin Porecha
Hi, I have an application containing a topbar and rest is content area. In my 'base.html', I've defined two blocks - {% block topbar %}{% endblock topbar %} {% block page_content %} {% block sidebar %} {% endblock sidebar %} {% block main %} {% endblock

Re: Ajax

2013-06-29 Thread Christian Schmitt
It would be great if serializers also supports a single object, that would make ajax requests better and / or json support for forms. like that: serializers.serialize('json', object) and not [object] and then i need to strip the [] tags. also the serializers is really hard to use to make more

Re: Ajax

2013-06-29 Thread Gamesbrainiac
Sorry, was on a mobile phone. Let me give you exact link, please excuse me being a little stupid. https://code.djangoproject.com/wiki/AJAX -> First line, "Django does not natively support Ajax". Now, this was weird, because I've seen others use Ajax with Django, for example in this tutorial:

Re: Help in finding how to learn Django

2013-06-29 Thread Nico Subs
Thank you Mike. Very helpful. On Friday, June 28, 2013 9:49:20 AM UTC+2, Nico Subs wrote: > > Hi all, > > What is the best way to learn Django 1.5 thouroughly? I have been a .NET > developer and have a really good understanding of OOP, HTML5, CSS and > JavaScript. I also have an entry-level

How to Test Querysets

2013-06-29 Thread Cody Scott
*I would like to be able to replace the hardcoded repr in the test with an actual queryset.* * * def test_index_view_with_a_past_poll(self): """Polls with a pub_date in the past should be displayed on the index page.""" create_poll(question="Past poll.",

Re: Ajax

2013-06-29 Thread mulianto
Hi, Django can serve Ajax request from any client. Some ajax APP sent json format data to the client some APP just sent partial view to the client as ajax update. Which ever your choise to use with django, it can be done. I have the second type ajax APP, serve from django APP and update the

Re: Render dynamic form based on meta data

2013-06-29 Thread François Schiettecatte
Django can handle some of that for you but not all, you will need to use javascript to handle the dynamics on the page itself., I use jquery, and use django to take the ajax calls and return data. If you don't have that much data you could just add it to the HTML page in javascript structures,

Render dynamic form based on meta data

2013-06-29 Thread Avishay Balderman
Hi I need to implement a django app that has the following capabilities: 1) When the main page loads it needs to dynamically (Ajax) populate a combo () with a list of "form types" 2) When the user select an item from the "form types" combo, the app should issue Ajax call and fetch meta data.

Re: Ajax

2013-06-29 Thread Christophe Pettus
It's also not clear to me what "(not) supporting Ajax" would even mean. Ajax just sends HTTP requests, and the server responds to them (usually with JSON structures). I have tons of Ajax applications that use Django as the backend, so if it doesn't support it, no one tell that code lest it

Re: Ajax

2013-06-29 Thread Russell Keith-Magee
Can you provide a little more direction than "The website"? "The website" is a kinda big place… :-) Yours, Russ Magee %-) On Sat, Jun 29, 2013 at 2:08 PM, Gamesbrainiac wrote: > Then why does itsay on the website that Django does not support Ajax > natively? > On Jun

Re: Ajax

2013-06-29 Thread Gamesbrainiac
Then why does itsay on the website that Django does not support Ajax natively? On Jun 29, 2013 12:03 PM, "Russell Keith-Magee" wrote: > > I'm not sure what you mean. Django completely supports AJAX right now. > > Django is a server-side framework, and the only part of

Re: Ajax

2013-06-29 Thread Russell Keith-Magee
I'm not sure what you mean. Django completely supports AJAX right now. Django is a server-side framework, and the only part of AJAX that is server-side is the API call. An API call is just a view that returns JSON/XML instead of HTML. You can write that right now in Django. If you want a