Skip to content

Instantly share code, notes, and snippets.

from django.conf import settings
from django.contrib.auth.models import User
from django import forms
def my_portal_authenticate(username, password):
if username == 'fooDjango'
and password == 'barDjango':
return True
return False