Re: 'WSGIRequest' object is not callable error generate

2018-01-19 Thread Costja Covtushenko
Hi, As suggested Etienne you misspelled `render` method. Please find more information on that documentation page. Regards, Constantine C. > On Jan 19, 2018, at 2:47 PM, Etienne Robillard wrote: > > >

Re: Need to create an edit box connected to one table field

2018-01-19 Thread Costja Covtushenko
Hi Eileen, Can you please elaborate a little bit? Do you use Form? Can you provide its code? Also sorry but it is not clear what are you trying to achieve with those value? Is it for searching data in DB? Regards, Constantine C. > On Jan 19, 2018, at 5:08 PM, eil...@themaii.org wrote: > >

Need to create an edit box connected to one table field

2018-01-19 Thread eileen
I need to create an edit box called handicapped with three drop down options on the display: 0 - none 1 - Mental 2 - Phyiscal and connect it to the handicapped field init(11) in the family database I know I have to do something like: if form['handicapped'].data == 1 or 2:

Re: 'WSGIRequest' object is not callable error generate

2018-01-19 Thread Etienne Robillard
Le 2018-01-19 à 13:53, Amit Kadivar a écrit : return request(request,'signup.html',{'form':form}) That line looks incorrect to me. You need to use render_response or a similar function... I don't remember the exact function name, however. Cheers, Etienne -- You received this message

'WSGIRequest' object is not callable error generate

2018-01-19 Thread Amit Kadivar
Hello.. I am making a signup page in django 2.0. generate the error " 'WSGIRequest' object is not callable ". please give me a solution for that . error show in following line return request(request,'signup.html',{'form':form}) -- You received this message because you are subscribed to the

Re: Filter Json boolean data

2018-01-19 Thread tango ward
That works. Silly me. Thank you Florian. On Fri, Jan 19, 2018 at 7:32 PM, Florian Schweikert wrote: > Hi, > > On 19/01/18 11:50, tango ward wrote: > > # Check who the winner of the match > > if data['radiant_win'] == 'False': > > You are comparing

Re: unique_together does not work in django 2.0

2018-01-19 Thread James Bennett
You've indented the 'Meta' declaration too much, and Python thinks it's part of the '__str__()' method of your class. Un-indent it one level. On Thu, Jan 18, 2018 at 4:28 PM, FernandoJMM wrote: > Hello, > I have the following class: > >

Re: unique_together does not work in django 2.0

2018-01-19 Thread FernandoJMM
Hello, Problem solved. For it to work I have to put the META class between the silo class and the method. Thank you El viernes, 19 de enero de 2018, 12:53:28 (UTC+1), Jason escribió: > > To be clear, you started with an empty database and the duplicate values > exist after adding data? > --

Re: emulate desktop multi-windows

2018-01-19 Thread johnf
Thank you very much - I was about to check out EXTjs along with DojotoolKit today. It looks like I might be able to get this done using web tech. Johnf On 01/19/2018 02:42 AM, Jani Tiainen wrote: Hi, Also Dojotoolkit has windows (or actually Dijit does which is part of Dojotoolkit):

Re: emulate desktop multi-windows

2018-01-19 Thread Jason
In other words, Django has the ability to generate HTML from the context you provide it, which is then rendered by the browser. It doesn't have the ability to manipulate as you want because you need to set up a method for the browser to communicate back to the server. That's what people here

Re: Multiple websites on same host using Apache as Webserver.

2018-01-19 Thread Jason
When asking for help regarding code issues, configuration and such, excluding your code and settings, configuration and others means that no one can help. In the future, please remember to include samples for what is causing your problem, because unfortunately no one has mind-reading ability.

Re: emulate desktop multi-windows

2018-01-19 Thread Andréas Kühne
HI John, Django is a HTML framework - you would need to add the javascript part yourself - that's just the way it works. There are several different ways of doing what you want, here are a couple of examples: http://www.qooxdoo.org/current/widgetbrowser/

Re: 2 decimals, always

2018-01-19 Thread Kasper Laudrup
Hi Carmelo, On 2018-01-19 13:24, Carmelo J. Morales Muñoz wrote: hello! I don´t know how solve this... I need django show always float numbers in this format: 1234.56 actually use 1 decimal only, example:   1234,1 I need 1234,10 You don't write anything about which context you're

2 decimals, always

2018-01-19 Thread Carmelo J . Morales Muñoz
hello! I don´t know how solve this... I need django show always float numbers in this format: 1234.56 actually use 1 decimal only, example: 1234,1 I need 1234,10 thanks for your help -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Multiple websites on same host using Apache as Webserver.

2018-01-19 Thread Carmelo J . Morales Muñoz
I have same problen you, i have use gunicorn but I don´t know how can I solve it El miércoles, 17 de enero de 2018, 13:09:16 (UTC+1), Mahesh Vernekar escribió: > > Can someone provide help on configuring multiple websites on the same host. > I have tried the appropriate configuration. > But the

Re: HTML video seek problem in django

2018-01-19 Thread Jason
After a bit more digging, there's a thread on the django-developers google group: https://groups.google.com/forum/#!searchin/django-developers/http$20range$20header%7Csort:date/django-developers/NZ1qTkZ6vok/0T7YXSdrizgJ Apparently that patch developer never followed up. -- You received this

Re: unique_together does not work in django 2.0

2018-01-19 Thread Jason
To be clear, you started with an empty database and the duplicate values exist after adding data? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: HTML video seek problem in django

2018-01-19 Thread Jason
Nice find! Wonder why that author never made a PR to the django project? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Filter Json boolean data

2018-01-19 Thread Florian Schweikert
Hi, On 19/01/18 11:50, tango ward wrote: >     # Check who the winner of the match >     if data['radiant_win'] == 'False': You are comparing a boolean with the *string* 'False', remove the ' and try again. >     j_data['Winner'] = data['dire_name'] >    

Filter Json boolean data

2018-01-19 Thread tango ward
Hi guys, I want to get the correct data if if key == false from a json data. My if else condition seems to be working however the data is inconsistent. Here's my code: class DotaMatches(TemplateView): template_name = 'matches/dota_matches.html' def get(self, request, *args, **kwargs):