Re: How to Save or Print the array field in Django using CreateView?

2020-10-11 Thread Venkata Rami Reddy Kasu
Don't spam the community. Advertise yourself outside the group. .. Thank you *K.V.Rami ReddyPHP , Node.Js & Python Web Developer* On Sun, 11 Oct 2020 at 22:41, Dvs Khamele wrote: > Hi do you hire contract based p

I need someone to ask

2020-06-19 Thread Rami Hegazy
My problem is i don't understand what exactly happens and why Please, if you are someone who understands django very well i need to get in touch with you somehow to explain some stuff to me Thanks in advance -- You received this message because you are subscribed to the Google Groups "Djang

Re: How do I render a template variable inside a for loop, when the var is a dict and the key is forloop.counter

2011-09-08 Thread Rami
ut in this case you can > just use items(), as it's often the case when iterating over dictionaries. > > Cheers, > AT > > > > > > > > On Thu, Sep 8, 2011 at 4:24 PM, Rami wrote: > > Hi, > > I have a dict var defined in server side, like PHONE_BOO

How do I render a template variable inside a for loop, when the var is a dict and the key is forloop.counter

2011-09-08 Thread Rami
Hi, I have a dict var defined in server side, like PHONE_BOOK={1:'634534', 2:'264886', 3:'455346' etc..} Then in my django template I have this loop where I need to print the PHONE_BOOK[loop counter]: {% for Item in MyList %} Item.first_name | PHONE_BOOK.forloop.counter {% endfor %} --

how do you put logged-in user.username in model's textbox default value ?

2009-08-13 Thread Rami
Hi al, how can you put the logged-in user.username in model's textbox default value ? You don't have the "request" object in a model. ex: class PizzaOrder(models.Model): submitter = models.CharField(max_length=50, default=' ...,< logged- in username >') thanks. --~--~-~--~~-

Re: HOW DO YOU ACCESS SESSION AND COOKIES DATA W/O USING THE REQUEST OBJECT ?

2009-06-02 Thread Rami
I know but, then again the set value for the language is only retrievable from a request obj. Thanks. On Jun 2, 1:03 pm, akaariai wrote: > On 1 kesä, 22:38, Rami wrote: > > > I'm trying to access Session's (logged in) user id info from a py > > function that do

HOW DO YOU ACCESS SESSION AND COOKIES DATA W/O USING THE REQUEST OBJECT ?

2009-06-01 Thread Rami
I'm trying to access Session's (logged in) user id info from a py function that does not have 'request' object. I can't find an obvious way to access the session or the cookie data NOT through an instantiated request (HttpRequest) obj [the same way for example you can access any Session variable