Tagged Questions
0
votes
0answers
8 views
when redirecting getting an error malformed header
the other day i saw in stack overflow how to get redirected using a function..
but its not working here
#!/Python27/python
import cgi
import cgitb ; cgitb.enable()
import MySQLdb
from datetime import ...
0
votes
0answers
16 views
Python win32api doesn't work in Apache 2.2
I've got a problem printing.
I'm using the win32 API:
win32api.ShellExecute (0, "print", myfile, None, ".", 0)
This works just fine if I don't run Django through apache but when I use apache it ...
0
votes
2answers
24 views
Execute python script using urllib2 from PHP behind Proxy
I have a Python script that uses urllib2 to retrieve data from an external site.
I am on a corporate network that requires proxy authentication.
While on command line, I am able to export the proxy ...
0
votes
1answer
25 views
redirection from a python cgi page to another page without hyperlinks
I have the following problem. I have my script login.py
and two pages, login.html and welcome.html.
When I log in login.html with email-id and password, then login.py would extract exact user ...
1
vote
1answer
30 views
accessing a database from a python cgi
I configured the httpd file to run python scripts as given in a website. After the configuration I was amazed to see .py file getting executed when placed in the htdocs folder, but .cgi files are not ...
0
votes
1answer
23 views
HTML form action giving error on apache
I am a HTML and Apache newbie.
A part of my current project is to make a User Interface to take data from a user, and send it to a python program for processing.
I have started learning how to do ...
0
votes
2answers
25 views
Execute python script in localhost
I have downloaded and installed python on my PC. I am learning python at this moment so I am a beginner.
Is there anyway I could execute python scripts in localhost (Apache) and view them in a web ...
-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
18 views
How to install Shibboleth 2 SP on a django website?
This is the first time that I try to install an advanced authentication system to my website, i am a newbie in this field therefore I would like to ask for help.
I have chosen Shibboleth 2 SP as the ...
1
vote
0answers
32 views
WSGIScriptAlias & DjangoCMS url rewriting
I have a django cms site on my VM and a wordpress.
To go to the wordpress site : xx.xx.xx.xx/wordpress, this works fine, thanks to the alias.
To go to the djangoCMS site : xx.xx.xx.xx/djangocms
And ...
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
20 views
Why I dont have the result of my current script with Django-wsgi?
I made my first step using Django with the help of the tutorial but I didn't understand the result of my action.
When I modify my python scripts and refresh my page, it's like there is a cache who ...
0
votes
1answer
43 views
Hadoop Mapreduce: Is it possible to write mapper output to separate output files(not intermediate ones) without setting number of reducers to zero?
I need to anonymize GBs of data consisting of thousands of files. Doing this normally takes forever; hence, I plan to use an already installed pseudo-distributed Hadoop cluster on our server.
...
0
votes
0answers
22 views
How to profiler python cgi script cpu usage?
I have a python cgi script running under apache server, but top command show each cgi script cost 7% cpu usage?
Is there any tools or solution to check which cgi part cost high cpu usage?
Using ...
0
votes
2answers
48 views
Can't get Django admin to find static files (css, img, js) on Apache
I'm creating a Django development environment on my mac, and the admin is not finding the media files for styling. This is my settings.py file:
STATIC_ROOT = ...