Browse Source

Rename app openshift -> welcome

pull/2/merge
Rodolfo Carvalho 10 years ago
parent
commit
932889ef2d
10 changed files with 3 additions and 3 deletions
  1. +1
    -1
      project/settings.py
  2. +1
    -1
      project/urls.py
  3. +0
    -0
      welcome/__init__.py
  4. +0
    -0
      welcome/admin.py
  5. +0
    -0
      welcome/migrations/0001_initial.py
  6. +0
    -0
      welcome/migrations/__init__.py
  7. +0
    -0
      welcome/models.py
  8. +0
    -0
      welcome/templates/welcome/index.html
  9. +0
    -0
      welcome/tests.py
  10. +1
    -1
      welcome/views.py

+ 1
- 1
project/settings.py View File

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


+ 1
- 1
project/urls.py View File

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

openshift/__init__.py → welcome/__init__.py View File


openshift/admin.py → welcome/admin.py View File


openshift/migrations/0001_initial.py → welcome/migrations/0001_initial.py View File


openshift/migrations/__init__.py → welcome/migrations/__init__.py View File


openshift/models.py → welcome/models.py View File


openshift/templates/openshift/index.html → welcome/templates/welcome/index.html View File


openshift/tests.py → welcome/tests.py View File


openshift/views.py → welcome/views.py View File

@ -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…
Cancel
Save