Django + React: State Management in React

2019-02-15 Thread Alice Heaton
Hello, I'm wondering what people's approach to React state management is, in particular for full stack web developers who work both on the Django and React side of things. Here are my initial thoughts, based on research more than experience. I'm keen to hear other people's thoughts, and (even

How to sent OTPA verification in mail while login with django

2019-02-15 Thread aswaniachu1698
How to sent OTPA verification in mail while login with django -- 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

select_for_update Documentation is confusing(?)

2019-02-15 Thread Philoj Johny
In the documentation for select_for_update , given code example is: from django.db import transaction entries = Entry.objects.select_for_update().filter(author=request.user)with transaction.atomic(): for entry in

Re: How to sent OTPA verification in mail while login with django

2019-02-15 Thread Kasper Laudrup
Hi, On 15/02/2019 09.38, aswaniachu1...@gmail.com wrote: How to sent OTPA  verification in mail while login with django According to https://acronyms.thefreedictionary.com/OTPA OTPA can either mean: Old Towne Preservation Association (Orange, CA) Office of Tax Policy Analysis (various

Re: select_for_update Documentation is confusing(?)

2019-02-15 Thread Simon Charette
Hello Philoj, > Does this mean that the above code example will raise TransactionManagementError... It won't cause a TransactionManagementError because of the lazy nature of queryset. Even if the QuerySet.select_for_update() call is made outside of the atomic block the query is really only

Re: select_for_update Documentation is confusing(?)

2019-02-15 Thread Simon Charette
I meant, and *not* "Building a queryset" in my previous reply. Le vendredi 15 février 2019 14:18:27 UTC-5, Simon Charette a écrit : > > Hello Philoj, > > > Does this mean that the above code example will raise > TransactionManagementError... > > It won't cause a TransactionManagementError

Re: How to sent OTPA verification in mail while login with django

2019-02-15 Thread Khaleel Ahmed H. M. Shariff
Hi Aswani, May Peace, Blessings & Mercy of Almighty God be on you! You can use random number generation for OTP authentication. Hope it helps. Best of Luck. Thanks in advance. God Bless You! God Bless India!! -- Love & Regards Khaleel Ahmed H. M. Managing Director, Tanzanite Realty India

Re: django command logging levels

2019-02-15 Thread Dan Davis
The common verbosity will be passed to the handler: class Command(BaseCommand): ... def handler(**kwargs): verbosity = kwargs['verbosity'] I tried to get clever once and not have **kwargs, but Django sends that common stuff, like '--settings", and it is good for me to pay

django command logging levels

2019-02-15 Thread co16326 . ccet
Django command interface has the following CLI arg -v {0,1,2,3}, --verbosity {0,1,2,3} Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output It doesn't connect with the logging levels used by the commands,

Re: How to sent OTPA verification in mail while login with django

2019-02-15 Thread aswaniachu1698
Thank you, actually insted of senting a verification link i need to sent random numbers.how can i write the view for it. On Friday, 15 February 2019 23:56:59 UTC+5:30, Khaleel Ahmed H. M. Shariff wrote: > > Hi Aswani, > May Peace, Blessings & Mercy of Almighty God be on you! > You can use

Deploying a chatbot with Django: WebSockets vs HTTP

2019-02-15 Thread Mukul Mantosh
I currently have a chatbot app in my django project that I would like to deploy. I am confused as to whether I should use WebSockets or normal HTTP calls (AJAX) for it's implementation. This is what I have understood about the pros/cons of each(in the context of my use-case) till now after

Re: Admin form_url breakout problem

2019-02-15 Thread Mike Dewhirst
Django 2.0 makes no difference either so I've gone back to 1.11 for the time being. To recap ... I'm successfully launching a Stripe payment page from within the Admin  followed by a success (or failure) page which is at the following URL ...