Rename app openshift -> welcome

This commit is contained in:
Rodolfo Carvalho 2015-05-29 12:23:59 +02:00
parent b686e608e4
commit 932889ef2d
10 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ INSTALLED_APPS = (
'django.contrib.messages',
'django.contrib.staticfiles',
'debug_toolbar',
'openshift',
'welcome',
)
MIDDLEWARE_CLASSES = (

View file

@ -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)),
]

View file

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