Re: What is the proper workflow before first migration?

2019-04-05 Thread jgibson
Hi, Can you post the structure of your app, including project root? Setting up a CustomUser Model is not a simple task, especially if you are new to the framework. On Friday, April 5, 2019 at 11:06:43 AM UTC-4, silverst...@gmail.com wrote: > > Something odd is that when the Manager unavailable

Re: What step am I missing?

2019-04-03 Thread jgibson
Sorry, I addressed this to Pedro when I meant jos.jwj. On Wednesday, April 3, 2019 at 11:24:11 AM UTC-4, jgi...@caktusgroup.com wrote: > > Pedro, > > Can you provide us with the structure of your project? For example: > > /home/pedro/intro_django/ > /home/pedro/intro_django/manage.py > /home/ped

Re: What step am I missing?

2019-04-03 Thread jgibson
Pedro, Can you provide us with the structure of your project? For example: /home/pedro/intro_django/ /home/pedro/intro_django/manage.py /home/pedro/intro_django/apps/ /home/pedro/intro_django/apps/models.py /home/pedro/intro_django/apps/views.py Then let us know which where you are issuing the

Re: Newbie question : running the makemigrations command in the terminal

2019-03-28 Thread jgibson
>From your settings file: > munichliving_app.apps.MunichLivingConfig > > That makes me think that the structure of your project looks something like this: \munichliving_app\manage.py \munichliving_app\apps\MunichLivingConfig\ \munichliving_app\apps\MunichLivingConfig\models.py \munichliving_ap

Re: How can I create schemas while writing creating table models.

2019-03-26 Thread jgibson
Hi Sushen, https://www.amvtek.com/blog/posts/2014/Jun/13/accessing-multiple-postgres-schemas-from-django/ This seems to be a rare use case, but that link has some options. Good Luck! On Friday, March 22, 2019 at 8:58:20 PM UTC-4, Sushen Jamwal wrote: > > Hi all, > > I am finding it difficul

Re: How to inherit the user model in two apps in django rest,

2019-03-26 Thread jgibson
I'm not exactly sure what is happening with your models but a few places to investigate are these: Since you are using `AbstractBaseUser` rather than `AbstractUser`: * Looking at your code it seems like you missed assigning the *`USERNAME_FIELD`* * You did not set your identifier (which I assum

Re: test if model object fits into QuerySet without executing SQL?

2019-03-18 Thread jgibson
result = qs1.difference(qs2) if Result is length 0 then all of 1 is in 2. On Monday, March 18, 2019 at 8:15:19 AM UTC-4, Thomas Klopf wrote: > > Hello, > Yes exactly that, if mo1 is in qs2. BUT without running the SQL on the > database, if possible. > > Thanks! > Tom > > > On Friday, March 15,

Re: test if model object fits into QuerySet without executing SQL?

2019-03-15 Thread jgibson
Tom, Could you clarify "fits into"? qs1 = Table.objects.all() qs2 = Table.objects.filter(color='blue') mo1 = qs1[0] Are you trying to determine if mo1 is in qs2? Best On Friday, March 15, 2019 at 7:46:14 AM UTC-4, Thomas Klopf wrote: > > Hi all, > Please I have a question, couldn't find a