##// END OF EJS Templates
Changed the url to the post page. Added one more TODO.
neko259 -
r6:5fb6f373 default
parent child Browse files
Show More
@@ -9,6 +9,6 b" urlpatterns = patterns('',"
9 # /boards/post_id/
9 # /boards/post_id/
10 url(r'^(?P<post>\w+)/$', views.thread, name = 'thread'),
10 url(r'^(?P<post>\w+)/$', views.thread, name = 'thread'),
11 # /boards/tag/post/
11 # /boards/tag/post/
12 url(r'^(?P<tag>\w+)/post.html$', views.new_post,
12 url(r'^post.html$', views.new_post,
13 name='post'),
13 name='post'),
14 )
14 )
@@ -16,6 +16,8 b' def new_post(request):'
16
16
17 image = request.POST['image']
17 image = request.POST['image']
18
18
19 # TODO Get tags list, download image (if link is given)
20
19 post = Post.objects.create_post(title = title, text = text, image = image)
21 post = Post.objects.create_post(title = title, text = text, image = image)
20
22
21 # TODO Show the thread with a newly created post
23 # TODO Show the thread with a newly created post
General Comments 0
You need to be logged in to leave comments. Login now