skip to Main Content

Mysql – How to make password hashing in django project, i am using custom autentication for login?

I want to make password hashing possible for a django project. views.py for login. def asset_login(request): if request.method == 'POST': username = request.POST.get('user_id') password = request.POST.get('password') try: user = UserTable.objects.get(username=username, password=password) if user: if user.status == 'inactive': messages.error(request, 'Your account…

VIEW QUESTION

Mysql – calculating running totals with multiple rows to be consolidated first or the running total would be wrong

SELECT pph.accnt_code, pph.period, SUM(pph.value_debit) AS debits, SUM(pph.value_credit) AS credits, SUM(pph.value_debit-pph.value_credit) OVER (ORDER BY pph.accnt_code, pph.period) AS endbal FROM trans_tst pph GROUP BY pph.accnt_code, pph.period ORDER BY pph.accnt_code, pph.period result should have beenresulting running totals table but result obtained was wrong…

VIEW QUESTION
Back To Top
Search