This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
django-ex
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
Rename app openshift -> welcome
pull/2/merge
Rodolfo Carvalho
10 years ago
parent
b686e608e4
commit
932889ef2d
10 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
project/settings.py
+1
-1
project/urls.py
+0
-0
welcome/__init__.py
+0
-0
welcome/admin.py
+0
-0
welcome/migrations/0001_initial.py
+0
-0
welcome/migrations/__init__.py
+0
-0
welcome/models.py
+0
-0
welcome/templates/welcome/index.html
+0
-0
welcome/tests.py
+1
-1
welcome/views.py
+ 1
- 1
project/settings.py
View File
@ -43,7 +43,7 @@ INSTALLED_APPS = (
'
django.contrib.messages
'
,
'
django.contrib.staticfiles
'
,
'
debug_toolbar
'
,
'
openshift
'
,
'
welcome
'
,
)
MIDDLEWARE_CLASSES
=
(
+ 1
- 1
project/urls.py
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
)
)
,
]
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
'
)
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
(
)
Write
Preview
Loading…
Cancel
Save