diff --git a/project/settings.py b/project/settings.py index 635a478d..b47c008e 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 bccf01d5..63a356e5 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 120c9f65..d88d3469 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()