creator added to the video model
This commit is contained in:
parent
adaed94ff7
commit
3f4424ea31
3 changed files with 4 additions and 5 deletions
BIN
backend/erm_videoflix.png
Normal file
BIN
backend/erm_videoflix.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
|
|
@ -1,8 +1,10 @@
|
|||
from django.db import models
|
||||
from django.conf import settings
|
||||
from datetime import date
|
||||
from .class_assets import FILM_GENRES
|
||||
import os
|
||||
class Video(models.Model):
|
||||
creator = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE,default=1)
|
||||
created_at = models.DateField(default=date.today)
|
||||
title = models.CharField(max_length=80)
|
||||
description = models.CharField(max_length=500)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
export const environment = {
|
||||
// Development
|
||||
baseUrl: 'http://127.0.0.1:8000',
|
||||
|
||||
// Live
|
||||
// baseUrl: 'https://videoflix-django.andre-kempf.com',
|
||||
baseUrl: 'http://127.0.0.1:8000', // Development
|
||||
// baseUrl: 'https://videoflix-django.andre-kempf.com', // Live
|
||||
|
||||
// Guest account
|
||||
guestMail: 'guest@example.com',
|
||||
|
|
|
|||
Loading…
Reference in a new issue