|
|
| Author |
Message |
|
| Guest |
Posted: Mon Dec 21, 2009 2:27 am |
|
|
|
Guest
|
Hello,
I downloaded the yaws-1.86 tarball
I souced the original ubuntu package and overwritten the debian/ directory
I checked the patches from debian/ubuntu against this version and
updated those, I should have downloaded the sid source and maybe it
whould have been quicker but I don't have a debian platform...
I compiled and repackaged ( dpkg-buildpackage -rfakeroot -us) and
everything went fine.
Installed, tested with static files, working
I followed http://wiki.github.com/klacke/yaws/run-django-under-yaws
Now I see the main page but no links of my django project works...
I've try to run django normally ( runserver not fcgi ) and everything
works fine but with yaws.
When I try to serve django as fcgi with yaws I only see my main view/url
( the index for the non django users ) and nothing else, anything else
than static media files redirect me to my main view/url
I fired up yaws with -i --conf /etc/yaws/yaws.conf and in the shell I see:
yaws:Failed to send 3174 bytes:
"C5F\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 ....." on socket
#Port<0.796>: {error,
closed}
["C5F","\r\n","#Bin(3167)","\r\n"]
It's like that the django dispatcher does not interact with yaws...
Is anyone else running django with yaws?
Thank you all very much for your time.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Dec 21, 2009 2:50 am |
|
|
|
Guest
|
I'll answer myself,
http://docs.djangoproject.com/en/dev/ref/settings/#force-script-name
FORCE_SCRIPT_NAME = ''
otherwise yaws is gonna try to load mysite.fcgi that does not exists,
while apache mod python and fcgi seems to have an auto rewrite rule...
fruity wrote:
> Hello,
>
> I downloaded the yaws-1.86 tarball
> I souced the original ubuntu package and overwritten the debian/ directory
> I checked the patches from debian/ubuntu against this version and
> updated those, I should have downloaded the sid source and maybe it
> whould have been quicker but I don't have a debian platform...
> I compiled and repackaged ( dpkg-buildpackage -rfakeroot -us) and
> everything went fine.
> Installed, tested with static files, working
>
> I followed http://wiki.github.com/klacke/yaws/run-django-under-yaws
>
> Now I see the main page but no links of my django project works...
>
> I've try to run django normally ( runserver not fcgi ) and everything
> works fine but with yaws.
>
> When I try to serve django as fcgi with yaws I only see my main view/url
> ( the index for the non django users ) and nothing else, anything else
> than static media files redirect me to my main view/url
>
> I fired up yaws with -i --conf /etc/yaws/yaws.conf and in the shell I see:
>
> yaws:Failed to send 3174 bytes:
> "C5F\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 ....." on socket
> #Port<0.796>: {error,
>
> closed}
> ["C5F","\r\n","#Bin(3167)","\r\n"]
>
>
> It's like that the django dispatcher does not interact with yaws...
> Is anyone else running django with yaws?
>
> Thank you all very much for your time.
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|