Re: django cron Job Functionality

2021-06-12 Thread Lalit Suthar
https://medium.com/@yedjoe/celery-4-periodic-task-in-django-9f6b5a8c21c7 http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html http://docs.celeryproject.org/en/latest/userguide/index.html#guide https://www.agiliq.com/blog/2015/07/getting-started-with-celery-and-redis/ On Sat,

Re: django cron Job Functionality

2021-06-12 Thread Eugene TUYIZERE
Dear Ayser, You may be sent the wrong video. The video you sent is unrelated. Please give me the correct one. regards, On Sat, 12 Jun 2021 at 08:56, Ayser shuhaib wrote: > Watch this video on how to schedule a task or function in your Django > project, I’m sure it will have the answer to your

Re: django cron Job Functionality

2021-06-12 Thread Ayser shuhaib
I’m sorry for that. This is the video I meant to send you https://youtu.be/1vrQIdMF4LY On Sat, 12 Jun 2021 at 09:14, Eugene TUYIZERE wrote: > Dear Ayser, > > You may be sent the wrong video. The video you sent is unrelated. Please > give me the correct one. > > regards, > > On Sat, 12 Jun 2021

I am using django with DRF and dj_rest_auth

2021-06-12 Thread Manas Paul
I have made my custom user model. The dj_rest_auth returning the response after successfull login { "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjIzdXJfaWQiOjZ9.4yjIBxXhe5grxCe18huamgj1qP44A-zOkUHxZ61wXao" , "refresh_token": "eyJ0eXAiOiJKV1QiLC

Feature request for django permissions

2021-06-12 Thread wael muhammed
I have a projects with multi branches . I want to make permissions according to branch record. I couldn't add customize django permissions model to make foreign key from branch model. Look here for more

User matching query does not exist.

2021-06-12 Thread Shilpa Agrawal
Environment: Request Method: GET Request URL: http://127.0.0.1:8000/addToCart/1 Django Version: 3.2.3 Python Version: 3.9.1 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.co

Make permissions according branch id

2021-06-12 Thread wael muhammed
I want to make permissions according branch id for more details -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Re: IndexError at /

2021-06-12 Thread Nikeet NA
Your list is empty check for it then return count as 0 if the list is not empty then return qs[0].items.count() On Sat, 12 Jun 2021 at 02:55, Jacob Greene wrote: > The backtrace is pretty clear.. > > Here's the import part: > File "C:\Users\GEMINI INNOVATIONS\Documents\WEB DEV TUTOR FULL > STA

Re: getattr(): attribute name must be string

2021-06-12 Thread David Crandell
It was a field type mismatch. I should have used DecimalField() instead of FloatField() On Saturday, June 12, 2021 at 12:08:56 AM UTC-5 David Crandell wrote: > Hello, > > I am trying to migrate changes to my models. When I do, I get a traceback > error to my Employee model which says > > Trace

Allow field validation in ajax.

2021-06-12 Thread Eugene TUYIZERE
Friends, The ajax codes below successfully save the records in the database without page loading. But what I want is to validate the fields first before saving. The codes do not validate the empty field. How can I include that validation ? please help $(".submit_btn").click(function(){ var form=

Ez

2021-06-12 Thread GBELE CEDRIC EMMANUEL
Se lo hé i w lo +la,& pas 2€xz9#:,w -- 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 we

Re: Ez

2021-06-12 Thread Gabriel Araya Garcia
Gbel: I don't understand nothing about you attempt to tell us. If you could write in english or spanish it would be great Gabriel Araya Garcia GMI - Desarrollo de Sistemas Informáticos El sáb, 12 jun 2021 a las 14:50, GBELE CEDRIC EMMANUEL (< cedric.gb...@uvci.edu.ci>) escribió: > Se lo hé i

Re: Allow field validation in ajax.

2021-06-12 Thread Nikeet NA
You are not submitting your form which Inturn is not validating. For validations to run you need to submit a form. Give the submit button attribute type="submit", then add an event listener for form submit in your javascript. $("#ReportForm").on('submit', function(event) { // here event i

Re: User matching query does not exist.

2021-06-12 Thread Nikeet NA
There is no user with id 1. Wrap this statement inside try catch block : user = User.objects.get(id=uid) and catch the DoesNotExist exception as except User.DoesNotExist: On Saturday, 12 June 2021 at 18:13:09 UTC+5:30 shilpa...@gmail.com wrote: > Environment: > > > Request Method: GET > Req

Re: User matching query does not exist.

2021-06-12 Thread sachinbg sachin
It means that the data which you are looking for is not exists in that data base, check properly wether the searching data is exists or not, Thank you Sachin b.g On Sun, 13 Jun, 2021, 6:53 AM Nikeet NA, wrote: > There is no user with id 1. > Wrap this statement inside try catch block : >use

Re: Make permissions according branch id

2021-06-12 Thread wael muhammed
Did any one understands what I mean ? في السبت، 12 يونيو 2021 في تمام الساعة 3:43:09 م UTC+3، كتب ‪wael muhammed‬‏ رسالة نصها: > > I want to make permissions according branch id > for more details > > --

Is django guardian repostness with millions of records in every table

2021-06-12 Thread wael muhammed
Could I force problem if I have more than 500 table with million of record in each table .with Django guardian -- 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