else:
# Otherwise a wsgi_request is sent to the PI
if 'join' in wsgi_request.POST:
create_pending_join(wsgi_request, post)
else:
create_pending_project(wsgi_request, post)
else:
# Otherwise a wsgi_request is sent to the PI
if 'join' in wsgi_request.POST:
create_pending_join(wsgi_request, post)
else:
create_pending_project(wsgi_request, post)