Re: Django foms problems .. please help me

2017-12-24 Thread Costja Covtushenko
Hi Vijay, Can you be more specific? What invalid section do you get? And what is the data you are using in choice field? Regards, Constantine C. > On Dec 23, 2017, at 2:39 PM, vijaysundeep wrote: > > Hi Everyone, > > I am trying to pass current user as request.user. > > It handles properly

Re: store media files on amazon Elastic File System

2017-12-25 Thread Costja Covtushenko
Hello, I believe that you do need to read this documentation page. It has description how to use Amazon S3 bucket. But approach should be the same. Regards, Constantine C. >

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: > > hand

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: > > > > Le 2018-01-19 à 13

Re: modelform DateField rendering as text

2018-01-22 Thread Costja Covtushenko
Hi, Do you mean that it should be rendered like: ? If so check that documentation page . It is said that DateInput renders as type=’text’. If you are curios why it is done in that way, please ask at: django-develo

Re: Strange the global variable behavior

2018-01-23 Thread Costja Covtushenko
Hi, Sorry for asking but how exactly you decided that those `global` variables was not updated? Regards, C > On Jan 23, 2018, at 6:47 AM, Максим Королёв wrote: > > Hi there. > Could someone explain what happens. I had a little project on Python 2.7 and > decided to move it on 3.6. Everything

Re: unbound method save() must be called with MyModel instance as first argument

2018-01-23 Thread Costja Covtushenko
Hi, It looks like with get_model() you’ve gotten Model class not Model instance. You can use `save()` on instance only. You need to have something like: class_ = get_model(…) instance = class_() instance.save() I hope that make sense to you. Regards, C. > On Jan 23, 2018, at 7:43 PM, Tom Tanne

Re: unbound method save() must be called with MyModel instance as first argument

2018-01-23 Thread Costja Covtushenko
nt to add a new record for. > > On Tuesday, January 23, 2018 at 7:59:11 PM UTC-5, Costja Covtushenko wrote: > Hi, > > It looks like with get_model() you’ve gotten Model class not Model instance. > You can use `save()` on instance only. > You need to have something like:

Re: unbound method save() must be called with MyModel instance as first argument

2018-01-23 Thread Costja Covtushenko
Also it looks like in your separate tread Daniel wrote: > model_instance = model() That is how you can create instance from model. Regards, C > On Jan 23, 2018, at 9:29 PM, Costja Covtushenko wrote: > > Hi, > > I did not mention your use of `stattr()`. > I was about

Re: object_list in html

2018-02-22 Thread Costja Covtushenko
Hi Alan, How did you receive that `object_list`? You should filter it based on you user and ‘Running’ inside the view. And then just check if it has count > 0. I hope that does have sense to you. Regards, Constantine C. > On Feb 22, 2018, at 7:34 PM, Alan wrote: > > Hi there, > > I am using

Re: django admin css not loading in localhost

2018-02-22 Thread Costja Covtushenko
Hi, Can you provide html code of that page here? Regards, Constantine C. > On Feb 22, 2018, at 7:49 PM, anurag bhadauriya > wrote: > > i am using django-1.11.6. whenever i open my admin panel and login to it then > it looks like the simple html file. no any css files are loading .The > int