diff --git a/application/forms.py b/application/forms.py index 7fffe59..38e6cf0 100644 --- a/application/forms.py +++ b/application/forms.py @@ -1,9 +1,8 @@ from django import forms from .models import Post, CustomUser -from django.contrib.auth.forms import UserCreationForm, UserChangeForm class PostForm(forms.ModelForm): - + published_date = forms.DateField(widget=forms.widgets.DateInput(format="%d. %h %Y, %M:%S")) class Meta: model = Post - fields = ('title', 'text') \ No newline at end of file + fields = ('title', 'text', 'published_date', 'tags') \ No newline at end of file diff --git a/application/static/js/app.js b/application/static/js/app.js new file mode 100644 index 0000000..e69de29 diff --git a/application/templates/base.html b/application/templates/base.html index 003ca2d..c6294f7 100644 --- a/application/templates/base.html +++ b/application/templates/base.html @@ -8,8 +8,6 @@