erased postgre db

This commit is contained in:
Esther Kleinhenz
2018-07-15 11:18:07 +02:00
parent f31119ce27
commit 666b5e909a
157 changed files with 11 additions and 9742 deletions
+2
View File
@@ -1,5 +1,6 @@
from django.db import models
from django.utils import timezone
from taggit.managers import TaggableManager
class Post(models.Model):
@@ -10,6 +11,7 @@ class Post(models.Model):
default=timezone.now)
published_date = models.DateTimeField(
blank=True, null=True)
tags = TaggableManager()
def publish(self):
self.published_date = timezone.now()
-1
View File
@@ -33,7 +33,6 @@
</li>
{% endif %} {% if user.is_staff %}
<li class="nav-item">
<a class="nav-link" href="{% url 'studis:index' %}">Stammdaten von</a>
</li>
{% endif %}
</ul>
@@ -1,10 +1,15 @@
{% extends "base.html" %} {% block content %} {% if form.errors %}
{% extends "base.html" %}
{% block content %}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %} {% if next %} {% if user.is_authenticated %}
{% endif %}
{% if next %}
{% if user.is_authenticated %}
<p>Your account doesn't have access to this page. To proceed, please login with an account that has access.</p>
{% else %}
<p>Please login to see this page.</p>
{% endif %} {% endif %}
{% endif %}
{% endif %}
<form method="post" action="{% url 'login' %}">
{% csrf_token %}