Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Mod Python #5

Closed
timothyrowan opened this issue Jan 23, 2012 · 6 comments
Closed

Mod Python #5

timothyrowan opened this issue Jan 23, 2012 · 6 comments

Comments

@timothyrowan
Copy link

Works amazing running the dev server, however when I try to add it to my httpd.conf and run it with mod python, i get an import settings error. Any help?

 <Directory "/Library/WebServer/Documents/pictureupload">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE pictureupload.settings
    PythonDebug On
    PythonOption django.root /pictureupload/upload/new
</Directory>
@timothyrowan
Copy link
Author

alright so figured that out myself now im getting an ImproperlyConfigured error, any ideas? MySQL-python works fine in the dev environment

@sigurdga
Copy link
Owner

Please also post your solution, so other people can benefit from it.

About your ImproperyConfigured error, it needs more information for anyone to help you out. That exception is too generic to make start guessing.

I haven't been using mod_python for the last ten years, so I'm not the best one to help you.

@timothyrowan
Copy link
Author

ahhh yes, i am a total newbie on this. i see how depreciated mod_python is, i just installed mod_wsgi and tested it with a simple python app, how would you recommend implementing this plugin with mod_wsgi. Thank you!

@timothyrowan
Copy link
Author

update: I had a bunch of MySQL-python errors. Got them solved. Got WSGI working partially, Am having trouble figuring out how to get it to see upload/new. Again I am super new at this. Thanks again.

@timothyrowan
Copy link
Author

all had to do with python path, all good, working great, thanks for a great app

@sigurdga
Copy link
Owner

Thank you for your updates. And great that it all worked out!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants