From d48e1547ad078a934f969f6e9aacebace4d0d81e Mon Sep 17 00:00:00 2001 From: Koen Bolhuis Date: Tue, 25 Sep 2018 18:31:48 +0200 Subject: [PATCH] Add index view --- backend/RateMyCourse/urls.py | 3 +++ backend/RateMyCourse/views.py | 5 +++++ backend/db.sqlite3 | Bin 139264 -> 139264 bytes 3 files changed, 8 insertions(+) create mode 100644 backend/RateMyCourse/views.py diff --git a/backend/RateMyCourse/urls.py b/backend/RateMyCourse/urls.py index 8ac49dc..6dc6b61 100644 --- a/backend/RateMyCourse/urls.py +++ b/backend/RateMyCourse/urls.py @@ -16,7 +16,10 @@ Including another URLconf from django.contrib import admin from django.urls import re_path,path,include +from . import views + urlpatterns = [ + path('', views.index, name='index'), path('admin/', admin.site.urls), re_path(r'^api/postings/', include(('postings.api.urls','postings'), namespace='api-postings')), ] diff --git a/backend/RateMyCourse/views.py b/backend/RateMyCourse/views.py new file mode 100644 index 0000000..ff7e542 --- /dev/null +++ b/backend/RateMyCourse/views.py @@ -0,0 +1,5 @@ +from django.http import HttpResponse + + +def index(request): + return HttpResponse("Hello, world. You're at the index.") diff --git a/backend/db.sqlite3 b/backend/db.sqlite3 index 3e92540cb4653d9f3e77ea3a021b81d887f0caa7..dd149749b5ff21502b348ff3073e7b7f4192e4f4 100644 GIT binary patch delta 1304 zcmZvcU2NM_6vusHJBjPqCyiLsHlcCGMwg{&Y$s`(tS~~=2Ra516XHW^(~yQXTfUaG zg$k(+n&=Y`ZS!CdVnSmY0|sJPY7hghnn0Qm+R!us8iz%aK&RG?^_{4ETXI?tr1$eGpJT@2R^rg&#-+#Uw{!Dec$GsWC& zwo=Va&sDO9(xwlNoj*M2#Zd}x;Z3}Oui~G04X@%1Y4b8(z!ILvbND6ZaFw+DA!hJ6 z9wn`h;tIZji&!K3_85{*}3{IFcR(M=QZ0J z1VzWFqu(L$fAJUjWBk04%P(yAvJ~tL-9yPxx+odnOWLF+=pmj^|9`M)`ZiIL43@l| z#O&+df~n~;$m;4KtNuU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