Rename app openshift -> welcome
This commit is contained in:
parent
b686e608e4
commit
932889ef2d
10 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ INSTALLED_APPS = (
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'debug_toolbar',
|
'debug_toolbar',
|
||||||
'openshift',
|
'welcome',
|
||||||
)
|
)
|
||||||
|
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE_CLASSES = (
|
||||||
|
|
|
@ -6,6 +6,6 @@ urlpatterns = [
|
||||||
# url(r'^$', 'project.views.home', name='home'),
|
# url(r'^$', 'project.views.home', name='home'),
|
||||||
# url(r'^blog/', include('blog.urls')),
|
# url(r'^blog/', include('blog.urls')),
|
||||||
|
|
||||||
url(r'^$', 'openshift.views.index'),
|
url(r'^$', 'welcome.views.index'),
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
url(r'^admin/', include(admin.site.urls)),
|
||||||
]
|
]
|
||||||
|
|
|
@ -24,7 +24,7 @@ def index(request):
|
||||||
hostname = os.getenv('HOSTNAME', 'unknown')
|
hostname = os.getenv('HOSTNAME', 'unknown')
|
||||||
PageView.objects.create(hostname=hostname)
|
PageView.objects.create(hostname=hostname)
|
||||||
|
|
||||||
return render(request, 'openshift/index.html', {
|
return render(request, 'welcome/index.html', {
|
||||||
'hostname': hostname,
|
'hostname': hostname,
|
||||||
'database_info': database_info,
|
'database_info': database_info,
|
||||||
'count': PageView.objects.count()
|
'count': PageView.objects.count()
|
Loading…
Reference in a new issue