Re: Makemigrations and migrate for already existing database

2021-06-04 Thread sourav panja
Have you created a new model field ? Then put on that null= "True" Example :: Name = Model.CharField(max_legth,* null= "True"*) On Fri, Jun 4, 2021 at 7:59 PM OSA-33 SyCS Atik Rangnekar < atikrangneka...@gmail.com> wrote: > It think the problem is there is null values/bytes > > On Fri, 4 Jun,

Re: model configuration

2021-06-04 Thread Mike Dewhirst
FrankYou don't have to import the class for the FK. Instead do a "lazy import".That means you just use "appname.Modelname" and Django is smart enough to fugure it out.CheersMike--(Unsigned mail from my phone) Original message From: frank dilorenzo Date: 5/6/21 01:20

Re: TypeError: Password must be a string or bytes, got BoundField

2021-06-04 Thread DJANGO DEVELOPER
have you converted your password into hashed? if not then do it by using set_password. On Fri, Jun 4, 2021 at 10:29 PM Kasper Laudrup wrote: > > https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd > > -- > You received this message because you are subscribed to the

Re: TypeError: Password must be a string or bytes, got BoundField

2021-06-04 Thread Kasper Laudrup
https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd -- 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

Models Mixin Inherit Many to Many

2021-06-04 Thread sebasti...@gmail.com
Hello, i need a mixin where i can inherit many to many like this: mixin.py: class RightsModelRelation(models.Model): user_link = models.ForeignKey(User, on_delete=models.CASCADE, blank=False, null=False, default=None,

TypeError: Password must be a string or bytes, got BoundField

2021-06-04 Thread pikasu pikasu
*models.py* class recruiterLogin(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) mobile = models.CharField(max_length=15,null=True) image = models.FileField(null=True) gender = models.CharField(max_length=10) type = models.CharField(max_length=15) def __str__(self): return

Re: model configuration

2021-06-04 Thread frank dilorenzo
Thank Mike. I am sorry for all this code but I am including it to show the problem I can't resolve. I have 3 apps, shipment, supplier, specie. This is the models for them. from django.db import models from .models import Shipment from django.utils import timezone # Create your models here. #

Re: Makemigrations and migrate for already existing database

2021-06-04 Thread OSA-33 SyCS Atik Rangnekar
It think the problem is there is null values/bytes On Fri, 4 Jun, 2021, 6:28 pm Ankita Sharma, wrote: > Hello All > Hope all are doing great. > The issue is as follows: > I have already existing 2 MSSql databases from which I have migrated > required tables into models.py > Now I am not able to

Re: Makemigrations and migrate for already existing database

2021-06-04 Thread Mahendra
Check the error in Google Mahendra Yadav On Fri, 4 Jun 2021, 18:28 Ankita Sharma, wrote: > Hello All > Hope all are doing great. > The issue is as follows: > I have already existing 2 MSSql databases from which I have migrated > required tables into models.py > Now I am not able to do

Re: Makemigrations/migrate in existing database

2021-06-04 Thread Mahendra
I think surely run makemigrations and migrate Mahendra Yadav On Fri, 4 Jun 2021, 18:28 Ankita Sharma, wrote: > Hello Team > Hope all are doing great > > I have a database in microsoft sql server. I created tables and views in > it. > > I ran py manage.py inspetdb > Models.py and populated my

Makemigrations and migrate for already existing database

2021-06-04 Thread Ankita Sharma
Hello All Hope all are doing great. The issue is as follows: I have already existing 2 MSSql databases from which I have migrated required tables into models.py Now I am not able to do makemigrations on one of them. Below is the error: from records.models.transactions_east import

Makemigrations/migrate in existing database

2021-06-04 Thread Ankita Sharma
Hello Team Hope all are doing great I have a database in microsoft sql server. I created tables and views in it. I ran py manage.py inspetdb > Models.py and populated my models.py file . I also don't want my model to alter my database. I just want it for data retrieval. *Should I

Re: SVG widget for the Admin

2021-06-04 Thread Mike Dewhirst
On 4/06/2021 5:15 pm, Derek wrote: Hi Mike The SVG is not going to display as SVG in a *form* - for that you'd need a widget, or perhaps just let users edit the text. It will always be readonly.  Forever. Did you try displaying in the normal admin lists? This was my understanding of

Re: Where can I work as a freelancer (Django dev)

2021-06-04 Thread Lutalo Bbosa joseph
please admin add jamex...@gmail.com to this group On Wed, Jun 2, 2021 at 5:44 PM Gobi Dasu wrote: > Hi Allison, Nikola, and others in this group for whom it is relevant. > > We'd love to have you join our talent network of software developers, data > scientists, and designers. Our site is

Re: In immediate help of a long time pending request, kindly help.

2021-06-04 Thread Aritra Ray
Hello I tried this but I'm still seeing the list of cart items. Can you tell me where I am going wrong? Regards, Aritra On Tue, 1 Jun 2021 at 21:23, Joel Tanko <7thog...@gmail.com> wrote: > If you want to show the items relative to the currently logged in user, > try adding this option =>

Re: SVG widget for the Admin

2021-06-04 Thread Derek
Hi Mike The SVG is not going to display as SVG in a *form* - for that you'd need a widget, or perhaps just let users edit the text. Did you try displaying in the normal admin lists? This was my understanding of where you wanted to see it and the code snippets I posted were for that purpose.

Re: Support for moving a model between two Django apps #24686

2021-06-04 Thread Mike Dewhirst
On 4/06/2021 2:28 pm, lalit suthar wrote: We had a similar problem and we resolved it by moving all the models into a separate internal python package. We can have a separate app in our django project also for writing models only and all other apps import models from there. Interesting. What