Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def SignUpView(request):
- if request.method == 'POST':
- form = SignUp(request.POST)
- if form.is_valid():
- form.save()
- username = request.POST['username']
- mkdir(os.path.join('/home/urbanslug/media', username))
- return HttpResponseRedirect('/welcome/')
- else:
- form = SignUp()
- return render(request, 'signup.html', {'form':form,})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement