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 8488831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:39:30+00:00 2026-06-10T21:39:30+00:00

What is the difference in functionality between from django.utils.functional import wraps and from functools

  • 0

What is the difference in functionality between from django.utils.functional import wraps and from functools import wraps?

i m using django 1.3 and python 2.4.i want to remove sensitive information from post data but django.views.decorators.debug is available only in django 1.4.So i copy the source code and put in my project from https://bitbucket.org/orzel/django-1.4-production/src/507b10c2c0e3/django/views/decorators/debug.py. but this decorator uses functools which is not available in python 2.4.so i use django.utils.functional import wraps instead of from functools import wraps.But still the sensitive info appear in error mail? any suggestions?

  • 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-10T21:39:32+00:00Added an answer on June 10, 2026 at 9:39 pm

    I don’t think there is a difference. It is probably a backport for older Python versions which don’t support functools.wraps.

    Edit

    Actually since latest Django does not support any Python version anymore which does not support functools I think its just left there for possible dependency issues (in Django or in Django projects). It is actually even importing functools.wraps directly now: http://code.djangoproject.com/svn/django/trunk/django/utils/functional.py

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

Sidebar

Related Questions

What is the difference in functionality between StreamWriter.Flush() and StreamWriter.Close() ? When my data
What's the difference between the two? They seem to have the same functionality at
I have a simple blog application written in Python, using Django. I use Git
What's the difference between save(false) and save(:validate => false) ? From what I can
In WCF, what is the difference between a Behaviour and a Contract ? From
Are there any differences in functionality between these two JavaScript module patterns? var MODULE
OO Design question. I want to inherit singleton functionality into different hierarchies of classes.
Possible Duplicate: difference between throw and throw new Exception() I'm a programmer working on
Please Note: This question is about the difference in terminology between the words destructor
I seem to get different results when using the TimeSpan functionality in C# against

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.