Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/o/p/OpenRelay-HEAD/apps/server_talk/views.py   OpenRelay(Download)
 
from server_talk.models import LocalNode, Sibling, NetworkResourceVersion
from server_talk.forms import JoinForm
from server_talk.api import RemoteCall
from server_talk.conf.settings import PORT, IPADDRESS
def join(request):
    if request.method == 'POST':
        form = JoinForm(request.POST)
        if form.is_valid():
            try:
                return HttpResponseRedirect(reverse('join'))
    else:
        form = JoinForm()
 
    return render_to_response('generic_form.html', {