First initial commit for test Django website

This commit is contained in:
Alexander Schulz
2024-08-30 16:35:36 +02:00
commit 014b3995ae
169 changed files with 32693 additions and 0 deletions

15
post/models.py Normal file
View File

@ -0,0 +1,15 @@
from django.db import models
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=75)
body = models.TextField()
slug = models.SlugField()
date = models.DateTimeField(auto_now_add=True)
banner = models.ImageField(default='fallback.png', blank=True)
def __str__(self):
return self.title