-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #679 from liangliangyy/dev
增加多语言支持
- Loading branch information
Showing
58 changed files
with
3,057 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
accounts/migrations/0002_alter_bloguser_options_remove_bloguser_created_time_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Generated by Django 4.2.5 on 2023-09-06 13:13 | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('accounts', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='bloguser', | ||
options={'get_latest_by': 'id', 'ordering': ['-id'], 'verbose_name': 'user', 'verbose_name_plural': 'user'}, | ||
), | ||
migrations.RemoveField( | ||
model_name='bloguser', | ||
name='created_time', | ||
), | ||
migrations.RemoveField( | ||
model_name='bloguser', | ||
name='last_mod_time', | ||
), | ||
migrations.AddField( | ||
model_name='bloguser', | ||
name='creation_time', | ||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='creation time'), | ||
), | ||
migrations.AddField( | ||
model_name='bloguser', | ||
name='last_modify_time', | ||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='last modify time'), | ||
), | ||
migrations.AlterField( | ||
model_name='bloguser', | ||
name='nickname', | ||
field=models.CharField(blank=True, max_length=100, verbose_name='nick name'), | ||
), | ||
migrations.AlterField( | ||
model_name='bloguser', | ||
name='source', | ||
field=models.CharField(blank=True, max_length=100, verbose_name='create source'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
from django.urls import include, re_path | ||
from django.urls import path | ||
from django.urls import re_path | ||
|
||
from . import views | ||
from .forms import LoginForm | ||
|
||
app_name = "accounts" | ||
|
||
urlpatterns = [re_path(r'^login/$', | ||
views.LoginView.as_view(success_url='/'), | ||
name='login', | ||
kwargs={'authentication_form': LoginForm}), | ||
views.LoginView.as_view(success_url='/'), | ||
name='login', | ||
kwargs={'authentication_form': LoginForm}), | ||
re_path(r'^register/$', | ||
views.RegisterView.as_view(success_url="/"), | ||
name='register'), | ||
views.RegisterView.as_view(success_url="/"), | ||
name='register'), | ||
re_path(r'^logout/$', | ||
views.LogoutView.as_view(), | ||
name='logout'), | ||
views.LogoutView.as_view(), | ||
name='logout'), | ||
path(r'account/result.html', | ||
views.account_result, | ||
name='result'), | ||
re_path(r'^forget_password/$', | ||
views.ForgetPasswordView.as_view(), | ||
name='forget_password'), | ||
views.ForgetPasswordView.as_view(), | ||
name='forget_password'), | ||
re_path(r'^forget_password_code/$', | ||
views.ForgetPasswordEmailCode.as_view(), | ||
name='forget_password_code'), | ||
views.ForgetPasswordEmailCode.as_view(), | ||
name='forget_password_code'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.