Key error for error messages in case the check on unique fails.

2019-01-30 Thread 'Odile Lambert' via Django users
Hello I have a field in my model which has unique = True. If I specify an error message with a reference to the value of the field, Django crashes with Key error. Yet this works for other error_messages. How wan I solve this? Here is the code and the trace back

Re: Get very last object of database

2019-01-30 Thread Stéphane Manguette
Hi Matthew, Thanks for your prompt answer; I will keep it in mind for terminology, totally get it, Thanks ! Stéphane Le mercredi 30 janvier 2019 23:08:08 UTC+1, Matthew Pava a écrit : > > You can try Mydb.objects.last() > > You can also try reversing the order and using first: >

RE: Get very last object of database

2019-01-30 Thread Matthew Pava
You can try Mydb.objects.last() You can also try reversing the order and using first: Mydb.objects.order_by(‘-pk’).first() And for some terminology clarification, a database consists of tables. In Django, a model maps to a table, not a database. A table has fields; a database has tables but

Get very last object of database

2019-01-30 Thread Stéphane Manguette
Hello guys, My issue is pretty simple. I want to get the very last record of my database (which is populated with thousands of entries) So far ->very easy. But I want to make sure that the access to the database is as light as possible. Don't want django to parse everything in my database.

Re: Begginner

2019-01-30 Thread Segun Gesture
You have to create a virtual environment, install django and start ur app On Wed, Jan 30, 2019, 1:24 PM Frank john thompson how do i build webside on python using django? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Re: any help thanks .

2019-01-30 Thread Segun Gesture
Where are u having problem in your project On Wed, Jan 30, 2019, 8:51 PM Mohamed Hashi i have a problem in my django > i allready did start the project > i would to get help and discuss about things > any ready for helping me > this is my whatsapp number > 00918686910983 > thanks > > -- > You

any help thanks .

2019-01-30 Thread Mohamed Hashi
i have a problem in my django i allready did start the project i would to get help and discuss about things any ready for helping me this is my whatsapp number 00918686910983 thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Work Opportunity

2019-01-30 Thread Nigel Copley
Yes, we have access to an office network where you can work from any of their offices for the day On Wed, 30 Jan 2019, 11:50 Roshan Shah 3000 global offices ?  > > On Tue, Jan 29, 2019 at 6:40 PM wrote: > >> https://work.vendably.com/o/experienced-python-developer-remote-working >> >> -- >>

Re: PasswordResetConfirmView doesn't work through redirect in newest Safari

2019-01-30 Thread René Fleschenberg
Hi, I am currently using the code below as a workaround. Please be super-careful with this. I did not test this extensively. Do not use it if your password reset page requests external resources. Make sure you understand the security implications before you deploy it. apollo13 suggested this on

Re: PasswordResetConfirmView doesn't work through redirect in newest Safari

2019-01-30 Thread Jason
I agree, when you hear hoofbeats, you think horses and not zebras. Except in this case, it was indeed a zebra you saw :-) -- 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

Re: Any advice on linguistic project?

2019-01-30 Thread Carlos Eduardo
You can do all that stuff with Python and use Django as an UI. I'm doing something similar. I'm from computational linguistics area as well. My first advice for you is to study a special book related to python and linguistics. The book is not 100% but the read it is worthwhile. Here is the

Re: Work Opportunity

2019-01-30 Thread Mohamed Hashi
i have a problem in my django i allready did start the project i would to get help and discuss about things any ready for helping me this is my whatsapp number 00918686910983 thanks ‫في الأربعاء، 30 يناير 2019 في 5:10 ص تمت كتابة ما يلي بواسطة <‪ caleor...@gmail.com‬‏>:‬ >

Re: Begginner

2019-01-30 Thread Gil Obradors
Hi Franjhohn, With a bit knowleges of python, and time you can start here : https://www.djangoproject.com/start/ Read and do the first app that is in the manual. Or you can start with a book : I recommend you this editorial https://www.packtpub.com/ Else at the beginning is not easy, the

Re: Begginner

2019-01-30 Thread KONE GOMPOU LOUA ALASSANE
Vert simple Le mer. 30 janv. 2019 à 12:24, Frank john thompson a écrit : > how do i build webside on python using django? > > -- > 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

Credit Tool Django Pycharm

2019-01-30 Thread AfFromDaEast
Hi guys, I am doing a university project on a credit score tool. I am supposed to use the FICO dataset to assign points for each question the user answers to deliver a credit score. My research has shown that I should use a scorecard. Is this true? Does anyone have any idea on how to do this, I'd

Begginner

2019-01-30 Thread Frank john thompson
how do i build webside on python using django? -- 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 post to this group,

Any advice on linguistic project?

2019-01-30 Thread monkbirdark
I'm a student of linguistics and just started to learn python and django a few months ago. Planning to apply some utilities of linguistic with some advanced function into a showcase on the website, but still not sure how to achieve it through django. Can anyone recommend some similar

Fwd: data sharing with multiple clients by server simultaneously

2019-01-30 Thread shiva kumar
-- Forwarded message - From: shiva kumar Date: Tue 29 Jan, 2019 11:21 pm Subject: data sharing with multiple clients by server simultaneously To: Hi guys. I have a doubt regrading communication b\w client and server. consider an example there are 20 clients continuously

Re: Work Opportunity

2019-01-30 Thread Roshan Shah
3000 global offices ?  On Tue, Jan 29, 2019 at 6:40 PM wrote: > https://work.vendably.com/o/experienced-python-developer-remote-working > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop

No "change password" link on user change_form in Django 2.0.4

2019-01-30 Thread Oivvio Polite
Django version: 2.0.4 I noticed that there is no link for chaning the user password on the change user view in Django admin. In older versions of Django (like 1.10) that link was there by default. I'm not talking about chaning the password of the logged in user. That's working fine. I'm talking

Re: Limiting a SubQuery based on instance's OuterRef

2019-01-30 Thread Nick Gashkov
Simon, Thank you for fast reply! I've tried to rewrite a query using RowNumber()... inner_subquery = queryset.objects.filter(date__gte=today, day_type='working_day') inner_subquery = inner_subquery.annotate(row_number=Window(expression=RowNumber(), order_by=F('number').asc())) inner_subquery

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-30 Thread Ivan Martić
> > Bok Nebojša, jel možeš uletit i pogledati molim te što radim krivo. >> >> Znači, imam 2 aplikacije, prva abc radi a druga product groups ne radi.. >> Sve je kopirano u 2 privitka. >> >> Da li imaš vremena pogledati pliz? >> > Šta god napravim, No reverse mi se javlja... -- You received