From 932889ef2d1961a31565ff517855739aeb8946f6 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Fri, 29 May 2015 12:23:59 +0200 Subject: [PATCH] Rename app openshift -> welcome --- project/settings.py | 2 +- project/urls.py | 2 +- {openshift => welcome}/__init__.py | 0 {openshift => welcome}/admin.py | 0 {openshift => welcome}/migrations/0001_initial.py | 0 {openshift => welcome}/migrations/__init__.py | 0 {openshift => welcome}/models.py | 0 .../openshift => welcome/templates/welcome}/index.html | 0 {openshift => welcome}/tests.py | 0 {openshift => welcome}/views.py | 2 +- 10 files changed, 3 insertions(+), 3 deletions(-) rename {openshift => welcome}/__init__.py (100%) rename {openshift => welcome}/admin.py (100%) rename {openshift => welcome}/migrations/0001_initial.py (100%) rename {openshift => welcome}/migrations/__init__.py (100%) rename {openshift => welcome}/models.py (100%) rename {openshift/templates/openshift => welcome/templates/welcome}/index.html (100%) rename {openshift => welcome}/tests.py (100%) rename {openshift => welcome}/views.py (93%) diff --git a/project/settings.py b/project/settings.py index 635a478..b47c008 100644 --- a/project/settings.py +++ b/project/settings.py @@ -43,7 +43,7 @@ INSTALLED_APPS = ( 'django.contrib.messages', 'django.contrib.staticfiles', 'debug_toolbar', - 'openshift', + 'welcome', ) MIDDLEWARE_CLASSES = ( diff --git a/project/urls.py b/project/urls.py index bccf01d..63a356e 100644 --- a/project/urls.py +++ b/project/urls.py @@ -6,6 +6,6 @@ urlpatterns = [ # url(r'^$', 'project.views.home', name='home'), # url(r'^blog/', include('blog.urls')), - url(r'^$', 'openshift.views.index'), + url(r'^$', 'welcome.views.index'), url(r'^admin/', include(admin.site.urls)), ] diff --git a/openshift/__init__.py b/welcome/__init__.py similarity index 100% rename from openshift/__init__.py rename to welcome/__init__.py diff --git a/openshift/admin.py b/welcome/admin.py similarity index 100% rename from openshift/admin.py rename to welcome/admin.py diff --git a/openshift/migrations/0001_initial.py b/welcome/migrations/0001_initial.py similarity index 100% rename from openshift/migrations/0001_initial.py rename to welcome/migrations/0001_initial.py diff --git a/openshift/migrations/__init__.py b/welcome/migrations/__init__.py similarity index 100% rename from openshift/migrations/__init__.py rename to welcome/migrations/__init__.py diff --git a/openshift/models.py b/welcome/models.py similarity index 100% rename from openshift/models.py rename to welcome/models.py diff --git a/openshift/templates/openshift/index.html b/welcome/templates/welcome/index.html similarity index 100% rename from openshift/templates/openshift/index.html rename to welcome/templates/welcome/index.html diff --git a/openshift/tests.py b/welcome/tests.py similarity index 100% rename from openshift/tests.py rename to welcome/tests.py diff --git a/openshift/views.py b/welcome/views.py similarity index 93% rename from openshift/views.py rename to welcome/views.py index 120c9f6..d88d346 100644 --- a/openshift/views.py +++ b/welcome/views.py @@ -24,7 +24,7 @@ def index(request): hostname = os.getenv('HOSTNAME', 'unknown') PageView.objects.create(hostname=hostname) - return render(request, 'openshift/index.html', { + return render(request, 'welcome/index.html', { 'hostname': hostname, 'database_info': database_info, 'count': PageView.objects.count()