|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
If you install mod_python or fastcgi then you'll get allot better results from Spyce (near to PHP speed). It is the best one out there imo, there are allot of tag based solussions but when it comes to embedding Spyce is in first place
, you can use any extension you want, all you have to do is edit Apache's config file to run .html files though Spyce. damn MS ah well, have fun with debian (never used it but i like the logo)This page may be of interest for users considering Unising Spyce but are unsure the speed. http://spyce.sourceforge.net/doc-add_perf.html Mark. |
|
#17
|
|||
|
|||
|
I downloaded and installed Spyce. I wasn't able to go to http://localhost/spyce/
Do I need to turn the RewriteEngine off or change the rule so that I can save stuff as ".htm" #<IfModule mod_rewrite.c> # RewriteEngine On # RewriteRule ^(.*\.spy) http://localhost:8000$1 [p] #</IfModule> |
|
#18
|
||||
|
||||
|
Don't worry about not being able to get to the docs that way Chief, i've never got it to work but it makes no diferance at all so
![]() Mmmm, well i don't know about mod_rewrite, you shouldn't have to touch that. All you have to do is find the the section of you apache config which deals with spyce (near the end) and change all the .spy extensions to read .html and it should work fine. There is one thing i should mension.. because Apache now see's html files as Spyce even none Spyce html pages will be parsed. So i'd only make these changes if your not going to be running any plain html pages though your localhost , unless you don't mind the chnage in preformance ![]() Mark. |
|
#19
|
|||
|
|||
|
I downloaded and installed just Spyce.
I was trying to do my very first Spyce page but I ran into some trouble. I use Notepad to do everything. Well, I wrote this: <html><body> Hello [[print 'world!',]] [[ for i in range(10): { ]] [[=i]] [[ } ]] </body></html> I saved it as "hello.spy" then tried executing it. I got this: Hello [[print 'world!',]] [[ for i in range(10): { ]] [[=i]] [[ } ]] http://spyce.sourceforge.net/doc-intro_started.html |
|
#20
|
||||
|
||||
|
Oh ok, it sounds like apache hasn't been configured to run spyce.. did you download the windows installer?
You may want to check your config file and see if spyce is in there, also If you edited the config as above you'll need give your page a .html extension. Oh you need to restart apache after installing spyce if you havn't does this already.. i know it sounds dumb but you'd be surprised how often this happens. Mark. |
|
#22
|
||||
|
||||
|
Ah, the installer should have configured Apache for you but no big. It's pretty simple, i've attached the spyce config so all you need to do is copy and paste it into Apache's config and change XXX to point at Sypce and your away
![]() Mark. |
|
#23
|
|||
|
|||
|
I added that to my Apache config file and changed all the "XXX"s to where Spyce is located on my computer, but no luck.
* I did restart my Apache service after I made the changes. |
|
#24
|
||||
|
||||
|
Oh ok
this makes no sence at all, I know your using Apache 2 but still.. let's try somthing new! Remove spyce from your config file and replace it with this..Quote:
..which is a cut down version of the bits you need to run Spyce in CGI mode only. obviously if Spyce isn't at 'C:/Program Files/spyce/' then you'll need to change it a little but this is all you really need! I'm running Spyce on WinXP Home and Apache 1.3.x and it works perfectly! But if the problem presists i'll download Apache 2 and give it a go.. Mark. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > XHTML and Python |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|