blog model and better bad request page
This commit is contained in:
parent
91447b1ba9
commit
e103889291
|
@ -1,3 +1,11 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class BlogPost(models.Model):
|
||||
"""
|
||||
Should contain a blogpost
|
||||
"""
|
||||
title = models.CharField(max_length=50)
|
||||
subtitle = models.CharField(max_length=50)
|
||||
desc = models.CharField(max_length=250, unique=True)
|
||||
body = models.TextField()
|
||||
date = models.DateField(blank=True)
|
||||
|
|
|
@ -1 +1,11 @@
|
|||
400 you fucked up
|
||||
{% extends 'start/base.html' %}
|
||||
{% load i18n %}
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{% block languagecode %}{{ LANGUAGE_CODE }}{% endblock languagecode %}
|
||||
{% block title %}{% translate "cscherr.de" %} - {% translate "startpage" %}{% endblock title %}
|
||||
{% block main %}
|
||||
<div class="jumbotron text-center">
|
||||
<h1>{% translate "Bad request" %}</h1>
|
||||
<p>{% translate "You fucked up" %}</p>
|
||||
</div>
|
||||
{% endblock main %}
|
||||
|
|
Loading…
Reference in New Issue