Commit 735cd214 authored by LiniEisha's avatar LiniEisha

Backend setup

parent 7e0ea9da
from django.contrib import admin from django.contrib import admin
from .models import Lecture
# Register your models here. # Register your models here.
admin.site.register(Lecture)
from django.db import models from django.db import models
# Create your models here. # Create your models here.
class Lecture(models.Model):
lectureid = models.CharField(max_length=50)
topic = models.CharField(max_length=100)
date = models.DateTimeField(max_length=50)
duration = models.CharField(max_length=100)
lecture = models.CharField(max_length=1000)
recording = models.CharField(max_length=100)
summary = models.CharField(max_length=1000)
def __str__(self):
return self.lectureid
\ No newline at end of file
...@@ -37,6 +37,8 @@ INSTALLED_APPS = [ ...@@ -37,6 +37,8 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'rest_framework',
'ApiBasic',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment