django admin site password changed every time user's attributes are changed

2021-01-10 Thread Vishesh Mangla
https://dpaste.org/bN7d Please see code at dpaste. I 'm trying to modify my admin site so that the admin can create new accounts there. After clicking save , to whatever email address which the admin has entered an email would bbe sent with a random password. It works perfectly but when I try

Form errors in ListFormsetView created by adding methods to a ListView.

2021-06-11 Thread VISHESH MANGLA
Hello, I am consistently getting this bizarre error and formset_invalid is getting triggered. I just tried to make a generic ListFormSetView. [11/Jun/2021 12:48:24] "GET /adminuser/print-report/?page=1 HTTP/1.1" 200 5244 [{'PAN_ID': ['User with this Pan ID already exists.']}] [11/Jun/2021 12:5

Re: Form errors in ListFormsetView created by adding methods to a ListView.

2021-06-11 Thread VISHESH MANGLA
Sorry , I should have posted the template well, the error is, hmm, suppose you are at page 1 , now you clicked next and you got to page 2 and the `post` method is hit. It will get page number as 2. But for formset , the initial data will have to be compared with page "1" s data not "2". I

Module "django.core.cache.backends.memcached" does not define a "PyMemcacheCache" attribute/class

2021-06-11 Thread VISHESH MANGLA
Hello, Please help with the following error settings.py CACHES = { "default": { 'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache', 'LOCATION': '127.0.0.1:11211' } } #CACHE_MIDDLEWARE_ALIAS = "teut_cache" #CACHE_MIDDLEWARE_SECONDS = 500 #CACHE_MIDDLEWAR

Re: Module "django.core.cache.backends.memcached" does not define a "PyMemcacheCache" attribute/class

2021-06-11 Thread VISHESH MANGLA
> > Also, make sure you are using the docs for the correct version of django: > For example: > https://docs.djangoproject.com/en/3.0/topics/cache/ > > instead of: > > https://docs.djangoproject.com/en/3.2/topics/cache/ > > On Fri, Jun 11, 2021 at 4:20 PM VISHESH M

Initial data doesn't go complelely in the modelformset

2021-06-13 Thread VISHESH MANGLA
in line 38 i have that print statement, it's output is at the top , I dont know why that initial data is not going into that model formset. actually one data the PAN_ID actually went into the modelform, but the checkbox's "checked" didnt. You can see the html of the formset and the checkbox fie

Re: Initial data doesn't go complelely in the modelformset

2021-06-13 Thread VISHESH MANGLA
= True def save(self, commit=True): logger.info(" Method not meant to save anything ") pass On Monday, June 14, 2021 at 12:09:49 AM UTC+5:30 VISHESH MANGLA wrote: > in line 38 i have that print statement, it's output is at the top , I dont > know why that

no info on extra fields in the modelformset docs

2021-06-14 Thread VISHESH MANGLA
Hello, I 'm trying to use a modelformset with extra form fields but the docs say nothing about it. The initial data corresponding to the model fields gets loaded. I 'm stuck on this view(posted at the end) from previous 4 days, please help someone. The extra field is ` print_report_check`.

using .annotate on a queryset and output field is a result of function

2021-06-16 Thread VISHESH MANGLA
Hello, I wanted to know that how for the model below, how can I get a queryset with all the fields excluding the `user` and including the output of get_output_field? Please avoid hardcoding. One way is `TransactionEntry .objects.defer("users").annotate(total_price=F("num_shares")*F("price_p

Re: using .annotate on a queryset and output field is a result of function

2021-06-17 Thread VISHESH MANGLA
ers").annotate(total_price=F("num_shares")*F("price_per_share")).values('total_price') > On Thursday, 17 June 2021 at 03:23:01 UTC+5:30 VISHESH MANGLA wrote: > >> Hello, >> >> I wanted to know that how for the model below, how can I get a queryset

Re: 🚨[URGENT] - 😥 Scrape Youtube Channel Email | Bypass Captcha 👀

2021-06-21 Thread VISHESH MANGLA
Use selenium On Sun, Jun 20, 2021, 06:29 Vrushang Desai wrote: > Hi guys, > *I'm trying to bypass youtube captcha & download email of the channel > owner.* > > I would really like to know how can one actually solve it? > > As I'm facing issues with youtube, > > *Where captcha disappears (Even if

Re: using .annotate on a queryset and output field is a result of function

2021-06-28 Thread VISHESH MANGLA
:06, Nikeet NA wrote: > >> You can do it like this : >> >> class TransactionEntry(models.Manager): >>def get_total_prices(self): >> return >> self.queryset().defer("users").annotate.(total_price=F("num_shares")*F(&q

Re: hello forks.i have in my sitting file :

2023-08-28 Thread Vishesh Mangla
That's just a linting error, ignore it On Mon, 28 Aug, 2023, 19:35 Abdoulaye SENE, wrote: > [image: Cap0.PNG] > but when i make python manage.py migrate, i only see [image: Capt.PNG] > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To u

Re: hello forks.i have in my sitting file :

2023-08-28 Thread Vishesh Mangla
Edtudiant is French not English On Mon, 28 Aug, 2023, 19:45 Abdoulaye SENE, wrote: > i don't understand > > > Le lun. 28 août 2023 à 14:09, Vishesh Mangla > a écrit : > >> That's just a linting error, ignore it >> >> On Mon, 28 Aug,

Re: hello forks.i have in my sitting file :

2023-08-28 Thread Vishesh Mangla
Just move forward with your code , dint give attention to red squiggly at this stage On Mon, 28 Aug, 2023, 20:08 Vishesh Mangla, wrote: > Edtudiant is French not English > > On Mon, 28 Aug, 2023, 19:45 Abdoulaye SENE, > wrote: > >> i don't understand >> &g

Re: Django Rest framework

2023-11-13 Thread Vishesh Mangla
Don't use postman for gui based login On Mon, 13 Nov, 2023, 18:25 Denny (Python developer), < denniskinan...@gmail.com> wrote: > i think the the error is from vercel itself assist me my tech guys > > On Monday, November 13, 2023 at 3:54:29 PM UTC+3 Denny (Python developer) > wrote: > >> i hosted

Re: Django Rest framework

2023-11-13 Thread Vishesh Mangla
Use selenium On Mon, 13 Nov, 2023, 18:48 Vishesh Mangla, wrote: > Don't use postman for gui based login > > On Mon, 13 Nov, 2023, 18:25 Denny (Python developer), < > denniskinan...@gmail.com> wrote: > >> i think the the error is from vercel itself assist

Re: Select Boxes and Database

2023-12-02 Thread Vishesh Mangla
Hi Mike , You can do the following using query parameters. Create a separate endpoint /getcities?city=... . You send the state and get array of cities. This endpoint would give you a json array of cities. On selection of state on the frontend, your event listener would make api call to above endpoi

Re: How to generate plot

2024-09-15 Thread Vishesh Mangla
Use matplotlib and numpy, ask chatgpt On Mon, 16 Sept 2024, 09:40 Nilesh Mishra, wrote: > Y= a+bX2 > > a and b are constant > > Where X is a variable and user input in the range 0 to 400 > > On Sun, Sep 15, 2024, 19:23 Nilesh Mishra > wrote: > >> It's done thanks >> >> On Sun, Sep 15, 2024, 08:

<    1   2