diff --git a/boards/urls.py b/boards/urls.py --- a/boards/urls.py +++ b/boards/urls.py @@ -9,6 +9,6 @@ urlpatterns = patterns('', # /boards/post_id/ url(r'^(?P\w+)/$', views.thread, name = 'thread'), # /boards/tag/post/ - url(r'^(?P\w+)/post.html$', views.new_post, + url(r'^post.html$', views.new_post, name='post'), ) diff --git a/boards/views.py b/boards/views.py --- a/boards/views.py +++ b/boards/views.py @@ -16,6 +16,8 @@ def new_post(request): image = request.POST['image'] + # TODO Get tags list, download image (if link is given) + post = Post.objects.create_post(title = title, text = text, image = image) # TODO Show the thread with a newly created post