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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:07:43+00:00 2026-05-26T20:07:43+00:00

Hi Stackoverflow people, I am using the Userena package for my user registration site.

  • 0

Hi Stackoverflow people,

I am using the Userena package for my user registration site. The package allows to change the template or the form class during with the call of the views.py function “def profile_edit” (if I understood it correctly).

The full header of the view function is:

def profile_edit(request, username, edit_profile_form=EditUserProfileForm,
             template_name='userena/profile_form.html', success_url=None,
             extra_context=None):

The demo project calls the view function in the template through the urls.py with the statement

{% url userena_profile_edit user.username %}

When I try to change the form parameter for example with

{% url userena_profile_edit user.username edit_profile_form=EditUserProfileForm %}

I get the follow error, which does not make sense to me:

Caught ValueError while rendering: Don't mix *args and **kwargs in call to reverse()!

I have also tried to the specify the kwargs dict, but it did not work either.

{% url userena_profile_edit user.username kwargs={'edit_profile_form':EditUserProfileForm} %}

How can I correctly call the function? I am confused why the last statement would not work.

Thank you for your help!

  • 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-26T20:07:44+00:00Added an answer on May 26, 2026 at 8:07 pm

    how about making the username a kwarg?

    {% url userena_profile_edit username=user.username edit_profile_form=EditUserProfileForm %}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi people stackoverflow. I'm working with MVVM, I have ViewModel call UserViewModel with a
Hello again Stackoverflow people! Assume I have these words: smartphones, smartphone I want to
With the help of people on stackoverflow I was able to get the following
StackOverflow user jolson had a very nice piece of code that exemplifies how one
Stackoverflow User Luke wrote in this answer : The boundaries between desktop and web
Stackoverflow: For a cs assigment I am using the following code to stream audio.
Hi Stackoverflow people, In the past, I always developed my Django projects locally with
Content people have been using Word and pasting things into the old unicode system.
Hi again people of stackoverflow. I have a routine that has a step that
I am wondering what experiences people are having using the ASP.NET MVC Framework? In

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.