Re: How to get as result a list of all the users ordered by birthday (month day), ignoring year

2017-11-21 Thread Roberta Takenaka Granero
Dear Roy I had already seen that link. But I didn't like the solution. Anyway it works, so I am using it for while. Thank you 2017-11-17 11:13 GMT-02:00 Roy Shillingburg : > https://stackoverflow.com/questions/4236226/ordering-a- > django-queryset-by-a-datetimes-month-day > >

Re: How do I customize a user registration form so it only requires email and password fields?

2017-11-21 Thread sunil mishra
Hi Tom , i can solve your code problem . contact me on my mail :- sunilmishra1...@gmail.com On Monday, November 20, 2017 at 8:50:18 AM UTC+5:30, Tom Tanner wrote: > > I'm following this [tutorial]( >

Building a web app for use of third party python package

2017-11-21 Thread Enikő Regényi
Hello, I would like to use Django for building a web application for use of a third party python package. This third party package uses a text file as input, and produces a bunch of text files as output (sorted in directories). I would like my website to take text/textfile from the user,

Re: Any django reusable app for outdoor & indoor location, GPS tracking?

2017-11-21 Thread 'Federico Capoano' via Django users
Hi everyone, I'd like to provide an update on this topic. First of all, I think my initial question was not 100% clear. For indoor location and GPS tracking I meant the following: Indoor location: being able to specify the location of an object in buildings, having their floorplan(s). GPS

Re: How to Speed up Loading the First Page of Django Project?

2017-11-21 Thread flora . xiaoyun . huang
Hi Jason, Thanks for your help! I just solved the bug. The reason of the bug is that in the first step after I verify the worker's identification, I should put them in the database. And in django default setting, PASSWORD_HASHERS is set to PBKDF2 to hash the password for each worker. It is a

Re: [ORM Foreign Keys][Performance] How to use Charfield Foreign Keys efficiently?

2017-11-21 Thread Avraham Serour
can you post your model? On Tue, Nov 21, 2017 at 3:31 PM, Dominik Szmaj wrote: > Hey, > > I have a very big performance problem with Django and Oracle db. > > This legacy db has lots of primary keys as strings from the time when > those id's were alphanumerical so it

Re: [ORM Foreign Keys][Performance] How to use Charfield Foreign Keys efficiently?

2017-11-21 Thread Dominik Szmaj
Hey, 'case_id' is a monkeypatch number(*) field so it works quick for now, not a pk, but unique: class OmEvent(Model): case = ForeignKey('CaseInfo2', to_field='case_id', related_name='events', blank=True, null=True) class Meta: db_table = 'om_event' old form: class

Re: [ORM Foreign Keys][Performance] How to use Charfield Foreign Keys efficiently?

2017-11-21 Thread Jani Tiainen
Please, post your models in question. It's probably something really simple to resolve in general. On 21.11.2017 15.59, Avraham Serour wrote: can you post your model? On Tue, Nov 21, 2017 at 3:31 PM, Dominik Szmaj > wrote: Hey,

Vider champs du formulaire

2017-11-21 Thread Mozard Yao
Bonjour , Je suis débutant sur le dévelopement avec django. J'aimerais pourvoir vider les zones de texte après validation mais je ne sais comment le faire. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

[ORM Foreign Keys][Performance] How to use Charfield Foreign Keys efficiently?

2017-11-21 Thread Dominik Szmaj
Hey, I have a very big performance problem with Django and Oracle db. This legacy db has lots of primary keys as strings from the time when those id's were alphanumerical so it can't be simply converted to number. So when I set FK on such varchar column django seems to not crash but it

Re: Strange query when using annotate and count

2017-11-21 Thread Cristiano Coelho
Hmm, should I try with the dev mailing list? Guess it's something no one faced before? El martes, 14 de noviembre de 2017, 22:54:23 (UTC-3), Cristiano Coelho escribió: > > I'm getting some very odd query when combining annotate with count. See > the following: > > >>> q = >>

Re: How to Speed up Loading the First Page of Django Project?

2017-11-21 Thread Jason
Does that worker call execute slowly each time you call it? Or is it just the once? I'd copy that URL and try calling it several times with an REST API client like Postman. Does the request execute that slowly each time you call it, or is it just the initial call that is slow? -- You

How to use channels and make a site highly available?

2017-11-21 Thread Sergey Pashinin
Channels recommends using Redis. I thought I will setup Redis Cluster (https://redis.io/topics/cluster-tutorial) behind HAProxy and it will be all fine. But Channels does not support working with Redis Cluster - https://github.com/django/channels/issues/485. Then I was looking at Redis

Re: How to get as result a list of all the users ordered by birthday (month day), ignoring year

2017-11-21 Thread Dan Tagg
Hi Roberta, I haven't tested it but assuming you want the ordering to happen within the database you may be able to do it with a combination of TIMESTAMPDIFF and MOD

Re: How to Speed up Loading the First Page of Django Project?

2017-11-21 Thread flora . xiaoyun . huang
But that's all I revised of the code. The configuration file of server engine and all the other things keep the same. On Tuesday, November 21, 2017 at 2:09:08 PM UTC-5, Jason wrote: > > That is not a good solution. There's a reason why the default password > hashing algorithm is complex. > >

Re: How to Speed up Loading the First Page of Django Project?

2017-11-21 Thread Jason
That is not a good solution. There's a reason why the default password hashing algorithm is complex. And I find it hard to believe that a password hash is the culprit here. Maybe a quarter second or so added to a response, but 10 seconds? that's definitely not the cause. -- You received

Re: How to use channels and make a site highly available?

2017-11-21 Thread Andrew Godwin
Right now Sentinel is the only Redis way, we have it set to a few seconds' timeout for failover at work I believe. We can't give a magical solution as any zero-downtime solution ends up being very project-specific; you'll need to build on top of Channels to make your own one if you absolutely need

RE: How to get as result a list of all the users ordered by birthday (month day), ignoring year

2017-11-21 Thread Matthew Pava
https://docs.djangoproject.com/en/1.11/ref/models/database-functions/#extract MyModel.objects.order_by('birthday__month', 'birthday__day') From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Dan Tagg Sent: Tuesday, November 21, 2017 12:58 PM To: