creator added to the video model

This commit is contained in:
Chneemann 2024-08-25 17:58:50 +02:00
parent adaed94ff7
commit 3f4424ea31
3 changed files with 4 additions and 5 deletions

BIN
backend/erm_videoflix.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View file

@ -1,8 +1,10 @@
from django.db import models from django.db import models
from django.conf import settings
from datetime import date from datetime import date
from .class_assets import FILM_GENRES from .class_assets import FILM_GENRES
import os import os
class Video(models.Model): class Video(models.Model):
creator = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE,default=1)
created_at = models.DateField(default=date.today) created_at = models.DateField(default=date.today)
title = models.CharField(max_length=80) title = models.CharField(max_length=80)
description = models.CharField(max_length=500) description = models.CharField(max_length=500)

View file

@ -1,9 +1,6 @@
export const environment = { export const environment = {
// Development baseUrl: 'http://127.0.0.1:8000', // Development
baseUrl: 'http://127.0.0.1:8000', // baseUrl: 'https://videoflix-django.andre-kempf.com', // Live
// Live
// baseUrl: 'https://videoflix-django.andre-kempf.com',
// Guest account // Guest account
guestMail: 'guest@example.com', guestMail: 'guest@example.com',