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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:56:26+00:00 2026-06-15T05:56:26+00:00

I have a Web app written in Python+Django. On my machine, it works fine;

  • 0

I have a Web app written in Python+Django. On my machine, it works fine; as soon as I push it into production, it starts acting up.

For some reason, my login screen loads fine. But, as soon as I try to log in, I get the homepage either as a download (if I turn gzip middleware on), or as a plain text page containing the response.

My production server runs Python 2.6.8, and my Django version is 1.4.1-final. I don’t have access to mod_wsgi, so I use CGI instead. Here’s my .htaccess and FCGI script. It’s really just a cheap shared hosting plan, but I have another Django site there that works fine.

  • 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-15T05:56:27+00:00Added an answer on June 15, 2026 at 5:56 am

    It seems unlikely, but setting a different content_type in your response can make this happen sometimes, e.g.

    response = HttpResponse(my_data, content_type=’application/vnd.ms-excel’)
    response[‘Content-Disposition’] = ‘attachment; filename=”foo.xls”‘

    (Django Docs)

    Can you link a line or two of your response call?

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

Sidebar

Related Questions

I have a written an app, with python acting as a simple web server
We have a finished web app written in HTML+JS. It works fine with Chrome's
Imagine you have a web application written in Django and Python 2.65, and MySQL
I'm running into a (hopefully) small issue. I have a web app written in
I have an almost complete simple web app written as a Python CGI script.
I have written a Django app that makes use of Python threading to create
We have an old web app written in classic ASP. We don't have the
I have a legacy intranet web app that was written for IE7 and contains
I have a web app that runs fine in Visual web developer. But when
I have a web app written with C# to run in an ASP.NET environment.

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.