Saravanan666/pypi-org huggingface dataset:
Package: django-auklet
Auklet for DjangoThis is the official Django agent forAuklet. It officially supports Django 1.7+, and runs on most POSIX-based operating systems (Debian, Ubuntu Core, Raspbian, QNX, etc).FeaturesAutomatic report of unhandled exceptionsLocation, system architecture, and system metrics identification for all issuesQuickstartTo install the agent withpip:pipinstalldjango-aukletTo setup Auklet monitoring for you application simply include it in yourINSTALLED_APPS:INSTALLED_APPS=('auklet',...,)Then go and create an application athttps://app.auklet.io/to get your
config settings:AUKLET_CONFIG={"api_key":"<your api key>","application":"<your application id>","organization":"<your organization id>"}AuthorizationTo authorize your application you need to provide both an API key and app ID. These values are available in the connection settings of your application as well as during initial setup.Optional: Release TrackingYou can track releases and identify which servers are running what variant of code. To do this, you may provide the git commit hash of your deployed code and a version string you can modify. This release value should be passed into the settings variable through the release key, and your custom version should be passed via the version key. The release value must be the git commit hash that represents the deployed version of your application. The version value is a string that you may set to whatever value you wish to define your versions. Please note that you can provide either a release value, version value, or both.Providingreleaseenables code snippets to be shown for identified errors if you’ve linked your GitHub.Includingversionallows you to track what version of code had the issue.curl-XPOSThttps://api.auklet.io/v1/releases/\-H"Content-Type: application/json"\-H"Authorization: JWT <your api key>"\-d'{"application": "<your application id>", "release": "'$(gitrev-parseHEAD)'", "version": "<your own version>"}'You can get a pre constructed curl request from the setup directions atAuklet.AUKLET_CONFIG={"api_key":"<your api key>","application":"<your application id>","organization":"<your organization id>","release":"<the git hash of your deployed code>",# Optional"version":"1.2.3"}Middleware Error HandlingTo set up default Django middleware error handling, add the Auklet middleware to the end of your middleware configs:MIDDLEWARE=(...,"auklet.middleware.AukletMiddleware",)If you are already using an error handling middleware which returns a response, you need to disable it or do the following before you return a response; this ensures that the signal is sent to the Auklet middleware.got_request_exception.send(sender=self,request=request)Questions? Problems? Ideas?To get support, report a bug or suggest future ideas for Auklet, go tohttps://help.auklet.ioand click the blue button in the lower-right corner to send a message to our support team.ResourcesAukletPython Documentation
Package: django-ausleihe
# AusleiheEin Verleihsystem.## ProblembeschreibungEs existieren Medien (Bücher, Untersuchungsgeräte, etc.) die von Nutzern ausgeliehen werden können.Ein Medium hat einen eindeutigen Identifier (anfangs z.B. eine fünfstellige Nummer, aber diese kann sich noch ändern).
Ein Buch ist ein Medium mit zusätzlichen Informationen (ISBN, Titel, Beschreibung, Verlag, [Sprache], Ausgabe).
Ein Buch wurde von einem oder mehreren Autoren geschrieben.Ein Nutzer existiert schon über Django. Er wird erweitert und erhält zusätzliche Kontaktinformationen (Telefonnummer, Adresse).Ein Nutzer leiht ein Medium von einem bestimmten Anfangsdatum bis zu einem Enddatum aus. Eine Ausleihe wurde zurückgegeben oder nicht.
Package: django-auth
django-auth^^^^^^^^Note: This project is still under-development.Author: 234082230@qq.comIntroduction---------- Added fields country_code, mobile to django_auth.models.User(User)- Added register, login page using Vue.js- Added register, login, verify code API- Added Aliyun SMS for verify code sending- Added UserAdmin, UserManagersettings.py---------::INSTALLED_APPS = [...'django_auth',...]TEMPLATES = [{...'DIRS': ['templates'],...}]urls.py---------::from django.conf import settingsfrom django.conf.urls import url, includefrom django.conf.urls.static import staticfrom django.contrib import adminfrom django.views.i18n import JavaScriptCatalogfrom django_auth.views.user import UserLoginView, UserLogoutView, UserRegisterViewurlpatterns = [url(r'^jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-catalog'),url(r'^admin/', admin.site.urls),url(r'^login', UserLoginView.as_view()),url(r'^register', UserRegisterView.as_view()),url(r'^logout', UserLogoutView.as_view()),url(r'^api/auth/', include('django_auth.urls', namespace='django-auth')),] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)Aliyun SMS---------settings.py>>>>>>>>>::ACCESS_KEY_ID = ''ACCESS_KEY_SECRET = ''REGION = ''SMS_SIGN = ''SMS_TPL_LOGIN_CN_ID = 'SMS_XXX'SMS_TPL_LOGIN_FOREIGN_ID = 'SMS_XXX'SMS_TPL_FORGETPASSWD_CN_ID = 'SMS_XXX'SMS_TPL_FORGETPASSWD_FOREIGN_ID = 'SMS_XXX'SMS_TPL_REGISTER_CN_ID = 'SMS_XXX'SMS_TPL_REGISTER_FOREIGN_ID = 'SMS_XXX'
Package: django-auth0
Django Auth0 authentication backend
Backend implemented against Auth0Regular Python applicationQuickstartInstall django-auth0$ pip installdjango-auth0Adddjango_auth0toINSTALLED_APPSAdddjango_auth0.auth_backend.Auth0BackendtoAUTHENTICATION_BACKENDSAdddjango_auth0.context_processors.auth0toCONTEXT_PROCESSORSso necessary template context will be providedInclude callback urlsUpdateAUTH0_CALLBACK_URLinsettings.pyto the following if want to use default authentication handlerAdd Auth0 client side JavaScript and initialize itOptions:AUTH0_CLIENT_ID- Auth0 client app id,AUTH0_SECRET- Auth0 app secret,AUTH0_DOMAIN- Auth0 subdomainYOU_APP.auth0.com.AUTH0_CALLBACK_URL- Auth0 callback url is full url to your callback view likehttps://YOUR_DOMAIN/CALLBACKAUTH0_SUCCESS_URL- Url to redirect once you login successfullyOverriding callback view
Default callback view looks like this so you can always write your own and
setAUTH0_CALLBACK_URLto your custom view it should be url name.Sample applicationis athttps://github.com/imanhodjaev/auth0-sampleTODOImprove tests,Add Auth0 user profile model,Add support for settings from Auth0,Move string literals to configuration fileRunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.pyCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.0.2 (2016-02-01)Update documentation0.0.1 (2016-02-01)First release on PyPI.
Package: django-auth0-auth
Django Auth0 Authallows you to authenticate through Auth0.InstallationRunpip installdjango-auth0-authAdd theAuth0Backendto yourAUTHENTICATION_BACKENDSsetting:AUTHENTICATION_BACKENDS=(...'auth0_auth.backends.Auth0Backend',)Edit yoururls.pyto include:urlpatterns=[url(r'^auth0/',include('auth0_auth.urls')),...]Settings###AUTH0_DOMAINAuth0 domain.###AUTH0_CLIENT_IDAuth0 client id.###AUTH0_CLIENT_SECRETAuth0 client secret.###AUTH0_SECRET_BASE64_ENCODEDdefault:FalseFlag if Auth0 client secret is base64 encoded.###AUTH0_SCOPEdefault:'openid email'OAuth scope parameter.###AUTH0_RESPONSE_TYPEdefault:'token'OAuth response type parameter.###AUTH0_USER_CREATIONdefault:TrueAllow creation of new users after successful
authentication.Lock SigninTo log in using the JavaScript basedLockdialog, add the following
to your project.Add theauth0context processor to theTEMPLATESoptions.TEMPLATES=[{'BACKEND':'django.template.backends.django.DjangoTemplates','DIRS':[os.path.join(BASE_DIR,'templates')],'OPTIONS':{'context_processors':[...'auth0_auth.context_processors.auth0',],},},]Add the following JavaScript snippet to yourbase.htmlbelow your
sites other JavaScript.<script src="https://cdn.auth0.com/js/lock-9.min.js"></script>
<script type="text/javascript">
    var lock = new Auth0Lock('{{ AUTH0_CLIENT_ID }}', '{{ AUTH0_DOMAIN }}');
    function signin() {
        lock.show({
            callbackURL: '{{ AUTH0_CALLBACK_URL }}',
            responseType: 'token',
            authParams: {
                'scope': '{{ AUTH0_SCOPE }}',
                'response_mode': 'form_post',
                'state': '{{ AUTH0_STATE }}'
            }
        });
    }
</script>Add a login button to yourbase.html.<button onclick="window.signin();">Login</button>LoggingTo enable logging addauth0_authtoLOGGING['loggers']options.LOGGING={...,'loggers':{...,'auth0_auth':{'handlers':['console'],'level':'DEBUG',}}}
Package: django_auth0_toolkit
Django Auth0 ToolkitToolkit for using Auth0 with Django projectsFree software: MIT licenseDocumentation:https://django-auth0-toolkit.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.2 (2016-11-08)Bug-fixes with SSO decorator0.2.1 (2016-11-08)Extra logging0.2.0 (2016-11-07)Add middleware and view utilities0.1.1 (2016-11-04)Initial SSO-related functionality0.1.0 (2016-11-03)First release on PyPI.
Package: django_auth2
# Django AUTH### install from pypipip install django-auth2### local installinggit clone git@github.com:Nick1994209/django-auth2.gitpython setup.pu installelse if need refactore codepip install -e django-auth2### in project.settingsINSTALLED_APPS = [...'django.contrib.auth','django_auth2',]### in project.urls...url(r'', include('django_auth2.urls')),...## Additional### for User model (optional)email = models.EmailField(unique=True, blank=False)is_active = models.BooleanField()#### if want send activation email for activate user###### then set project.settingsDJANGO_AUTH2_SEND_ACTIVATION_EMAIL = True# password reset daysPASSWORD_RESET_TIMEOUT_DAYS = 1# for sedning emailEMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'EMAIL_USE_TLS = TrueEMAIL_HOST = 'smtp.gmail.com'EMAIL_HOST_USER = 'my_mail@gmail.com'EMAIL_HOST_PASSWORD = 'my_pass'EMAIL_PORT = 587in yor project.settings user.is_active = False`you can use celery for send mailsif you virtualenv installed celery and project work with her;mails be sent from celeryelse if installed celery but not project now work with her;mails message is not sent`[first state with celery. django]: http://docs.celeryproject.org/en/latest/django/first-steps-with-django.htmlif not celery then mail will be sent (default django)###### elseuser.is_active = True (by default) and mail not sentFor send mail (example):#### can use middlewarein settingsMIDDLEWARE = [...'django_auth2.middleware.LoginRequiredMiddleware',]DJANGO_AUTH2_LOGIN_EXCEPT_URLS = ['/info/(.*)','/index/',]
Package: django-auth-abakus
A django auth module that can be used to to authenticate users against
the API of abakus.no. If you would like to use it you need a API token.
Contactwebkom@abakus.noto request one.UsageSet the authentication backend toAbakusBackendAUTHENTICATION_BACKENDS=('abakus.auth.AbakusBackend',)The token should be added in the django-settings asABAKUS_TOKEN.For more information read thedocumentation.ContributeOpen an issue or a pull-request with your fix or awesome new feature.
Make sure to check those that are already open, to avoid duplicates.MIT © Webkom, Abakus Linjeforening
Package: django-auth-additions
Adds some bits that help make django.contrib.auth a bit more useful.Group gains a ‘rank’ field, that can be used to rank groups (useful where
groups need to be able to be limited to view only groups ‘lower’ than
they are).Group gains a .duplicate() method, that will duplicate a group, including
all of it’s permissions.User gains methods for custom permissions:can_view(object)can_edit(object)can_delete(object)can_create(class)These will use the current permissions, but also allow for methods to be
added on the object/class being tested, which can permit or deny access
according to custom rules.  I use this for instance to only allow staff
to view other staff who work at the same location(s).Future:
* Configure using data fromDJANGO_SETTINGS_MODULE* Unique email addresses
* Non-nullable email
* Index on email
* Random username on save (or email?)
* email in template (?)
Package: django-auth-adfs
A Django authentication backend for Microsoft ADFS and Azure ADFree software: BSD LicenseHomepage:https://github.com/snok/django-auth-adfsDocumentation:http://django-auth-adfs.readthedocs.io/FeaturesIntegrates Django with Active Directory on Windows 2012 R2, 2016 or Azure AD in the cloud.Provides seamless single sign on (SSO) for your Django project on intranet environments.Auto creates users and adds them to Django groups based on info received from ADFS.Django Rest Framework (DRF) integration: Authenticate against your API with an ADFS access token.InstallationPython package:pip install django-auth-adfsIn your project’ssettings.pyadd these settings.AUTHENTICATION_BACKENDS=(...'django_auth_adfs.backend.AdfsAuthCodeBackend',...)INSTALLED_APPS=(...# Needed for the ADFS redirect URI to function'django_auth_adfs',...# checkout the documentation for more settingsAUTH_ADFS={"SERVER":"adfs.yourcompany.com","CLIENT_ID":"your-configured-client-id","RELYING_PARTY_ID":"your-adfs-RPT-name",# Make sure to read the documentation about the AUDIENCE setting# when you configured the identifier as a URL!"AUDIENCE":"microsoft:identityserver:your-RelyingPartyTrust-identifier","CA_BUNDLE":"/path/to/ca-bundle.pem","CLAIM_MAPPING":{"first_name":"given_name","last_name":"family_name","email":"email"},}# Configure django to redirect users to the right URL for loginLOGIN_URL="django_auth_adfs:login"LOGIN_REDIRECT_URL="/"######################### OPTIONAL SETTINGS########################MIDDLEWARE=(...# With this you can force a user to login without using# the LoginRequiredMixin on every view class## You can specify URLs for which login is not enforced by# specifying them in the LOGIN_EXEMPT_URLS setting.'django_auth_adfs.middleware.LoginRequiredMiddleware',)In your project’surls.pyadd these paths:urlpatterns=[...path('oauth2/',include('django_auth_adfs.urls')),]This will add these paths to Django:/oauth2/loginwhere users are redirected to, to initiate the login with ADFS./oauth2/login_no_ssowhere users are redirected to, to initiate the login with ADFS but forcing a login screen./oauth2/callbackwhere ADFS redirects back to after login. So make sure you set the redirect URI on ADFS to this./oauth2/logoutwhich logs out the user from both Django and ADFS.You can use them like this in your django templates:<ahref="{% url 'django_auth_adfs:logout' %}">Logout</a><ahref="{% url 'django_auth_adfs:login' %}">Login</a><ahref="{% url 'django_auth_adfs:login-no-sso' %}">Login (no SSO)</a>ContributingContributions to the code are more then welcome.
For more details have a look at theCONTRIBUTING.rstfile.
Package: django-auth-adfs-db
1Welcome to django-auth-adfs-db’s documentation!Version:0.3.0Source:https://github.com/isprojects/django-auth-adfs-dbKeywords:ADFS, Django, database, authentication backendPythonVersion:3.7A database-backed django-auth-adfs settings classContents1Welcome to django-auth-adfs-db’s documentation!2Features3Installation3.1Requirements3.2Install3.3Django settings3.4ADFS login URL on admin login4Usage2FeaturesThin layer on top ofdjango-auth-adfsSAAS ready: store ADFS configuration in a database singletonQuick toggle to enable/disable ADFS based authHooks into Django’s auth machineryDjango-auth-adfs-db provides a setting class reading out the dynamic ADFS
configuration. This moves the ADFS configuration from deploy-time to run-time,
and SAAS clients can configure their ADFS integration themselves. No more
server reloads of deployment environment variable changes needed!3Installation3.1RequirementsPython 3.6 or highersetuptools 30.3.0 or higherDjango 2.1 or higherPostgreSQL (with jsonb field)3.2Installpipinstalldjango-auth-adfs-dbThis will also install thedjango-auth-adfsanddjango-solopackages.3.3Django settingsMake sure the following libraries are added to yourINSTALLED_APPS:INSTALLED_APPS=[..."django_auth_adfs""django_auth_adfs_db""solo",...]Adddjango_auth_adfs_db.backends.AdfsAuthCodeBackendtoAUTHENTICATION_BACKENDS.Ensure thatLOGIN_URLandLOGIN_REDIRECT_URLare configured. You can
set:LOGIN_URL=reverse_lazy("django_auth_adfs:login")LOGIN_REDIRECT_URL="/"if you wish to make ADFS your primary auth login.Set theAUTH_ADFSconfig class:AUTH_ADFS={"SETTINGS_CLASS":"django_auth_adfs_db.settings.Settings"}or a subclass thereof.Finally, register the URLs in your root config with:urlpatterns+=[path("oauth2/",include("django_auth_adfs.urls")),]3.4ADFS login URL on admin loginTemplate:admin/login.html{%extends"admin/login.html"%}{%loadsolo_tagsi18n%}{%blockcontent%}{{block.super}}{%get_solo'django_auth_adfs_db.ADFSConfig'asadfs_config%}{%ifadfs_config.enabled%}<div class="submit-row">
    <a href="{%url'django_auth_adfs:login'%}">{%trans"Login with ADFS"%}</a>
</div>{%endif%}{%endblock%}4UsageYou can now configure the ADFS settings in the Django admin.Please follow thedjango-auth-adfsdocumentation for advanced usage.
Package: django-authanon
django-authanonAllows permissions for an anonymous user and a generic signed-in user to be set as groups.Installationpip install django-authanonThen add to yourINSTALLED_APPS:INSTALLED_APPS += [
    "authanon",
]Then add to yourAUTHENTICATION_BACKENDS:AUTHENTICATION_BACKENDS += [
    "authanon.backends.AuthanonBackend",
]UsageThis app creates two groups, one for anonymous users who aren't logged in and one group for users who are logged in. You can add permissions to these groups in the admin console in the 'Groups' section under the 'AUTHENTICATION AND AUTHORIZATION' section.To display the permissions for these two groups on the command line, use this command../manage.py authanonThese groups are automatically created when anonymous users or logged-in users try to access pages. If you find they haven't been created yet, use the./manage.py authanoncommand and then the groups will appear in the admin.ConfigurationBy default, the two groups are calledAnonymousandLogin Users. You can change them by variables to the settings with the namesAUTHANON_ANONYMOUS_GROUPorAUTHANON_LOGIN_GROUP.CreditsPackage authored by Robert Turnbull (Melbourne Data Analytics Platform)Inspired by this Stack Overflow answer:https://stackoverflow.com/a/31520798(User: jozxyqk)
Package: django-auth-anywhere
django-auth-anywhere=======================django-auth-anywhere is a Django application which enables using `Django Rest Framework`_ authentication backends throughout your Django application. This can be useful to secure non-API endpoints behind token authentication using `JSON web tokens`_... _Django Rest Framework: http://www.django-rest-framework.org/.. _JSON web tokens: http://getblimp.github.io/django-rest-framework-jwt/Requirements------------This has only been tested with:* Python: 3.5* Django: 1.8, 1.9, 1.10Setup-----Install from **pip**:.. code-block:: shpip install django-auth-anywhereand then add it to your installed apps:.. code-block:: pythonINSTALLED_APPS = (...'auth_anywhere',...)You will also need to add a middleware class to listen in on responses:.. code-block:: pythonMIDDLEWARE_CLASSES = [...'auth_anywhere.middleware.AuthenticationMiddleware','django.middleware.common.CommonMiddleware',...]Credits-------``django-auth-anywhere`` was created by Morgante Pell (`@morgante<https://github.com/morgante>`_), with inspiration from Anthony Lobko (`@amelius15<https://github.com/amelius15>`_).History=======Pending-------* New release notes go here.0.0.2 (2016-09-30)-----------------* Remove references to internal project code.0.0.1 (2016-09-30)-----------------* Initial release
Package: django-auth-api
Django-authapi is a app that provide all urls four your authentication in your backend api.Detailed documentation is in the “docs” directory.Quick startAdd “api” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'api',
]Include the api URLconf in your project urls.py like this:path('api/', include('api.urls')),Runpython manage.py makemigrations apito make migrations for this app .Runpython manage.py migrateto create the api models.Start the development server and visithttp://127.0.0.1:8000/admin/to see docs (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/api/to participate all urls related to authentication backend api.
Package: django-auth-backend-pam
Django pam authDocumentationThe full documentation is athttps://django-auth-backend-pam.readthedocs.io.QuickstartInstall Django authorization backend with pam:pip install django-auth-backend-pamAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(..."auth_backend_pam",...)Add PAM_USERS settingsPAM_USERS={"is_active":True,"is_staff":True,"is_superuser":True,}And add AUTHENTICATION_BACKENDS settingsAUTHENTICATION_BACKENDS=[..."auth_backend_pam.backends.PamBackend",]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxDevelopment commandspip install -r requirements_dev.txt
invoke -lCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2022-03-04)First release on PyPI.
Package: django-auth-db-router
Django auth DB router.Simple database router that helps to split your main database and authentication database.
This may be necessary, for example, when splitting a project into microservices.QuickstartAdddjango_auth_db_routerto yourINSTALLED_APPSsetting like this:INSTALLED_APPS = [
    ...
    'django_auth_db_router',
    ...
]AddDATABASE_ROUTERSsetting insettings.pyfile:DATABASE_ROUTERS = [
    'django_auth_db_router.routers.AuthRouter',
]Addauth_dbsection toDATABASES:DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / 'default.sqlite3',
    },
    'auth_db': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / 'auth.sqlite3',
    },
}Finally, addAUTH_DBsetting:DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / 'default.sqlite3',
    },
    'auth_db': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / 'auth.sqlite3',
    },
}

AUTH_DB = 'auth_db'Without this setting router will usedefaultdb connection.
Package: django-auth-dingding
Dingo-Auth-Dingdinga dingding app auth django app. you should have follow thissectionto configure dingding app.Quick startAdd "polls" to your INSTALLED_APPS setting like this::INSTALLED_APPS=[...'django_auth_dingding',]Include the URLconf in your project urls.py like this::path('dingding/',include("django_auth_dingding.urls")),Add ding_user_id field to User Model like this::fromdjango.contrib.auth.modelsimportAbstractUserclassUsers(AbstractUser):...ding_user_id=models.CharField("钉钉UserID",max_length=64,blank=True)Setting config in your django's settings.py like this::INSTALLED_APPS+=("django_auth_dingding",)AUTHENTICATION_BACKENDS=("django_auth_dingding.auth.DingdingAuthenticationBackend","django.contrib.auth.backends.ModelBackend",)DINGDING_AUTH_AUTHENTICATION_CALLBACK_URL=env("DINGDING_AUTH_AUTHENTICATION_CALLBACK_URL")DINGDING_AUTH_APP_KEY=env("DINGDING_AUTH_APP_KEY")DINGDING_AUTH_APP_SECRET=env("DINGDING_AUTH_APP_SECRET")Runpython manage.py migrateto Modify the User models.Browser visithttp://{host}:{port}/dingding/authenticate/will redirect to dingding auth page
Package: django-auth-email
settings.py:INSTALLED_APPS = [
    ...
    'django_auth_email',
    ...
]And run command:./manage.py makemigrations django_auth_email
./manage.py migrateWill be create a table in the DB –django_auth_email_option. Model:class Option(models.Model):
    user = models.ForeignKey(User)
    code = models.CharField(max_length=56)
    expiry = models.DateTimeField()Sign-in/up:>>> from django_auth_email.models import DEAMng
>>> auth = DEAMng()
>>> code = auth.set_code(form.instance.email)
>>> print(code)
c0fca3619e2a0692a0f7bc79388cc51b5c805b22f5718e342bafd986Authorization:>>> check = DEAMng()
>>> if check.is_valid(code):
>>>     check.login(request)