Re: Negative Stock Prevention

2022-09-01 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.

Re: Job Request As A Software Developer

2022-09-01 Thread Kunal Solanke
I don't have any job openings in mind, but I'd suggest you make your CV again. 1. Keep it 2 pages tops(this is important) 2. No need for about keep it in your linkdein 3. Create Education, Experience and projects and Achievements. 4. Include top 2-3 experiences and projects to make it shorters

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread Shams Ulhaq
>From . models import employees Then use in serializer On Thu, 1 Sep 2022, 19:02 Pooja Kumari, wrote: > Can anyone explain this error? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving

Re: Bad Request 400 in Django

2022-09-01 Thread subin
Hi On Thu, Sep 1, 2022 at 4:25 PM Lipede Tope wrote: > Check your code > > On Thu, Sep 1, 2022, 4:13 PM Eric smith wrote: > >> I have some issues in running django server. >> >> System check identified no issues (0 silenced). >> September 01, 2022 - 10:58:47 >> Django version 4.0.1, using

Bad Request 400 in Django

2022-09-01 Thread Eric smith
I have some issues in running django server. System check identified no issues (0 silenced). September 01, 2022 - 10:58:47 Django version 4.0.1, using settings 'project.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. [01/Sep/2022 10:58:57] "GET /

Re: Bad Request 400 in Django

2022-09-01 Thread 'Kasper Laudrup' via Django users
On 01/09/2022 17.03, Eric smith wrote: I have some issues in running django server. System check identified no issues (0 silenced). September 01, 2022 - 10:58:47 Django version 4.0.1, using settings 'project.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread Pooja Kumari
Understood. Thank you very much On Thu, Sep 1, 2022, 7:45 PM MAHESH KUMAR wrote: > You can write your serializers in 3rd line > > From .models import employees > > Thanks, > Mahesh > > On Thu, Sep 1, 2022, 19:30 Pooja Kumari wrote: > >> Can anyone explain this error? >> >> -- >> You received

Re: Bad Request 400 in Django

2022-09-01 Thread Lakshyaraj Dash
What ??? It's September not july On Thu, Sep 1, 2022, 22:29 subin wrote: > I will look forward to meeting you on July 11 > > On Thu, Sep 1, 2022 at 4:14 PM Eric smith > wrote: > >> I have some issues in running django server. >> >> System check identified no issues (0 silenced). >> September

Re: Bad Request 400 in Django

2022-09-01 Thread Jishnu Ramachandran
藍藍 On Thu, 1 Sep, 2022, 11:02 pm Lakshyaraj Dash, wrote: > What ??? It's September not july > > On Thu, Sep 1, 2022, 22:29 subin wrote: > >> I will look forward to meeting you on July 11 >> >> On Thu, Sep 1, 2022 at 4:14 PM Eric smith >> wrote: >> >>> I have some issues in running django

Re: Bad Request 400 in Django

2022-09-01 Thread Marcella Carvalho
Paste here your settings code On Thu, Sep 1, 2022, 4:14 PM Eric smith wrote: > I have some issues in running django server. > > System check identified no issues (0 silenced). > September 01, 2022 - 10:58:47 > Django version 4.0.1, using settings 'project.settings' > Starting development server

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread subin
Thanks again for the info. On Thu, Sep 1, 2022 at 4:21 PM Ashish Rawat wrote: > There is error in line number 3 you are importing the module from restapi > but you should take that from model > > On Thu, Sep 1, 2022, 7:30 PM Pooja Kumari wrote: > >> Can anyone explain this error? >> >> -- >>

Re: Bad Request 400 in Django

2022-09-01 Thread subin
I will look forward to meeting you on July 11 On Thu, Sep 1, 2022 at 4:14 PM Eric smith wrote: > I have some issues in running django server. > > System check identified no issues (0 silenced). > September 01, 2022 - 10:58:47 > Django version 4.0.1, using settings 'project.settings' > Starting

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread MAHESH KUMAR
You can write your serializers in 3rd line >From .models import employees Thanks, Mahesh On Thu, Sep 1, 2022, 19:30 Pooja Kumari wrote: > Can anyone explain this error? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Re: Bad Request 400 in Django

2022-09-01 Thread Lipede Tope
Check your code On Thu, Sep 1, 2022, 4:13 PM Eric smith wrote: > I have some issues in running django server. > > System check identified no issues (0 silenced). > September 01, 2022 - 10:58:47 > Django version 4.0.1, using settings 'project.settings' > Starting development server at

Re: Deploy Django Project in AAPanel

2022-09-01 Thread Javier L. Camacaro
Thanks Kasper, I did it with this tutorial, works fine, but with my project it doesn't. I received a lot of errors: *Sorry, something went wrong:Traceback (most recent call last):File "class/flask_sockets.py", line 30, in __call__handler, values = adapter.match()File

how can i solve that

2022-09-01 Thread amr ahmed
[image: iii.png] -- 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 view this discussion on the web visit

Re: Deploy Django Project in AAPanel

2022-09-01 Thread Abdul Qoyyuum Haji Abdul Kadir
Hi Javier, This doesn't sound like an issue with Django. Try raising a ticket on AAPanel GitHub repo with a full error message and steps to reproduce it. Abdul Qoyyuum Bin Haji Abdul Kadir about.me/qoyyuum On Thu, Sep 1, 2022, 8:11 AM Javier L. Camacaro wrote: > Does someone how to deploy a

Performance regression when moving from 3.1 to 3.2 (same with 4)

2022-09-01 Thread Marc Parizeau
Hi, I am seing a sharp increase in execution time for some of my queries when moving from Django 3.1 to 3.2. And the performance hit appears to be the same for Django 4. My backend is Postgres 14.2. My Django project has forums for different types of content. The forum app consists

Re: Job Request As A Software Developer

2022-09-01 Thread R V Tulasi
My company recruting Pls share cv to 9966342766 through whatsapp Python developer vacancy On Thu, Sep 1, 2022, 1:09 PM Onjomba Felix wrote: > Hae, > I am humbly requesting if you have any job or referral to a job just tell > me bellow is my Cover Letter and CV. > [image: WhatsApp Image

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread Akash Kundoo
>From where you're importing employees? Check that? On Thu, 1 Sep, 2022, 7:31 pm Pooja Kumari, wrote: > Can anyone explain this error? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread Ashish Rawat
There is error in line number 3 you are importing the module from restapi but you should take that from model On Thu, Sep 1, 2022, 7:30 PM Pooja Kumari wrote: > Can anyone explain this error? > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Checking API Results before saving

2022-09-01 Thread lone...@gmail.com
Hello all, I am sending an GET request to an external API and I would like to validate the response before I save it to my model. How do I do this? Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread M Adnan
>From webapp.models import employee On Thu, 1 Sep 2022, 7:02 pm Pooja Kumari, wrote: > Can anyone explain this error? > > -- > 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,

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread Luqman Lawal
Okay On Thu, Sep 1, 2022, 4:21 PM Ashish Rawat wrote: > There is error in line number 3 you are importing the module from restapi > but you should take that from model > > On Thu, Sep 1, 2022, 7:30 PM Pooja Kumari wrote: > >> Can anyone explain this error? >> >> -- >> You received this message

Re: Deploy Django Project in AAPanel

2022-09-01 Thread Luqman Lawal
Okay On Thu, Sep 1, 2022, 6:54 AM 'Kasper Laudrup' via Django users < django-users@googlegroups.com> wrote: > 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 > >

Re: Performance regression when moving from 3.1 to 3.2 (same with 4)

2022-09-01 Thread Ryan Nowakowski
Can you dump the generated sql from both Django versions? https://docs.djangoproject.com/en/4.1/faq/models/#how-can-i-see-the-raw-sql-queries-django-is-running On September 1, 2022 8:58:08 AM CDT, Marc Parizeau wrote: >Hi, > >I am seing a sharp increase in execution time for some of my queries

Re: Job Request As A Software Developer

2022-09-01 Thread Gobi Dasu
Hi Onjomba, I noticed you have a strong, in-demand skill set. We'd love to have you join our talent network of software developers, data scientists, and designers, called LD Talent - ldtalentwork.com. By joining LD Talent, you’ll have the following benefits: - Explore remote opportunities: both

Re: Negative Stock Prevention

2022-09-01 Thread Ryan Nowakowski
If you get this error during migration you likely have some existing Stock rows in your database with quantity that is less than 0. If this site is in production already, you'll need to create a data migration to change your negative quantities to zero.