Captcha not appearing when project is hosted via Apache +
Closed this issue · 7 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1.Adding a CaptchaField() to a form and hosting that form on Apache+nginx
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by darrenma...@gmail.com
on 20 Dec 2010 at 9:08
GoogleCodeExporter commented
There is no edit or delete option so I'll continue with the details here.
What steps will reproduce the problem?
1.Adding a CaptchaField() to a form and hosting that form on Apache+nginx
What is the expected output? What do you see instead?
I can't see the captcha image on the live server but can see it when I use
runserver on my local machine.
What version of the product are you using? On what operating system?
I'm using django-simple-captcha-0.2.0.zip.
Python 2.6.6-2
PIL 1.1.7-2
Please provide any additional information below.
I've attached a screenshot showing what the form looks like when I use
runserver. I then have attached one showing what it looks like via the live
site. The projects are identical.
Original comment by darrenma...@gmail.com
on 20 Dec 2010 at 9:12
Attachments:
GoogleCodeExporter commented
I have projects running on that exact configuration and everything works fine
here.
Please make sure that
a) The URL of the captcha image (by default /captcha/image/) isn't served by
Nginx (as a static media, that is)
b) The live server has all the correct libraries and dependencies (ssh into the
live server, cd to the project dir and run "./manage.py test captcha")
Original comment by mbonetti
on 9 Feb 2011 at 3:12
GoogleCodeExporter commented
yeh i went and ran the tests and it said everything was ok. so strange. nothing
renders on the form that i have put captcha. i can see when i view source. so
strange. oh well.
Original comment by darrenma...@gmail.com
on 12 Feb 2011 at 4:33
GoogleCodeExporter commented
Okay, next test: try temporarily activating DEBUG in your settings file and
restart apache, then point your browser to the url of a valid captcha image
(i.e. /captcha/image/<hash-code>/).
If there is an error somewhere, you should see a nice Django HTTP 500 error
dump.
Make sure you turn off DEBUG afterwards.
Original comment by mbonetti
on 12 Feb 2011 at 5:14
GoogleCodeExporter commented
I just get a 404 error. This shows that there is nothing wrong with the
simple-captcha code I guess. Definitly something which is not loaded and needed
on the server.
I've reinstalled PIL and got libfreetype6. Anything else I might be missing?
Original comment by darrenma...@gmail.com
on 12 Feb 2011 at 6:13
GoogleCodeExporter commented
my problem is fixed. i redeployed the entire project. thanks anyways.
Original comment by darrenma...@gmail.com
on 16 Feb 2011 at 7:58
GoogleCodeExporter commented
Cheers, closing this, then.
Original comment by mbonetti
on 16 Feb 2011 at 3:45
- Changed state: Invalid