Kaynağa Gözat

Fixed registration

1Mike21 1 yıl önce
ebeveyn
işleme
3d4d604049
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      templates/webservice_running/registration.html
  2. 1 1
      views.py

+ 1 - 1
templates/webservice_running/registration.html

@@ -6,7 +6,7 @@
     <div class="form-signin" style="width: 100%; max-width:330px; margin: auto; display:block;">
         <form class="m-2 p-2" method="post">
             <img class="mb-4" src="{% static 'SharixAdmin/img/logo.svg' %}" alt="" width="72" >
-            <h1 class="h3 mb-3 fw-normal">Sign in</h1>
+            <h1 class="h3 mb-3 fw-normal">Sign up</h1>
             {% csrf_token %}
             
             {% for item in form %}

+ 1 - 1
views.py

@@ -20,7 +20,7 @@ def registration(request):
     if request.method == 'POST':
       form = RegisterUserForm(request.POST)
       if form.is_valid():
-        return redirect('SharixAdmin/accounts/login/')
+        return redirect('accounts/login/')
     else:
        form = RegisterUserForm()
     return render(request, 'webservice_running/registration.html', {'form': form})