enumerate login in django

2022-08-31 Thread Dilja E G
how to create a function to login with user nam e. if user name and password is already exist, but want to login with user for super user. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Negative Stock Prevention

2022-08-31 Thread tech george
Hello, Sorry for the late reply. I changed the models as below and added checkConstraint , But when I migrate I get the below error. What am I still doing wrong? class Stock(models.Model): quantity = models.PositiveIntegerField(default='0', blank=True, null=True) reorder_level = models.

Re: User authentication with simple-jwt drf

2022-08-31 Thread Mobina J
hii import pandas as pd from django.contrib import messages from django.core.mail import EmailMessage from django.shortcuts import render from django.template.loader import render_to_string from app_1.form import NotificationForm def email_generic_template(request): form = NotificationForm(requ

Re: I want to fetch the value of radio field for updation but it only doesn't fetch even i use condition and value does comes but doesn't checked

2022-08-31 Thread Godswill King Trace
I have this problem too On Wed, Aug 24, 2022, 5:06 PM Mihir Patel wrote: > i dont have much idea but try to do with True Or False value bcz maybe it > returns boolean value. > > On Mon, Aug 22, 2022 at 12:27 PM Abhinandan K > wrote: > >> Email >> >> {% with val_gen=datas.gender%} >> {{val_gen}

Bug with Watchman on Windows

2022-08-31 Thread David V
Hello All, Apologies if this is the wrong place to submit this. I couldn't find clear enough documentation on where to do this, so I guess I ended up here. I installed pywatchman along with FB's watchman expecting StatReloader to change to WatchmnaReloader. Sadly, I was mistaken. Python versio

Re: Bug with Watchman on Windows

2022-08-31 Thread 'Kasper Laudrup' via Django users
On 31/08/2022 18.52, David V wrote: Hello All, Apologies if this is the wrong place to submit this. I couldn't find clear enough documentation on where to do this, so I guess I ended up here. Maybe open an issue on the issue tracker on github? https://github.com/facebook/watchman Kind reg

Deploy Django Project in AAPanel

2022-08-31 Thread Javier L. Camacaro
Does someone how to deploy a Django Project in AAPanel? I tried Python Maganer 2.0 but impossible for me! I get this error: Sorry, something went wrong: Traceback (most recent call last): File "class/flask_sockets.py", line 30, in *call* handler, values = adapter.match() File "/www/server/

Re: Negative Stock Prevention

2022-08-31 Thread Ryan Nowakowski
I don't see any error. Did you forget to post it? On August 31, 2022 5:57:32 AM CDT, tech george wrote: >Hello, > >Sorry for the late reply. > >I changed the models as below and added checkConstraint , But when I >migrate I get the below error. > >What am I still doing wrong? > >class Stock(model

Re: Negative Stock Prevention

2022-08-31 Thread Ammar Mohammed
I don't think you need that constraint after using the PositiveIntegerField . On Thu, 1 Sep 2022, 02:45 Ryan Nowakowski, wrote: > I don't see any error. Did you forget to post it? > > On August 31, 2022 5:57:32 AM CDT, tech george > wrote: >> >> Hello, >> >> Sorry for the late reply. >> >> I c

Re: Negative Stock Prevention

2022-08-31 Thread tech george
Hello, Sorry the error is: django.db.utils.IntegrityError: CHECK constraint failed: quantity On Thu, Sep 1, 2022 at 3:45 AM Ryan Nowakowski wrote: > I don't see any error. Did you forget to post it? > > On August 31, 2022 5:57:32 AM CDT, tech george > wrote: >> >> Hello, >> >> Sorry for the

Re: Deploy Django Project in AAPanel

2022-08-31 Thread 'Kasper Laudrup' via Django users
On 01/09/2022 02.10, Javier L. Camacaro wrote: Does someone how to deploy a Django Project in AAPanel? https://forum.aapanel.com/d/13338-python-manager-deploy-djangoblog Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Negative Stock Prevention

2022-08-31 Thread tech george
I managed to remove the error, I had a negative stock in my DB. Thanks a lot for the help. On that note, I was also trying to get the dispensed from stock I was trying to do this but I don't think it can work since there is already a foreign key at Dispense model fetching drug_id from stock. W