erased postgre db
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user