Re: drupal and django being friends

2010-07-02 Thread CLIFFORD ILKAY

On 07/02/2010 01:23 PM, garagefan wrote:

thanks. so the simple answer is... "tough luck"

perhaps i can set up the django app under a different domain name and
merely set up domain masking.


The answer isn't necessarily "tough luck". It *is* possible to use 
mod_python and mod_php on the same server. It really depends on the 
distro. Having said that, there is really no reason to use mod_python 
any more. If you're going to use Apache, mod_wsgi is the preferred 
option. The challenge you're going to have isn't with getting mod_wsgi 
and mod_php to cooperate. It's getting the mod_rewrite expressions 
right. You have to understand what is being done in the Drupal-supplied 
.htaccess file and make sure that the rules don't overlap with what you 
want to do in Django. Here is what I see in Drupal's .htaccess file:


# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

You'll need to modify that appropriately to accommodate the URL 
namespace of your Django app or Drupal will just intercept the request 
and show a 404 page.

--
Regards,

Clifford Ilkay
Dinamis
1419-3266 Yonge St.
Toronto, ON
Canada  M4N 3P6


+1 416-410-3326

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: drupal and django being friends

2010-07-02 Thread Bill Freeman
I suspect that you can do what you want with mod_rewrite, but
there is a learning curve.

Bill

On Fri, Jul 2, 2010 at 11:39 AM, garagefan  wrote:
> So i realize this isn't a specific django question but more of a
> python question and setting up the config file for the server.
>
> I know how to set up domains, and the handler and all that for a
> django site.
>
> But i've got a drupal site that i'm "attaching" a django gallery
> too... and in fact slowly converting the site over to django as time
> permits, this gallery being the first part.
>
> I was under the assumption that placing SetHandler None at the base
> url  would result in the entire site being handled
> normally and there wouldn't be an issue... however this only worked
> for the home page. so then i went a long and placed the same code for
> the 7 other urls, since they were returning "not found"... this didn't
> change a thing.
>
> so basically... i need my python.conf file to allow apache to handle
> the entire site except for a specific url normally (ie allowing drupal
> to run)
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



RE: Re: drupal and django being friends

2010-07-02 Thread Henrik Genssen
you may try wsgi instead of mod_python...

>reply to message:
>date: 02.07.2010 12:23:26
>from: "garagefan" <monkeygar...@gmail.com>
>to: "Django users" <django-users@googlegroups.com>
>subject: Re: drupal and django being friends
>
>thanks. so the simple answer is... "tough luck"
>
>perhaps i can set up the django app under a different domain name and
>merely set up domain masking.
>
>On Jul 2, 1:15 pm, "Henrik Genssen" <henrik.gens...@miadi.net> wrote:
>> Hi,
>>
>> be sure not to use mod_python and mod_php as stated 
>> here:http://docs.djangoproject.com/en/dev/howto/deployment/modpython/?from...
>>
>>
>>
>> >reply to message:
>> >date: 02.07.2010 10:39:26
>> >from: "garagefan" <monkeygar...@gmail.com>
>> >to: "Django users" <django-users@googlegroups.com>
>> >subject: drupal and django being friends
>>
>> >So i realize this isn't a specific django question but more of a
>> >python question and setting up the config file for the server.
>>
>> >I know how to set up domains, and the handler and all that for a
>> >django site.
>>
>> >But i've got a drupal site that i'm "attaching" a django gallery
>> >too... and in fact slowly converting the site over to django as time
>> >permits, this gallery being the first part.
>>
>> >I was under the assumption that placing SetHandler None at the base
>> >url  would result in the entire site being handled
>> >normally and there wouldn't be an issue... however this only worked
>> >for the home page. so then i went a long and placed the same code for
>> >the 7 other urls, since they were returning "not found"... this didn't
>> >change a thing.
>>
>> >so basically... i need my python.conf file to allow apache to handle
>> >the entire site except for a specific url normally (ie allowing drupal
>> >to run)
>>
>> >--
>> >You received this message because you are subscribed to the Google Groups 
>> >"Django users" group.
>> >To post to this group, send email to django-us...@googlegroups.com.
>> >To unsubscribe from this group, send email to 
>> >django-users+unsubscr...@googlegroups.com.
>> >For more options, visit this group 
>> >athttp://groups.google.com/group/django-users?hl=en.
>
>-- 
>You received this message because you are subscribed to the Google Groups 
>"Django users" group.
>To post to this group, send email to django-us...@googlegroups.com.
>To unsubscribe from this group, send email to 
>django-users+unsubscr...@googlegroups.com.
>For more options, visit this group at 
>http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: drupal and django being friends

2010-07-02 Thread garagefan
thanks. so the simple answer is... "tough luck"

perhaps i can set up the django app under a different domain name and
merely set up domain masking.

On Jul 2, 1:15 pm, "Henrik Genssen" <henrik.gens...@miadi.net> wrote:
> Hi,
>
> be sure not to use mod_python and mod_php as stated 
> here:http://docs.djangoproject.com/en/dev/howto/deployment/modpython/?from...
>
>
>
> >reply to message:
> >date: 02.07.2010 10:39:26
> >from: "garagefan" <monkeygar...@gmail.com>
> >to: "Django users" <django-users@googlegroups.com>
> >subject: drupal and django being friends
>
> >So i realize this isn't a specific django question but more of a
> >python question and setting up the config file for the server.
>
> >I know how to set up domains, and the handler and all that for a
> >django site.
>
> >But i've got a drupal site that i'm "attaching" a django gallery
> >too... and in fact slowly converting the site over to django as time
> >permits, this gallery being the first part.
>
> >I was under the assumption that placing SetHandler None at the base
> >url  would result in the entire site being handled
> >normally and there wouldn't be an issue... however this only worked
> >for the home page. so then i went a long and placed the same code for
> >the 7 other urls, since they were returning "not found"... this didn't
> >change a thing.
>
> >so basically... i need my python.conf file to allow apache to handle
> >the entire site except for a specific url normally (ie allowing drupal
> >to run)
>
> >--
> >You received this message because you are subscribed to the Google Groups 
> >"Django users" group.
> >To post to this group, send email to django-us...@googlegroups.com.
> >To unsubscribe from this group, send email to 
> >django-users+unsubscr...@googlegroups.com.
> >For more options, visit this group 
> >athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



RE: drupal and django being friends

2010-07-02 Thread Henrik Genssen
Hi,

be sure not to use mod_python and mod_php as stated here:
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/?from=olddocs


>reply to message:
>date: 02.07.2010 10:39:26
>from: "garagefan" <monkeygar...@gmail.com>
>to: "Django users" <django-users@googlegroups.com>
>subject: drupal and django being friends
>
>So i realize this isn't a specific django question but more of a
>python question and setting up the config file for the server.
>
>I know how to set up domains, and the handler and all that for a
>django site.
>
>But i've got a drupal site that i'm "attaching" a django gallery
>too... and in fact slowly converting the site over to django as time
>permits, this gallery being the first part.
>
>I was under the assumption that placing SetHandler None at the base
>url  would result in the entire site being handled
>normally and there wouldn't be an issue... however this only worked
>for the home page. so then i went a long and placed the same code for
>the 7 other urls, since they were returning "not found"... this didn't
>change a thing.
>
>so basically... i need my python.conf file to allow apache to handle
>the entire site except for a specific url normally (ie allowing drupal
>to run)
>
>-- 
>You received this message because you are subscribed to the Google Groups 
>"Django users" group.
>To post to this group, send email to django-us...@googlegroups.com.
>To unsubscribe from this group, send email to 
>django-users+unsubscr...@googlegroups.com.
>For more options, visit this group at 
>http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.