views.py
def post_share(request, post_id): posts = get_object_or_404(Post,id=post_id) sent = False if request.method == \'POST\': form =