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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:40:35+00:00 2026-06-15T01:40:35+00:00

I am editing the existing project and i am new in django. This is

  • 0

I am editing the existing project and i am new in django.
This is written in url file

url(r'^test/$', views.MyUpdate.as_view(model=models.User,
        form_class=forms.UserForm), name='user_update'),

Now i want to know that how can i access those variables in my view

  • 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-15T01:40:36+00:00Added an answer on June 15, 2026 at 1:40 am

    https://docs.djangoproject.com/en/dev/topics/class-based-views/

    Any arguments passed to as_view() will override attributes set on the class.
    

    Class atrributes of UpdateView

    http://ccbv.co.uk/projects/Django/1.4/django.views.generic.edit/UpdateView/

    form_class = None   
    http_method_names = ['get', 'post', 'put', 'delete', 'head', 'options', 'trace']
    initial = {}    
    model = None
    

    Basically you are overriding those attributes , hence they get filled automatically

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

Sidebar

Related Questions

When starting out a new project, there are lot of changes in models that
Is it possible to add new stuff to the classpath (e.g. editing project.clj and
I've got an existing Hudson project that is configured and working. I need to
I'm looking at using WMD in my project instead of my existing RadEditor. I
In my current project there is a Form class which looks like this: public
I'm starting a new project in Rails, and it looks like the application.js manifest
my app has three buttons that each create a new intent like this: Button
So I put this project aside a few weeks ago and it worked perfectly.
I am currently starting a new ASP.NET MVC Project at work where we need
I'm using Prototype in my Rails project to do in-place editing (via Ajax.InPlaceEditor) of

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.