Re:

2021-01-22 Thread Christ Ikonga
Send me your code please Le mar. 19 janv. 2021 à 22:32, Ameto Eklu a écrit : > To use your own form with Django, you have to use widgets in combination > with your model attributes. > > I hope that answers your question. > > On Tue, Jan 19, 2021, 7:39 AM Christ Ikonga > wrote: > >> hi guys i

Re: Django django_filters DateFilter customization

2021-01-22 Thread _M_A_Y_A_N_K_
Thanks Kasper, I utilized the suggestion you shared, and implemented it with a custom template tag, and now am able to restrict it. [image: image.png] Thanks & Regards, - Mayank Tripathi Mo. +1 615 962 2128 "Do what you can, with what you have, where you are -by Theodore

Re: Django django_filters DateFilter customization

2021-01-22 Thread _M_A_Y_A_N_K_
Thanks Kasper, Will try the suggested option. Meanwhile, do you know how to get the documentation for danjo_filters DateFilter() method, and want to know what all parameters it can accept. Usually we do pass field_name; lookup_expr; label , just curious if we could pass *attrs *as we pass in

Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-22 Thread Larry Martell
I have an app deployed in many places and it uses Django Microsoft Authentication Backend. Starting yesterday when we deploy the app the auth is now not working. We get back Failed to authenticate you for an unknown reason. Please try again later. We can see in the azure logs that the login was

Re: Django django_filters DateFilter customization

2021-01-22 Thread Kasper Laudrup
Hi Maynak, On 22/01/2021 21.34, Mayank Tripathi wrote: Hi All, I am look for a solution where I can restrict the user to select date from current month only instead of selecting any other month or year. Currently user can select past month as well, have to restrict for current month only

Django django_filters DateFilter customization

2021-01-22 Thread Mayank Tripathi
Hi All, I am look for a solution where I can restrict the user to select date from current month only instead of selecting any other month or year. Currently user can select past month as well, have to restrict for current month only in date picker. Please help. Below is the code. filters.py

Re: How to set daily update limit for django model(db)?

2021-01-22 Thread Gabriel Araya Garcia
Hi Sahilesh: Try with this: https://www.kite.com/python/answers/how-to-count-the-number-of-rows-in-a-pandas-dataframe-in-python El viernes, 22 de enero de 2021 a las 14:39:35 UTC-3, shailesh...@gmail.com escribió: > Thanks! but Can you elaborate more? > *howmany = mytable.count()* = Here How

Angular Material Help Required

2021-01-22 Thread Chetan Ganji
Hi, I was hoping someone could help me with this. I know this is not angular group :P *Requirement:* errors should be displayed just after the mat-label. *Problem:* mat-error is always displayed below the matInput in angular material theme. It doesnt matter in which order I write the markup,

[ANN] Django-Compat-Patcher 0.10 is out, with Django 3.1 support

2021-01-22 Thread Pascal
Hello, FWIW, I allow myself to broadcast this info here too, since it's a very transversal subject which might concern any Django user ^_^ The latest release of Django-Compat-Patcher, 0.10 , now includes 67 compatibility shims ranging

Re: How to set daily update limit for django model(db)?

2021-01-22 Thread Shailesh Yadav
Thanks! but Can you elaborate more? *howmany = mytable.count()* = Here How it'll work and how to reset the value in 1 day. how I can use it in my code. import xlrd = I was trying something like this def CTA_upload(request): i = 1 count = (1,) print('Counter value at starting :',

Re: How to set daily update limit for django model(db)?

2021-01-22 Thread Gabriel Araya Garcia
Previous, you can use: howmany = mytable.count() Also you can use xlrd library, for instance: import xlrd #open excel file documento = xlrd.open_workbook("ejemplo.xls") #We can save each one of the spreadsheet separately libros = documento.sheet_by_index(0) peliculas =

How to set daily update limit for django model(db)?

2021-01-22 Thread Shailesh Yadav
Hi I'm having one Django web app where My *model A *contains 1000 records and I want to set a daily update limit for example if users are updating that data by uploading a .xls file then it should count how many records updated and once it is more than 500 then the user should get an Error

Re: Vue.js support in PyCharm IDE

2021-01-22 Thread Kasper Laudrup
On 1/22/21 8:30 AM, Obodoma Uzondu Vincent wrote: Use Vscode Use ed: https://www.howtoforge.com/linux-ed-command/ -- 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