1
vote
0answers
21 views

django-application in a sub-url

I've got a problem when deploying a django-application to an apache-Server. The site should be accessible via http://localhost/suburl/. I use a virtual environment. The (shortened) virtualhost looks ...
0
votes
1answer
23 views

Differentiate between Django dev server and apache

easy question: In my settings file, I want to set a constant depending on whether I am running from the dev server or Apache. Any elegant way of doing this? I am running with mod_wsgi
1
vote
1answer
24 views

How to reload new update in Django project with Apache, mod_wsgi?

I am making project using Django framework. I have hosted test server with Apache+mod_wsgi. When I change some lines of code and upload file and test it in browser. The new changes are not shown ...
-1
votes
2answers
47 views

Trying to run a python django website but Mod_wsgi is not working

I am trying to run a pyhton django project using apache2 and mod_wsgi on linux. It doesn't seem to be running any of the python code. When I enter the website's url (mysite.com on my server) in my ...
0
votes
0answers
36 views

Apache is killed frequently

Apache is killed frequently, so that Apache use a lot of memory. Look at the following python code : a = 0 for i in range(10000000): a=a+1 variables = Context({ ...
0
votes
1answer
31 views

Apache + WSGI: Address already in use: make_sock: could not bind to address

I get the following message when I try to start Apache2: * Restarting web server apache2 (98)Address already in use: make_sock: could not bind to ...
0
votes
1answer
50 views

How can I rebuild my mod_wsgi to use python 2.7.3?

I'm using mod_wsgi to serve up a django website, but I've got an internal server error. Here's the apache log: [Fri May 31 10:11:25 2013] [error] python_init: Python version mismatch, expected ...
0
votes
1answer
17 views

how do i place two apache virtualhosts with mod_wsgi and python in the httpd.conf?

im trying to get two apache virtual hosts working with mod_wsgi and python, i want to access the two sites in different folders: ie example.com/sh and example.com/th this is what i tried: ...
1
vote
1answer
47 views

using scipy in django with apache and mod_wsgi

I have defined a django view that uses scipy.optimize.curve_fit. This works without problems using the django development server, but when I deploy the Django application with Apache and mod_wsgi the ...
1
vote
1answer
28 views

Apache fails to start a Django App (mod_wsgi) on openSUSE 12.3

Apache fails to start a Django WEB Application using mod_wsgi and I am not able to figure out why. The error in starting of apache is this linux-ua6r:/etc/apache2/vhosts.d # /etc/init.d/apache2 ...
0
votes
1answer
55 views

Django on Apache - Prevent 504 Gateway Timeout

I have a Django server running on Apache via mod_wsgi. I have a massive background task, called via a API call, that searches emails in the background (generally takes a few hours) that is done in the ...
2
votes
3answers
51 views

Werkzeug response too slow

I have the following Werkzeug application for returning a file to the client: from werkzeug.wrappers import Request, Response @Request.application def application(request): fileObj = ...
0
votes
1answer
27 views

Forcing www on all URLs without htaccess

I have a complex setup wherein am having Django 3 sub-projects kind of thing hosted on single Apache via mod wsgi. I want to have www prepended on all addresses for one of these as some payment ...
1
vote
1answer
37 views

Django and WSGI: Error 500 again

Well, i get this 500 error again and again. Everything seemed to work for a few days but when i've tried to load website in browser now, it returned me 500. Apache logs aren't descriptive, all i can ...
0
votes
1answer
35 views

Double slash when 301ing from foo.com to www.foo.com with Django / Apache / mod_wsgi

We have a Django application running on Apache through mod_wsgi. Our main domain is foo.com (without www), but we want to manage also www requests redirecting them to the main with a 301. I've setup ...
0
votes
1answer
24 views

environment variables in virtualenv's postactivate using mod_wsgi

Hope you're well. I've added a couple of environment variables to my virtualenv postactivate file, for example: export DATABASE_USER="root" export DATABASE_PASSWORD="12345678" I then assign those ...
1
vote
2answers
33 views

Error 500 and other website's content

I have some small django projects working on the same server with apache and mod_wsgi. I installed another one project with virtualenvironment and set settings for it in Apache conf file: ...
0
votes
1answer
167 views

Django 1.5, Apache, wsgi.py - ImportError: Could not import settings

I have seen others post on this on StackOverflow (mainly for Django 1.4), but none of those provided a successful solution for me. I am unable to setup Django 1.5.1 correctly with Apache. I receive ...
0
votes
2answers
41 views

Multiple Django apps under same domain

I'm trying to set up two Django applications locally at subdirectories under the same domain, e.g.: http://127.0.0.1/en/ http://127.0.0.1/jp/ Here is a snippet of /etc/apache2/apache2.conf ...
0
votes
1answer
44 views

django 1.5 flips between “it worked” page display and error 500

Installed Django 1.5 python2.7 mod_wsgi and python-sql on a red hat 4 web server with apache 2. The "It worked" page keep flipping between the correct display and "internal server error" "500" The ...
0
votes
2answers
25 views

mod_wsgi: Global statements execute only when the file is modified

I'm using python over mod_wsgi and I have some statements (debug messages and other things) in the global part of the script (outside the application function). Those global statements are executed ...
-1
votes
2answers
56 views

How to pass a variable to a mysql query?

This one has no errors cursor.execute ("update `1` set `2`='aaa' where `1`='5'") This one has errors. cursor.execute ("update `1` set `2`=aaa where `1`='5'") The difference is, I am trying to ...
0
votes
0answers
49 views

Some websites not working: The requested URL was not found on this server [closed]

A few websites that I have deployed with mod_wsgi have stopped responding overnight, and I need to find out why and how to fix it. The same server has a few PHP websites, and those are fine. Some PHP ...
-1
votes
1answer
65 views

Python script ( mod_wsgi ) refuses to execute via apache, here is the error_log. [closed]

this is the code i run via apache. def application(environ, start_response): start_response('200 OK', [('content-type', 'text/html')]) return ['Hello world!'] import MySQLdb as mysql db = ...
0
votes
1answer
84 views

Python ( mod_wsgi ) script shows “ Internal Server Error ” via web, while via cli it seems to work okay

this is my first time using python. i am trying to connect to a mysql database with python through apache. i created a script named 'test4.wsgi' inside httpd.conf i have DocumentRoot "/0" ...
2
votes
1answer
50 views

random issues with python flask application on apache

I have an apache webserver which I have setup a website using flask using mod_wsgi. I am having a couple of issues which may or may not be related. With every call to a certain page (which runs a ...
0
votes
1answer
35 views

Using iRedMail with a django site on the same server

I am trying to create a small django site and use iRedMail for e-mail. I installed iRedMail first, and ensured that it worked. I could go to both www.domain.com/iredadmin and www.domain.com/mail and ...
1
vote
1answer
68 views

Flask + mod_wsgi: client denied by server configuration

I've been trying out quite a many things to the level of high frustration when trying to get Flask run with Apache + mod_wsgi. Basically I've done the following tutorials: ...
0
votes
1answer
55 views

htaccess rewrite incorrectly appending URL with mod_wsgi config file path

I'm currently in the process of migrating domains [old_domain] -> [new_domain]. The problem arose when I came to the htaccess rules and the config file in /etc/httpd/conf/httpd.conf: httpd.conf ...
0
votes
1answer
22 views

installing mod_wsgi: missing architecture file

I am installing mod_wsgi for python3.3.1 on Mac. I saw this warning and am quite stumped even after looking through the installing documentation. ./configure --with-apxs=/usr/sbin/apxs ...

1 2 3 4 5 19
15 30 50 per page