Skip to main content
django-auth
^^^^^^^^
Note: This project is still under-development.

Author: 234082230@qq.com

Introduction
---------
- 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, UserManager

settings.py
---------
::

INSTALLED_APPS = [
...
'django_auth',
...
]

TEMPLATES = [
{
...

'DIRS': ['templates'],

...
}
]

urls.py
---------
::

from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls.static import static
from django.contrib import admin
from django.views.i18n import JavaScriptCatalog
from django_auth.views.user import UserLoginView, UserLogoutView, UserRegisterView

urlpatterns = [
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'

Metadata

Release files for django-auth 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-auth 0.1.9
File Size Uploaded Provenance
django-auth-0.1.9.tar.gz 368.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-auth 0.1.9
File Interpreter ABI Platform
django_auth-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 751.5 kB

Release files / django-auth-0.1.9.tar.gz

Download URL django-auth-0.1.9.tar.gz
Size 368.0 kB
Tags Source
SHA-256 checksum
How to use checksums
72d8342b2396af78a4dfdd42eb5a3c7b6e3a875209f700fc4360c9228a67449a
BLAKE2b-256 checksum
How to use checksums
455b209271e185332bb7ad0e88337fcaee0e7c81809d92cc263cdc8ea11a010d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_auth-0.1.9-py3-none-any.whl

Download URL django_auth-0.1.9-py3-none-any.whl
Size 383.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3595842d875388844a49dc1ffa0ea3059c2c399df91f787b1e4a7dd41a55d652
BLAKE2b-256 checksum
How to use checksums
4394f455a48f56e6434c9b6c07e21feadc5d99b2770a5b2e399bbad08ec3bf6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-auth 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page