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
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
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
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 %}
--
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.
--~--~-~--~~-
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
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
7 matches
Mail list logo