From bd5caa8f280792c5719f902c6cd9932d5beb19b6 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Tue, 8 Dec 2015 19:04:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=EF=BC=9B=E5=88=A0=E9=99=A4=E4=B8=8D=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- account/models.py | 1 - oj/settings.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/account/models.py b/account/models.py index e08ff6c..2988add 100644 --- a/account/models.py +++ b/account/models.py @@ -71,6 +71,5 @@ class UserProfile(models.Model): phone_number = models.CharField(max_length=15, blank=True, null=True) school = models.CharField(max_length=200, blank=True, null=True) - class Meta: db_table = "user_profile" diff --git a/oj/settings.py b/oj/settings.py index 391c8b0..153c1af 100644 --- a/oj/settings.py +++ b/oj/settings.py @@ -59,7 +59,6 @@ INSTALLED_APPS = ( 'judge', 'judge_dispatcher', - 'django_extensions', 'rest_framework', 'huey.djhuey', ) @@ -106,7 +105,7 @@ WSGI_APPLICATION = 'oj.wsgi.application' # Internationalization # https://docs.djangoproject.com/en/1.8/topics/i18n/ -LANGUAGE_CODE = 'zh-cn' +LANGUAGE_CODE = 'zh-hans' TIME_ZONE = 'Asia/Shanghai'