diff --git a/posts/forms.py b/posts/forms.py index 31e66e9..d0e42ed 100644 --- a/posts/forms.py +++ b/posts/forms.py @@ -14,4 +14,7 @@ class EmailPostForm(forms.Form): class CommentForm(forms.ModelForm): class Meta: model = Comment - fields = ['name', 'email', 'body'] \ No newline at end of file + fields = ['name', 'email', 'body'] + +class SearchForm(forms.Form): + query = forms.CharField() \ No newline at end of file diff --git a/scribly/settings.py b/scribly/settings.py index 590dc53..776550a 100644 --- a/scribly/settings.py +++ b/scribly/settings.py @@ -44,6 +44,7 @@ "django.contrib.sites", "django.contrib.sitemaps", "django.contrib.staticfiles", + "django.contrib.postgres", "taggit", "posts.apps.PostsConfig", "users.apps.UsersConfig",