How can i properly change the assigned secret key in a Django Web Application
So, to answer my own question, changing the assigned key is done the same way you'd change any other variable. Just create a 50 character (ideally random) string and set SECRET_KEY equal to it.
SECRET_KEY = "#$%&N(ASFGAD^*(%326n26835625BEWSRTSER&^@T#%$Bwertb"
Then restart the web application.
My problem was completely unrelated. It occurred because I set the path python uses to locate packages to a weird location. Sorry about that guys.
So, I'm trying to deploy a Django Web App to production, but I want to change the secret key before doing so.
I've attempted to generate a new key using a randomizing function and insert that new key in place of the old one. When I do so, I get an error that says the following:

AttributeError 'module' object has no attribute 'JSONEncoder' ...
  Exception Location .../django/contrib/messages/storage/cookie.py in
  , line 9

I've deleted the browser cache and restarted the server, but the error persists.
I've also attempted to change the key back, after deleting the browser cache and restarting, the error still persists.
Any idea how to resolve this issue?
Edit: Python version is 2.6.6 and Django version is 1.3.1