Django bugfix release: 3.0.2.

2020-01-01 Thread Mariusz Felisiak
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2020/jan/02/django-bugfix-release-302/ -- 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, se

Re: Django ValueError at: Cannot assign "": "Pair.male_mutation" must be a "Mutation" instance."

2020-01-01 Thread Muhammad Tariq
why it is not creating male_mutation field when I've declared in mode? On Tuesday, 31 December 2019 17:13:33 UTC+5, Integr@te System wrote: > > Hi Issuer, > > As error warning, we don't see any male_mutation in Mutation model when > Pair.male_mutation reference to. As well Species model located.

get user that is member of two different group

2020-01-01 Thread sum abiut
Hi, I have two separate groups, for example, test1, and test2. I want to get a user that is a member of group test1 and group test2. I've try User.objects.filter(groups__name='test1') to get users of group test1. not sure how to check if a user belongs to group test1 and is also belong to group t

Error Reporting to Admin-settings

2020-01-01 Thread bernard asibu
Hi everyone, I need help with configuring settings to report error from a site in production to the admin. Thanks in advance. -- 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

Re: Install library from Github

2020-01-01 Thread Mark34.59
Windows 10 PC with new Git installation is failing to recognize the command "pip": pip install git+https://github.com/gbozee/django- (command I typed per instructions) bash: pip: command not found (response from Git) On Wednesday, January 1, 2020 at 1:17:00 PM UTC-5, sanusi ibrahim adekunle wro

Re: Trouble with Django Generic List view

2020-01-01 Thread Sam Hefer
Ah! Okay. Thank you! On Thursday, January 2, 2020 at 11:08:53 AM UTC+13, Jason wrote: > > when you do > > return jobs, print(jobs) > > > > you're returning a tuple from the method, which is not what is expected. > Remove the print statement from that line > > > On Wednesday, January 1, 2020 at

Re: change page title of password reset form

2020-01-01 Thread Mike Dewhirst
On 2/01/2020 9:12 am, sum abiut wrote: How do you change the default page header of the password reset form? I did something like below but the default page still doesn't change. You need an admin template ... project/templates/admin/base-site.html ... which extends admin/base-site.html Any

change page title of password reset form

2020-01-01 Thread sum abiut
How do you change the default page header of the password reset form? I did something like below but the default page still doesn't change. admin.site.site_header = "testing" [image: image.png] -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: How to filter a Window query?

2020-01-01 Thread Jason
I would use raw sql for this, since there's no direct support in the ORM for this. -- 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...@goog

Re: Trouble with Django Generic List view

2020-01-01 Thread Jason
when you do return jobs, print(jobs) you're returning a tuple from the method, which is not what is expected. Remove the print statement from that line On Wednesday, January 1, 2020 at 5:02:13 PM UTC-5, Sam Hefer wrote: > > Hi, > > I'm having some issues with displaying a filtered list in

Trouble with Django Generic List view

2020-01-01 Thread Sam Hefer
Hi, I'm having some issues with displaying a filtered list in a template. My View: class MyJobs(ListView): model = Job template_name = 'jobs/my_job_list.html' context_object_name = 'jobs' def get_queryset(self, *args, **kwargs): jobs = Job.objects.filter(company_name__o

How to filter a Window query?

2020-01-01 Thread Tom J. Wassing
I am search for a solution to filter the results of a query which uses a window function. I would like to reduce the results set to only include the entries where the row number is smaller than 10. It is not supported by the ORM to filter directly on this query set (https://code.djangoproject.com/t

Re: Install library from Github

2020-01-01 Thread sanusi ibrahim adekunle
Make sure Git is installed on your system. Below is a link to a tutorial on installing Git for windows or Mac: https://www.atlassian.com/git/tutorials/install-git After Git is installed on your system, try out this command : pip install git+ the url of the github library For example: pip install

Re: pip install mysqlclient not working

2020-01-01 Thread sanusi ibrahim adekunle
Below is a link to a youtube video on how to fix the mysqlclient error: https://m.youtube.com/watch?v=6SnE0r7g2lE On Wed, Jan 1, 2020, 15:08 Jason wrote: > OP is on windows, and doesn't have Visual Studio Build Tools installed. > That's the problem. > > > https://visualstudio.microsoft.com/down

Re: pip install mysqlclient not working

2020-01-01 Thread Jason
OP is on windows, and doesn't have Visual Studio Build Tools installed. That's the problem. https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017 its the last item in the second section. Also, OP, if you have python 2 and 3 on your machine, specify the version of

Re: pip install mysqlclient not working

2020-01-01 Thread Antonio Alvarez Ramirez
Hello !! Try to install MySQL connector https://dev.mysql.com/downloads/connector/cpp/ Happy new year!! El mié., 1 ene. 2020 13:00, Mohd Akram escribió: > i am using python 3.8 and django 1.11.22 > > PS C:\WINDOWS\system32> *pip install mysqlclient* > Collecting mysqlclient > Using cached

pip install mysqlclient not working

2020-01-01 Thread Mohd Akram
i am using python 3.8 and django 1.11.22 PS C:\WINDOWS\system32> *pip install mysqlclient* Collecting mysqlclient Using cached https://files.pythonhosted.org/packages/d0/97/7326248ac8d5049968bf4ec708a5d3d4806e412a42e74160d7f266a3e03a/mysqlclient-1.4.6.tar.gz Installing collected packages: mysql