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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:48:36+00:00 2026-05-25T21:48:36+00:00

I am trying to Redirect to the post’s page soon as it’s saved ,

  • 0

I am trying to Redirect to the post’s page soon as it’s saved , well it’s saved but the redirection won’t work , it’s working very fine on the development server .. not in the production one .

I tried :

            return HttpResponseRedirect(reverse('emr.main.views.viewprofile', args=(profile.id,)))

Well it’s working fine but, in production host i have to change emr.main.view.viewprofile to myproject.main.views.viewprofile ! because viewprofile itself it’s not working

then i got template syntax error :

TemplateSyntaxError Exception Value: Caught NoReverseMatch while
rendering: Reverse for ‘main.views.add_record’ with arguments
‘(47L,)’ and keyword arguments ‘{}’ not found.

main.view.add_comment which is a url tag
Add record

how to solve this issue ?

url.py

    (r'^add/record/(?P<patient_id>\d+)/?$', add_record),
(r'^add/current/(?P<patient_id>\d+)/?$', add_current),

Edit :

The main issues are :

  1. Naming the APP/views needs to rename all the files to fix this for development instead of emr.main.views.add_records to myproject.main.views.. since function itself is not working
  2. URL tags such as {% url main.views.add_record profile.id %} still returning errors ..
  • 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-25T21:48:36+00:00Added an answer on May 25, 2026 at 9:48 pm

    You are passing a tuple to reverse() whereas the function expects a list.

    Try args=[profile.id] instead.

    However, it’s difficult to answer this properly without seeing the function definition (or at least signature) for the viewprofile() function.

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

Sidebar

Related Questions

I am trying to post to my facebook page wall using curl but i
I'm trying to redirect users that login to their profile page but get the
I'm trying to redirect to a .php page if the $validForm variable is TRUE.
I'm trying to redirect, but it doesn't include all the parameters in the url
I'm trying to redirect people to the page they came from after they login.
I'm trying to redirect the user if they login successfully but the code I
PHP Redirect with Post Data Hi, I am a newbie PHP programmer and trying
I am trying to redirect user to show_city_url or show_city_path but i get an
I'm trying to make the page redirect to the same page to avoid resending
i'm trying to make post to an external url using curl, the externa page

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.