Description
Develop basic login and registration pages for the Django project. These pages should focus solely on functionality, with minimal or no attention to UI/UX design. The frontend will be redesigned later using React.js if time permits.
Requirements
- Create basic HTML templates for login and registration.
- Implement Django views to handle login and registration logic:
- Use Django's built-in authentication system.
- Ensure proper validation for email and password fields.
- Add success and error messages for login and registration attempts.
- Use Django’s
@login_required decorator to secure any test/protected pages after login.
- Configure URLs:
/login/ for the login page.
/register/ for the registration page.
- Focus only on core functionality— minimum JavaScript or advanced styling required.
Acceptance Criteria
- Users can register with their email and password.
- Registered users can log in and be redirected to a placeholder "home" page.
- Unauthenticated users trying to access protected pages are redirected to the login page.
- Appropriate error messages are displayed for invalid login or registration attempts (e.g., invalid email, existing user, weak password).
Additional Notes
- UI design will be handled later using React.js. Keep templates simple for now.
- A plain Django template with basic Bootstrap or no styling at all is acceptable.
Description
Develop basic login and registration pages for the Django project. These pages should focus solely on functionality, with minimal or no attention to UI/UX design. The frontend will be redesigned later using React.js if time permits.
Requirements
@login_requireddecorator to secure any test/protected pages after login./login/for the login page./register/for the registration page.Acceptance Criteria
Additional Notes