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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:40:56+00:00 2026-06-10T15:40:56+00:00

This question is really a follow on to this question In python how can

  • 0

This question is really a follow on to this question

In python how can I make an html alert template know where it came from so it will return there, without making a different template for each exception?


I was thinking too much about the javascript “alert” which initiates in the html template, not in the python code. My “alert” starts in the python code itself, so I can just pass a “hidden” variable value to the template which tells where to return and capture that “hidden” value with the “def post” part of the python code.

No, this is still not quite complete. Do I have to import and use that urllib stuff, also?

  • 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-10T15:40:58+00:00Added an answer on June 10, 2026 at 3:40 pm

    It’s not remotely bulletproof, but checking the HTTP Referer header sounds sufficient for your needs. If you want more control over the return URL, you can simply pass it around a query parameter instead. Just make sure to percent-encode it.

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

Sidebar

Related Questions

This is really a follow-up from this question , as I think I've solved
This is really a follow on question to a previous one , where I
I know this question is not really important.. however I've been wondering: Which of
OK, this question is actually a follow-up question from my previous one: What would
This is a follow up question of this question , which is not really
As a follow-up to this question: Is a bad practice to Return different types
This question is really basic. What is the performance difference between removing a UIView
I think this question is really about my understanding of Garbage collection and variable
After ages of programming in php this question seems really weird still to me.
I'm definitive new on Dynamic CRM 2011, so maybe this question is really easy.

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.