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

  • SEARCH
  • Home
  • 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 663861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:32:09+00:00 2026-05-13T23:32:09+00:00

The first two paragraphs of this page explain that generic views are supposed to

  • 0

The first two paragraphs of this page explain that generic views are supposed to make my life easier, less monotonous, and make me more attractive to women (I made up that last one):

https://docs.djangoproject.com/en/1.4/topics/generic-views/

I’m all for improving my life, but what do generic views actually do? It seems like lots of buzzwords are being thrown around, which confuse more than they explain.

Are generic views similar to scaffolding in Ruby on Rails? The last bullet point in the intro seems to indicate this. Is that an accurate statement?

  • 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-05-13T23:32:09+00:00Added an answer on May 13, 2026 at 11:32 pm

    Django generic views are just view functions (regular old python functions) that do things that are very common in web applications.

    Depending on the type of app you are building, they can save you from writing a lot of very simple views.

    For example, the direct_to_template generic view simply renders a template with the RequestContext (which means the template has access to information on the request, like the current user, etc).

    As a simple example, you can go from writing things like this:

    # urls.py
    url('^some-url/$', some_view)
    
    # views.py
    def some_view(request):
        return render_to_response('template_name.html', context_instance=RequestContext(request))
    

    To just this:

    # urls.py
    url('^some-url/$', direct_to_template, {'template': 'template_name.html'})
    
    # views.py doesn't need any code for this view anymore
    

    There are also more complicated generic views for common actions such as “showing a list of models”, or “adding a model to the db”.

    Also, because generic views are just functions, you can call them within your own view functions to do “most of the work”, when you need something that is a bit different from the generic cases.

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

Sidebar

Related Questions

(Feel free to skip the first two paragraphs :) I know this goes against
I am trying to grab all the td elements between the first two that
I'm running a query that is timing out for first two times and returning
I have two paragraphs. I want to replace ONLY first occurrence of a specific
freeze the first two column but if I want to freeze the column dynamically
Is there anyways to get first two element of each profile_id using php array(
Is it possible to take only the first two lines from a wrapped text
How do I select all but the first two rows from e.g. the mtcars
What will be the regular expression to accept 'CP123' First two letters CP and
I'm trying to use Unix cut to remove the first two fields per line.

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.