I also, I have build one program with health environment, and the user
controlls is following manner:
def login_ini(request):
variable1 = 'Pantalla de Acceso al Sistema'
error_log = 'ok'
username = request.POST.get('username')
password = request.POST.get('password') # valor del template
user = aut
https://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/
[image: Screenshot from 2020-07-06 03-15-34.png]
On Mon, 6 Jul 2020 at 03:13, Arpana Mehta wrote:
> You can user permission classes in your code. Or decorators before the
> function view you want to be only visible
You can user permission classes in your code. Or decorators before the
function view you want to be only visible to logged in users.
from django.contrib.auth.decorators import login_required
@login_required
def your_view_here(request):
On Mon, 6 Jul 2020 at 01:28, Exactly musty wrote:
> ho
3 matches
Mail list logo