First, you need to know how to add items to an existing list.

x = ['egg']
s = 'spam'
x.append(s)
x = ['egg', 'spam']

This is basic python.

Back to Django, how are you accessing the item you want to add to the list?

What logic do you have already for the list.

If you throw a little more light, help is on the way...

On Thu, Jul 5, 2018, 10:12 Mustafa Ryad <[email protected]> wrote:

> How can  i add item to this is list
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c2dda62a-4225-4a3f-bd7c-6f2ab91af511%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c2dda62a-4225-4a3f-bd7c-6f2ab91af511%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHjgLX4tTGwMA8X9ghOxJ69NPyZHtogrvcb34wiPdeJ8p9P_2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to