...
 
Commits (2)
......@@ -2,11 +2,11 @@ from django.db import models
# Create your models here.
class Event(Models.models):
class Event(models.Model):
uniqueid = models.IntegerField()
title = models.CharField(max_length=120) # max 25Live title length
locations = models.CharField(max_length=)
description = models.CharField(max_length=)
locations = models.CharField(max_length=100)
description = models.CharField(max_length=100)
starttimeiso = models.CharField(max_length=25)
dayofweek = models.CharField(max_length=9)
duration = models.CharField(max_length=5)
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def apiwelcome(request):
return render(request, 'api/apiwelcome.html')
\ No newline at end of file
......@@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'api.apps.ApiConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
......
......@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('api.urls')),
]