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()