diff --git a/openshift/__init__.py b/openshift/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/openshift/admin.py b/openshift/admin.py new file mode 100644 index 00000000..8c38f3f3 --- /dev/null +++ b/openshift/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/openshift/migrations/__init__.py b/openshift/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/openshift/models.py b/openshift/models.py new file mode 100644 index 00000000..71a83623 --- /dev/null +++ b/openshift/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/openshift/templates/openshift/index.html b/openshift/templates/openshift/index.html new file mode 100644 index 00000000..6ad12b9b --- /dev/null +++ b/openshift/templates/openshift/index.html @@ -0,0 +1,47 @@ + + + + Welcome to Django + + + + +
+

Your Django-powered OpenShift project works!

+
+ +
+

+ This project has just a skeleton for you to get started. It includes: +

+
    +
  1. Django project created with python manage.py startproject project .
  2. +
  3. Appropriate database configuration
  4. +
  5. Sample Django app created with python manage.py startapp openshift
  6. +
+

+ Now it is time to add your own code. Follow along the Django tutorial to learn more about Django. +

+
+ +
+

+ You can see more information about this request using the toolbar on the right.
+ Please note that by default your Django settings have DEBUG = True and that is not appropriate for production use, + but very handy during development.
+ Refer to the Deployment Checklist before taking this project into a production environment.

+
+ diff --git a/openshift/tests.py b/openshift/tests.py new file mode 100644 index 00000000..7ce503c2 --- /dev/null +++ b/openshift/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/openshift/views.py b/openshift/views.py new file mode 100644 index 00000000..22b5bb7e --- /dev/null +++ b/openshift/views.py @@ -0,0 +1,6 @@ +from django.shortcuts import render + +# Create your views here. + +def index(request): + return render(request, 'openshift/index.html') diff --git a/project/settings.py b/project/settings.py index 2f0b7a7a..635a478d 100644 --- a/project/settings.py +++ b/project/settings.py @@ -43,6 +43,7 @@ INSTALLED_APPS = ( 'django.contrib.messages', 'django.contrib.staticfiles', 'debug_toolbar', + 'openshift', ) MIDDLEWARE_CLASSES = ( diff --git a/project/urls.py b/project/urls.py index 7faa505e..bccf01d5 100644 --- a/project/urls.py +++ b/project/urls.py @@ -6,5 +6,6 @@ urlpatterns = [ # url(r'^$', 'project.views.home', name='home'), # url(r'^blog/', include('blog.urls')), + url(r'^$', 'openshift.views.index'), url(r'^admin/', include(admin.site.urls)), ]