How to validate xl data

2022-02-13 Thread Prashanth Patelc
i am working on xl sheets , when im uploading the xl sheet it is storing into the models but i need before storing into the models validate the data eg: username : ,must be str not int reference id : ,must be int not str email : ,contains @gmail.com , not strt not int i need to validate like abov

Ajax call not working with X-editable

2022-02-13 Thread Sujata Aghor
Hello Django lovers, I am trying to use inline edit using X-editable Here I am trying to fill 'source' value with an ajax call, which will fill a dropdown on every click. But it's not working. If anyone tried this earlier please let me know. If I

RE: Static files not found

2022-02-13 Thread Feroz Ahmed
if staticfiles folder not exists in project, in that case you have to create folder name as staticfiles in project level From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Dev femibadmus Sent: 14 February 2022 02:43 To: django-users@googlegroups

Re: Static files not found

2022-02-13 Thread Dev femibadmus
U need to provide ur static Files dir Using os.path.join(BASR_DIR, "staticfiles") Also if u storing ur static file to cloud or any other host present ur STATICFILES_STORAGE="https://domain.com/location/folder"; On Sun, Feb 13, 2022, 18:47 Serge Alard wrote: > To Ogunsanya Opeyemi : my Django

Re: Static files not found

2022-02-13 Thread Serge Alard
To Ogunsanya Opeyemi : my Django app folder is bridge, thus it's OK To dashlaksh...@gmail.com : I tried but the static files are not found To mminu...@gmail.com : STATICFILES_DIRS = [BASE_DIR/""] is not necessary because it's given already in static_root. Thank you everybody but it does not work

Re: How to trigger a function with an update view

2022-02-13 Thread 'MH' via Django users
Thanks for the specific advice. I will try that. On Sunday, February 13, 2022 at 9:33:16 AM UTC+1 sebasti...@gmail.com wrote: > Hello, > > You overwright in forms.py in your form save() > > Example: > > def save(self, commit=True): > instance = super(MyForm, self).save(commit=False) > ins

Re: How to trigger a function with an update view

2022-02-13 Thread Sebastian Jung
Hello, You overwright in forms.py in your form save() Example: def save(self, commit=True): instance = super(MyForm, self).save(commit=False) instance.flag1 = 'flag1' in self.cleaned_data['multi_choice'] # etc if commit: instance.save() return instance 'MH' via Django u