'str' object is not callable

2022-05-05 Thread Salima Begum
Hi all, In my project I am Django messages Framework. I am always facing 'str' object error I dont understand how to solve this problem. Previously also I face same issue. Now it is reproduced. I am using django 4.0.4 version. Python 3.9.6 ``` messages.success(request, "Welcome back") ``` ```

'str' object is not callable

2022-05-05 Thread Salima Begum
Hi all, In my project I am Django messages Framework. I am always facing 'str' object error I dont understand how to solve this problem. Previously also I face same issue. Now it is reproduced. I am using django 4.0.4 version. Python 3.9.6 ``` messages.success(request, "Welcome back") ``` ```

Re: Chaining county/cites api to models

2022-05-05 Thread Muhammad Juwaini Abdul Rahman
Try this: https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html On Thu, 5 May 2022 at 23:46, Heman Okumbo wrote: > I need to have clients posting their products based on their > countries,States and cities.I got this api t

question in registeration

2022-05-05 Thread Mohammed Ahmed
hello every one i want to know in registeration i put random emails not registerd in gmail or hotmail or any kind of emails domain this email saved in my database i want to make sure this email is exist or not before registeraion complete -- You received this message because you are subscribed

Re: Recreation of foreign key constraints when changing type of referenced primary key

2022-05-05 Thread Baraka Kiula
i'm still a new here -- 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. To view this discussion on the web visit https:/

Chaining county/cites api to models

2022-05-05 Thread Heman Okumbo
I need to have clients posting their products based on their countries,States and cities.I got this api that show a drop down list based on country, states and cities.How do I chain my models to this api? Any leads will be appreciated.Thanks -- You received this message because you are subscribed

Re: Model Design

2022-05-05 Thread Ayser shuhaib
It shouldn’t impact cause you can set that field to be (blank=True, null=True) in this case it won’t raise an error and you can attach the imported data to the related account manager. This is how I see it I hope this helps On Thu, 05 May 2022 at 15:59, 'David Turner' via Django users < django-use

Re: Model Design

2022-05-05 Thread 'David Turner' via Django users
We receive the data every two weeks and then use django-import-export to import the data into our database. There is no mention of the account manager in these as this is something on our side. Am I missing the point in that by having the foreign key to the account manager this would impact on t

Re: Model Design

2022-05-05 Thread Ayser shuhaib
To help understand more the problem, would you please explain why adding an extra field to your models to be used as a foreign key, is not an option? On Thu, 05 May 2022 at 15:36, 'dtdave' via Django users < django-users@googlegroups.com> wrote: > We receive data from various third parties in the

Re: Model Design

2022-05-05 Thread Agnese Camellini
i would decouple the importing of data from the database architecture, and make a meaningfould structure of the models, but your own, not the one of the client. In this manner you create a design that is meaningful and can be scaled from the knowledge expressed in the data without being dependant f

Model Design

2022-05-05 Thread 'dtdave' via Django users
We receive data from various third parties in their proprietary format in excel. We then import this into our database and our models have been designed around their format. There is no option to change the way this data is received. However, we now need to add an account manager to this data and

Re: Filtering by custom UUIDField got broken with Django 3.2 upgrade

2022-05-05 Thread Michael Powell
AFAIK, 'dashes' in a character based persisted UUID is divergent behavior. UUID are 128 bits wide, apportioned by nibble into a character field, 32 at most. So... The migration is yours to correct. Good luck, good hunting, HTH. On Wednesday, May 4, 2022 at 11:14:02 AM UTC-4 bmila...@gmail.com wr

Re: Django 3.0 -> 3.1 performance degradation

2022-05-05 Thread Antonis Christofides
Hi! This is a very interesting problem, and I'm afraid I'm not qualified to answer it. What I'd like to point out is that, if I had done all the work that you seem to have done, I would be tempted to start bisecting in between versions 3 and 3.1 in order to find the exact commit that causes the

Re: Filtering by custom UUIDField got broken with Django 3.2 upgrade

2022-05-05 Thread Jason
and curious why the change in this behavior vs using the db's native uuid type directly On Thursday, May 5, 2022 at 7:27:02 AM UTC-4 Jason wrote: > when you print the query executed, what is the difference between a > working query and the current one? > > On Wednesday, May 4, 2022 at 11:14:02

Re: Filtering by custom UUIDField got broken with Django 3.2 upgrade

2022-05-05 Thread Jason
when you print the query executed, what is the difference between a working query and the current one? On Wednesday, May 4, 2022 at 11:14:02 AM UTC-4 bmila...@gmail.com wrote: > Hello Django users, > > I've recently upgraded the Django version from 2.2 to 3.2 in a project at > work. In this pro

Web based movie app

2022-05-05 Thread Arshad Noman
I want to make a web-based movie app in Django with data already given in a JSON file. The first page will be movie listings and the second page for details separate from other movie details means each movie details on a separate page. A JSP search bar is also required on top to search movies.