From 4d2a5c129eff549fcddd635358553414aef81638 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Sun, 2 Aug 2015 08:59:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=20qduoj=20->=20oj?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manage.py | 2 +- {qduoj => oj}/__init__.py | 0 {qduoj => oj}/local_settings.py | 0 {qduoj => oj}/server_settings.py | 0 {qduoj => oj}/settings.py | 6 +++--- {qduoj => oj}/urls.py | 4 ---- {qduoj => oj}/wsgi.py | 2 +- 7 files changed, 5 insertions(+), 9 deletions(-) rename {qduoj => oj}/__init__.py (100%) rename {qduoj => oj}/local_settings.py (100%) rename {qduoj => oj}/server_settings.py (100%) rename {qduoj => oj}/settings.py (97%) rename {qduoj => oj}/urls.py (85%) rename {qduoj => oj}/wsgi.py (82%) diff --git a/manage.py b/manage.py index b4ba9771..31881f3b 100755 --- a/manage.py +++ b/manage.py @@ -3,7 +3,7 @@ import os import sys if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "qduoj.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "oj.settings") from django.core.management import execute_from_command_line diff --git a/qduoj/__init__.py b/oj/__init__.py similarity index 100% rename from qduoj/__init__.py rename to oj/__init__.py diff --git a/qduoj/local_settings.py b/oj/local_settings.py similarity index 100% rename from qduoj/local_settings.py rename to oj/local_settings.py diff --git a/qduoj/server_settings.py b/oj/server_settings.py similarity index 100% rename from qduoj/server_settings.py rename to oj/server_settings.py diff --git a/qduoj/settings.py b/oj/settings.py similarity index 97% rename from qduoj/settings.py rename to oj/settings.py index 52eaac62..3fa0e0bf 100644 --- a/qduoj/settings.py +++ b/oj/settings.py @@ -1,6 +1,6 @@ # coding=utf-8 """ -Django settings for qduoj project. +Django settings for oj project. Generated by 'django-admin startproject' using Django 1.8. @@ -63,7 +63,7 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.security.SecurityMiddleware', ) -ROOT_URLCONF = 'qduoj.urls' +ROOT_URLCONF = 'oj.urls' TEMPLATES = [ { @@ -81,7 +81,7 @@ TEMPLATES = [ }, ] -WSGI_APPLICATION = 'qduoj.wsgi.application' +WSGI_APPLICATION = 'oj.wsgi.application' # Internationalization diff --git a/qduoj/urls.py b/oj/urls.py similarity index 85% rename from qduoj/urls.py rename to oj/urls.py index 59baceb7..a9438fa3 100644 --- a/qduoj/urls.py +++ b/oj/urls.py @@ -6,10 +6,6 @@ from django.views.generic import TemplateView from account.views import UserLoginAPIView urlpatterns = [ - # Examples: - # url(r'^$', 'qduoj.views.home', name='home'), - # url(r'^blog/', include('blog.urls')), - url(r'^docs/', include('rest_framework_swagger.urls')), url(r'^admin/', include(admin.site.urls)), diff --git a/qduoj/wsgi.py b/oj/wsgi.py similarity index 82% rename from qduoj/wsgi.py rename to oj/wsgi.py index 5fe94cc1..c0851911 100644 --- a/qduoj/wsgi.py +++ b/oj/wsgi.py @@ -11,6 +11,6 @@ import os from django.core.wsgi import get_wsgi_application -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "qduoj.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "oj.settings") application = get_wsgi_application()