This forum is no longer active. Please post your questions to our new community site

mod_wsgi

Subscribe to mod_wsgi 7 post(s), 3 voice(s)

 
Avatar robslotboom 1 post

Will the next version of DjangoStack include mod_wsgi in stead of mod_python?

Cheers, Rob

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

We will try to release it tomorrow. The 1.1.1-2 version will ship the mod_wgsi 2.8 but it is not configured by default in the initial project.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

We have just released 1.1.1-2 version with mod_wgsi extension.

 
Avatar quadberry 5 post(s)

Was mod_wsgi included in the Windows version? I didn’t see the .so file in the Apache modules directory. Also, if I elected not to create a project when I installed DjangoStack am I then responsible for configuring Apache myself to run Django and any projects I create? Thanks for the stack, by the way.

Thanks, Tom

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

mod_wsgi is not included for Windows because the Django Stack ships Python 2.5 and there is no module available for this version on Windows (http://code.google.com/p/modwsgi/downloads/list). If you chose not to create a project, you should create the project manually running the django-admin.py tool and configuring the database. If I’m not wrong it is not necessary to configure Apache.

Cheers.

 
Avatar quadberry 5 post(s)

Thanks, Beltran, for the wsgi info.

I discovered that running django-admin.py to create a new project just sets up your initial site files. To configure Apache I had to go into the django.conf file, which DjangoStack references through an include in the httpd.conf file, and refactor what apparently was a generic location directive to make it specific to my site. I’m a rookie developer—the complexity of this stuff is daunting!—but I’ve managed to get my site working for the most part. My next battle is trying to get the PIL (Python Imaging Library) module installed and working. I did an easy_install pil from the command line, which seemed to work, but I can’t find any PIL files. And when I run manage.py syncdb it fails, telling me I need to install PIL if I want to use ImageField in my models. Any advice?

Thanks, Tom

 
Avatar quadberry 5 post(s)

Got PIL working…was a python path issue.

Thanks, Tom