Re: queries and date ordering

2019-01-08 Thread Mike Dewhirst
On 9/01/2019 4:29 pm, Dylan Reinhold wrote: No you can't rely on it being the same order, if the database is re-indexed or reorged that order might change. Thanks On Tue, Jan 8, 2019 at 9:18 PM Mike Dewhirst > wrote: If I have a model with ...

Re: queries and date ordering

2019-01-08 Thread Dylan Reinhold
No you can't rely on it being the same order, if the database is re-indexed or reorged that order might change. On Tue, Jan 8, 2019 at 9:18 PM Mike Dewhirst wrote: > If I have a model with ... > > created = models.DateTimeField(auto_now_add=True) > > ... and in class Meta >

queries and date ordering

2019-01-08 Thread Mike Dewhirst
If I have a model with ...     created = models.DateTimeField(auto_now_add=True) ... and in class Meta     ordering = ['-created'] Is it true that with multiple records where the query search params are identical the first record returned by the query will always be the most recent?

Re: default groups and permissions

2019-01-08 Thread Nebojsa Hajdukovic
hey man, sorry I was very busy. just now got the time, so I wrote this in like 15 minutes, there is probably better solution but is working and I will check for something better tomorrow. first of all I didn't have time to create abstract user so I worked with standard django user + model

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Roshan Shah
Use Multi-Tenancy On Tue, Jan 8, 2019 at 1:10 PM Sanderson Carmona wrote: > > 283/5000 > Well it's Michal, I have a closed bank and I can not put client > information inside it, it needs to be in another and this individual > database per client, second question. But I appreciate the

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Sanderson Carmona
283/5000 Well it's Michal, I have a closed bank and I can not put client information inside it, it needs to be in another and this individual database per client, second question. But I appreciate the information, I'm studying it here and in part it solves a part. Thank you very much Em

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Sanderson Carmona
Zekri thank you very much, I'm in the fight with google, rs. Em segunda-feira, 7 de janeiro de 2019 17:52:23 UTC-2, zekri sidi mohamed hicham escreveu: > > you must search about django chennels, i don't have good experiences with > django channels but i think it's may help you. > good chance.

Re: Sale on Packt publishing

2019-01-08 Thread Okware Aldo
Django 2 by example - Antonio Mele and Django design patterns. On Tue, 8 Jan 2019, 16:58 Lehner Viktor, wrote: > Which Django book do you recomend to by from PACKT ? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from

Re: Sale on Packt publishing

2019-01-08 Thread Gerardo Palazuelos Guerrero
Look for Antonio Mele's book, for Django 2.0 -- Gerardo Palazuelos Guerrero On Tue, Jan 8, 2019 at 6:58 AM Lehner Viktor wrote: > Which Django book do you recomend to by from PACKT ? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. >

Re: default groups and permissions

2019-01-08 Thread Robin Riis
12 class SignUp(PermissionRequiredMixin, generic.CreateView): 13 form_class = WiggenUserCreationForm 14 success_url = reverse_lazy('check_users') 15 template_name = 'registration/signup.html' 16 login_url = '/konton/login' 17 permission_required = 'users.add_user' 18

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Mon, Jan 07, 2019 at 10:38:30AM -0800, Sanderson Carmona wrote: > Good afternoon, > > I'm using the latest version of Django (2.x) and I'm having a rather > complicated task because of the lack of experience I have with the > Framework. > To

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Mario R. Osorio
I'm not an expert, but this article seems like a good start: How to Configure Multiple Databases in Django the Simple Way https://strongarm.io/blog/multiple-databases-in-django/ On Monday, January 7, 2019 at 1:49:15 PM UTC-5, Sanderson Carmona wrote: > > Good afternoon, > > I'm using the latest

Re: Pop-up forms

2019-01-08 Thread DrTen
Hi Did you ever solved this issue, its 2019 and I still can't find a working solution. On Monday, October 9, 2006 at 3:31:19 PM UTC-5, hernan43 wrote: > > You wouldn't happen to know a good resource of where I can learn more > of how to create a form like this would you? I'd like to implement a

Migration stuck when running schema migration + data migration in the same migration file with postgres replication

2019-01-08 Thread Marcelo Theodoro
We had the folllowing problem: - We created a migration file that was adding a new field in one table - In the same migration file of the schema migration, we also added a data migration to populate this field Locally and in our sandbox the migration worked fine, without problem. It took ~30

Sale on Packt publishing

2019-01-08 Thread Lehner Viktor
Which Django book do you recomend to by from PACKT ? -- 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

Familiar Django Admin- RelatedObjectLookups update Select/MultiSelect Challenge

2019-01-08 Thread DrTen
Hi Guys, I am still learning a lot about Django and have been struggling to solve this very problem that's already on StackOverflow https://stackoverflow.com/questions/5744480/django-admin-relatedobjectlookups-how-does-it-refresh-and-set-the-select-on I have followed this solution here:

Re: parallel test running throwing pickleError

2019-01-08 Thread komu wairagu
This can also occur if - you are running your tests in parallel (eg; python manage.py test --parallel=3`) - and there's an import error. In such a case; your test runner is unable to report the import error and instead reports a _pickle.PicklingError. This happens because of this