diff options
author | prashantsinalkar | 2019-06-28 21:44:43 +0530 |
---|---|---|
committer | prashantsinalkar | 2019-06-28 21:44:43 +0530 |
commit | 1473227a75101f5b76d6b522da5737df2f5eb058 (patch) | |
tree | dab59c0b7970a0b059d4eeb84aafd54e14ed47e9 /website | |
parent | 459d1aec769f62570af51a3a53ebe0bce4a6754c (diff) | |
download | R_on_Cloud_Web_Interface-1473227a75101f5b76d6b522da5737df2f5eb058.tar.gz R_on_Cloud_Web_Interface-1473227a75101f5b76d6b522da5737df2f5eb058.tar.bz2 R_on_Cloud_Web_Interface-1473227a75101f5b76d6b522da5737df2f5eb058.zip |
added basic interface for development
Diffstat (limited to 'website')
-rw-r--r-- | website/__init__.py | 0 | ||||
-rw-r--r-- | website/admin.py | 3 | ||||
-rw-r--r-- | website/apps.py | 5 | ||||
-rw-r--r-- | website/migrations/__init__.py | 0 | ||||
-rw-r--r-- | website/models.py | 3 | ||||
-rw-r--r-- | website/tests.py | 3 | ||||
-rw-r--r-- | website/urls.py | 8 | ||||
-rw-r--r-- | website/views.py | 9 |
8 files changed, 31 insertions, 0 deletions
diff --git a/website/__init__.py b/website/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/website/__init__.py diff --git a/website/admin.py b/website/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/website/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/website/apps.py b/website/apps.py new file mode 100644 index 0000000..5e338e4 --- /dev/null +++ b/website/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class WebsiteConfig(AppConfig): + name = 'website' diff --git a/website/migrations/__init__.py b/website/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/website/migrations/__init__.py diff --git a/website/models.py b/website/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/website/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/website/tests.py b/website/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/website/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/website/urls.py b/website/urls.py new file mode 100644 index 0000000..c98f65b --- /dev/null +++ b/website/urls.py @@ -0,0 +1,8 @@ +from django.urls import path + +from . import views + +urlpatterns = [ + path('', views.index, name='index'), + path('index', views.index, name='index'), + ] diff --git a/website/views.py b/website/views.py new file mode 100644 index 0000000..cff15e2 --- /dev/null +++ b/website/views.py @@ -0,0 +1,9 @@ +from django.shortcuts import render +from django.http import HttpResponse +from django.template import loader + +def index(request): + context = {} + template = loader.get_template('index.html') + return HttpResponse(template.render(context, request)) + |