Login page is rendering fine but not other app pages in django hosted web application (But all are working fine locally)
urls.py(root-app(login))
from django.urls import path
from . import views
urlpatterns = [
path('', views.de_login, name="de-login"),
]
urls.py(app-user)
from django.urls import path
from . import views
urlpatterns = [
path('de_User', views.de_User, name="Home"),
path('valuation', views.valuation, name="Valuation"),
]
urls.py (Project)
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('de_Admin.urls')),
path('', include('de_Login.urls')),
path('', include('de_User.urls')),
]
login.html
<form action="{% url 'de-login' %}" method="post">
{{ form }}
{% csrf_token %}
<div class="form-floating mb-3">
<input class="form-control" name="user_name" type="text" placeholder="User Name" />
<label for="username">User Name</label>
</div>
<div class="form-floating mb-3">
<input class="form-control" id="inputPassword" type="password" placeholder="Password" />
<label for="inputPassword">Password</label>
</div>
<div class="row col-md-12 mt-4" style="background:#e4dbdb;padding:10px;margin-left:1px;border-radius:8px;" >
<div class="col-md-8">
Face Recognition
</div>
<div class="col-md-4" style="">
<img src="{% static 'assets/img/fr.png' %}" style="hight:20%;width:45%;border:solid 1px #ccc;" >
</div>
</div>
<div class="d-flex align-items-center justify-content-between mt-4 mb-0">
<a class="small" href="#">Forgot Password?</a>
<a class="btn btn-primary col-md-4" type="submit" href="{% url 'qa-creation' %}">Admin</a>
<a class="btn btn-secondary col-md-4" href="{% url 'Home' %}">User</a>
</div>
</form>
I am trying to redirect the page from Admin and User button initially with no form actions. But this redirect to page not found