Django + mod_wsgi url rewriting issue

2012-09-18 Thread Sebastiaan Snoeckx
Hello list I used mod_wsgi to setup my site to rewrite urls according to but now my app doesn't seem to follow its urlconf anymore. Every single request to the wsgi application just returns my default (index) view. example.com/, example.com/a/, example.com/foo/ba

Re: Django + mod_wsgi url rewriting issue

2012-09-20 Thread Sebastiaan Snoeckx
> I use something like that... i mean, for example if /foo/bar must to > execute with django the url must to be example.com/site.wsgi/foo/bar > (continue with the example of serverfault)... if you follow > example.com/foo/bar apache use your statics files. > > (this part of my production virt

non-root SCRIPT_NAME, mod_wsgi and RewriteRule

2012-09-30 Thread Sebastiaan Snoeckx
I have my Django website and my static files deployed under the same directory (i.e. no separate 'static' directory), according to the following Apache RewriteRule: RewriteEngine on RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROOT}%{REQUEST

Re: non-root SCRIPT_NAME, mod_wsgi and RewriteRule

2012-10-05 Thread Sebastiaan Snoeckx
> I have my Django website and my static files deployed under the same >> directory (i.e. no separate 'static' directory), according to the following >> Apache RewriteRule: >> >> RewriteEngine on >> RewriteCond %{DOCUMENT_ROOT}%{REQUEST_**FILENAME} !-d >> RewriteCond %{D