Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7757117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:59:58+00:00 2026-06-01T12:59:58+00:00

I looked through the Django built-in Auth app and noticed that views are split

  • 0

I looked through the Django built-in Auth app and noticed that views are split in many like:

password_reset,
password_reset_confirm,
password_reset_done,
password_reset_complete

Here every simple action has a distinct view. Should all the apps be written like that or is it fine for one view to manage more URLs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:59:59+00:00Added an answer on June 1, 2026 at 12:59 pm

    The rule of thumb is that different URLs should be handled by different views.

    Prior to the introduction of class-based views in Django 1.3, this could lead to a mess if your view function tried to handle many cases. But now you can create class-based views which allow you to subclass existing views and reuse behaviour of those views.

    For example (for a site that has multiple games).

    class GameView(View):
    
        def game_method(self):
            # compute things here            
            return data
    
    class PuzzleGameView(GameView):
    
        def get(self, request, *args, **kwargs):
            data = self.game_method()
            # do other things here
            return HttpResponse("")
    
    class SudokuGameView(PuzzleGameView):
        pass
    
    class ActionGameView(GameView):
        pass
    

    Methods defined in GameView can be called and reused in subclasses.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I looked through some code and noticed that the convention was to turn pointer
I just looked at the implementation of password hashing in Django and noticed that
have looked through many posts here on SO, and haven't found any that address
I've looked through many of the existing threads about this error, but still no
I have certain documents that I want to limit access to through Django to
I looked through the related questions and couldn't find anything that addresses exactly what
Recently I've looked through several spell checker algorithms including simple ones(like Peter Norvig's )
I looked through the questions here but didn't find one that suited my case.
Looked through many answers, but couldn't find one solving this. I have four (potentially
I've looked through similar questions but I'm still a little perplexed about something that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.