Python is converting double quotes to single quotes in new variable
I feel silly asking this, because it seems so basic, but I'm having trouble finding a solution. Again, I apologize. I know there are no dumb questions, but I have a feeling this qualifies.

I'm trying to save a variable with double quotes in python, because I need to pass the double quoted JSON to a template and single quotes wont work with what I'm doing.  So I set the variable in python to:


    json = {
      "auth": {
        "key": "auth-code-here"
      },
      "template_id": "id-here",
      "redirect_url": "url-here",
    }

But immediate in python, it's saved as 

    {'redirect_url': 'url-here', 'template_id': 'id-here', 'auth': {'key': 'auth-code-here'}}

Is there a way I can save it as double quoted? Or will I need to process this in a django template to replace the single quotes for double quotes?

Thanks!
Python is converting double quotes to single quotes in new variable
===

I feel silly asking this, because it seems so basic, but I'm having trouble finding a solution. Again, I apologize. I know there are no dumb questions, but I have a feeling this qualifies.

I'm trying to save a variable with double quotes in python, because I need to pass the double quoted JSON to a template and single quotes wont work with what I'm doing.  So I set the variable in python to:


    json = {
      "auth": {
        "key": "auth-code-here"
      },
      "template_id": "id-here",
      "redirect_url": "url-here",
    }

But immediate in python, it's saved as 

    {'redirect_url': 'url-here', 'template_id': 'id-here', 'auth': {'key': 'auth-code-here'}}

Is there a way I can save it as double quoted? Or will I need to process this in a django template to replace the single quotes for double quotes?

Thanks!