Skip to content

Create basic login and registration using django #1

@that-ar-guy

Description

@that-ar-guy

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

  1. Create basic HTML templates for login and registration.
  2. Implement Django views to handle login and registration logic:
    • Use Django's built-in authentication system.
    • Ensure proper validation for email and password fields.
  3. Add success and error messages for login and registration attempts.
  4. Use Django’s @login_required decorator to secure any test/protected pages after login.
  5. Configure URLs:
    • /login/ for the login page.
    • /register/ for the registration page.
  6. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions