What is the difference bulk_update() and update() in django queryset.

2021-08-11 Thread Am bition
What is the difference bulk_update() and update() in django queryset. -- 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 django-users+unsubscr...@googlegroups.com.

Re: Need help in converting the key value pairs of JSON data into data types.

2021-08-11 Thread Kasper Laudrup
On 11/08/2021 21.20, Franck Tchouanga wrote: > I can help you. > Help me with what? Kind regards, Kasper Laudrup -- 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

Re: Need help in converting the key value pairs of JSON data into data types.

2021-08-11 Thread Franck Tchouanga
I can help you. On Wed, Aug 11, 2021, 6:00 PM Kasper Laudrup wrote: > On 11/08/2021 15.54, chinna wrote: > > Hi All, > > > > I am actually working on a use case where I have to convert the JSON > > data into a dictionary and from that I will have to replace all the > > keys and values to the

Display Hierarchical Categories in Django Admin

2021-08-11 Thread 'Rahul Chauhan' via Django users
Hi All, I have a category Model like this one which is based on *Adjacency List*. class Category(models.Model): name = models.CharField(blank=False, max_length=200) slug = models.SlugField(null=False) parent = models.ForeignKey('self', blank=True, null=True,

Re: Need help in converting the key value pairs of JSON data into data types.

2021-08-11 Thread Kasper Laudrup
On 11/08/2021 15.54, chinna wrote: > Hi All, > > I am actually working on a use case where I have to convert the JSON > data into a dictionary and from that  I will have to replace all the > keys and values to the data types. The data type is returned as a string with the builtin type()

Re: Git Hub Project

2021-08-11 Thread Kasper Laudrup
On 11/08/2021 18.19, Rana Zain wrote: > Thanks everyone for your kind support. I am working hard on python and > Django. Earlier I learn python then I started working on Django. I hope > you will support me in future as now.  > It will be much easier to support you if you actually respond to

Re: Git Hub Project

2021-08-11 Thread Kasper Laudrup
On 11/08/2021 18.19, Rana Zain wrote: > I will very happy if you will help in running this code. > OK, so I've tried to backtrack this a bit. So it seems like you've gotten hold of the __init__.py file from the Django projects conf module:

Re: Git Hub Project

2021-08-11 Thread Rana Zain
I will very happy if you will help in running this code. On Wednesday, August 11, 2021 at 9:19:04 PM UTC+5 Rana Zain wrote: > Thanks everyone for your kind support. I am working hard on python and > Django. Earlier I learn python then I started working on Django. I hope you > will support me

Re: Git Hub Project

2021-08-11 Thread Rana Zain
Thanks everyone for your kind support. I am working hard on python and Django. Earlier I learn python then I started working on Django. I hope you will support me in future as now. On Wednesday, August 11, 2021 at 1:42:51 AM UTC+5 Kasper Laudrup wrote: > On 10/08/2021 17.53, pediah wanmi

Need help in converting the key value pairs of JSON data into data types.

2021-08-11 Thread chinna
Hi All, I am actually working on a use case where I have to convert the JSON data into a dictionary and from that I will have to replace all the keys and values to the data types. For example: input_dict = {'segment_idenifier': 'Segment 2', 'exposed_pipe_outside_diam': 4,

Re: Error - module 'django.db.models' has no attribute 'FieldDoesNotExist' when adding FK relationship object

2021-08-11 Thread David Crandell
Try adding related_name='+' to your FK definition. class ReleaseImageGallery(BaseImageGallery): release = models.ForeignKey(Release, related_name='+', on_delete =models.CASCADE) class Meta: verbose_name = "release image gallery" verbose_name_plural = "release image galleries" On Friday, August

Re: Django Discord

2021-08-11 Thread David Crandell
Discord is its own API, programmable with Python or nodejs. Django is a python-based web application framework. The two aren't related except both are programmable with Python. On Tuesday, August 10, 2021 at 2:34:59 PM UTC-5 Lloyd wrote: > Hi everyone, > > Where can I find Django on Discord? >

url_conf workaround causes warning

2021-08-11 Thread Mike Dewhirst
I know I'm doing things the wrong way so the solution to this problem is to learn how to do it correctly if anyone can help please. WARNINGS: ?: (urls.W005) URL namespace 'admin' isn't unique. You may not be able to reverse all URLs in this namespace In my home page template I have ... {%