David,
A while ago I had a serialization error that may be relevant to your
situation. Parts of the request object related to mod_wsgi were not
serializable. Below is how I handled it (this is a views.py def).
-Birkin
[start]
def variables( request, SSL=None ):
from django.utils import
You are somehow trying to pickle the WSGI environ dictionary, possibly
due to trying to pickle the Django request object. You cannot do that.
Graham
On Feb 14, 2:04 pm, DavidMck wrote:
> I've given up. There seems to be an issue with pickling some objects
> when you're using
I've given up. There seems to be an issue with pickling some objects
when you're using mod_wsgi - rather than using xlrd, I just attempted
to add the uploaded file (small file held in memory) to the session
data. The error log was essentially the same, but complaining about an
attempt to pickle a
Hmm:
My relevant codes seems to be:
@login_required
def upload(request):
if request.method == "POST":
form = ExcelUploadForm(request.POST, request.FILES)
if form.is_valid():
request.session['sheet'] = form.cleaned_data["excelfile"]
If I put something boring into
Alo!
Written an app, works fine on dev server, gives a 500 Internal Server
Error with apache + mod_wsgi. It's a form to upload an excel file -
the file is uploaded, verified (using xlrd) and then one of the excel
sheets is saved as session data.
Redirect to a "view" page which retrieves the
5 matches
Mail list logo