On Tue, 2011-06-14 at 01:21 -0700, mehdi0016 wrote: > So far my problem was solved: > /findpath raise an 'Internal Server Error', after some try i found i > was missed one file to upload, > so after editing MANIFEST.in, /findpath works properly. > /test works too, but after i reinstall my application. i didn't know > about 'touch whatever.wsgi'. so i'll try it later to see how it works. > thanks again.
Hi medhi, I've been manually approving your emails so far because they wind up in the maillist discussion queue, presumably because you're not subscribed to the list with the email address you're using to send mail. Please fix. Thanks! - C > > On Jun 14, 5:53 am, Parnell Springmeyer <[email protected]> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > mehdi0016 <[email protected]> writes: > > > Hi > > > I have three view : > > > 1- '/' with pt template as renderer > > > 2- '/findpath' with json renderer > > > 3- '/test' with string renderer > > > But only '/' view works, and the other two goes to 404 error!? > > > I'v test my app on my pc, and everything was right, but on server > > > something is wrong. > > > So how could i debug my app on server-side? i use apache and mod_wsgi. > > > also there is an issue: when i change some static files or even some > > > python code in view or..., > > > > Turn on NotFound debugging, it's at the top of the production.ini. > > > > > So how could i apply changes to my application? do i need to run > > > python setup.py install again? > > > > No, run "touch index.wsgi" - touching the index.wsgi will cause it to > > reload the application for you. The pyramid app shouldn't be running > > different under mod_wsgi vs. paster; the problem is probably with how > > you're trying to access the route. > > > > With paster you can call application views like this: > > > > http://localhost:5000/some/view > > > > With mod_wsgi, the index.wsgi (or whatever you have it called) is the > > "front controller" or entry point to your application, so it would look > > like this: > > > > http://somedomain.com/index.wsgi/some/view > > > > Now, if you have Apache setup so that "index.wsgi" is considered an > > index document (if you request the root, and "index.wsgi" is in it, it > > will assume to serve that) when you requesthttp://somedomain.com/it > > will correctly load the application and return the root view. > > > > So, use mod_rewrite so that you can make requests to your application in > > the same manner that you do when testing it against paster. > > > > - -- > > Parnell "ixmatus" Springmeyer (http://ixmat.us) > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > > Comment: GPGTools -http://gpgtools.org > > > > iQEcBAEBAgAGBQJN9r8dAAoJEPvtlbpI1POLDQMIALcJFzEXpjf7GtFqa7UfvMTf > > fKF4nr11PBdthIoDQMvfl/RyqQGcJThny6XhP8tBod9s8EBPhlWq0t1V3UsYEsl5 > > zuUSUvrCQXhZyD9b6JGetKCBAd1zaT4VzxAmKeqOyRg21QUW7LAiTbh8y8l5ZGTr > > wgUEO39bmPZzVsvteWx4oAN3ZZS1mR6lnVT4jjtyKtK4HUTDgkjTf++fPZLKtMOC > > 2Dj8glV67CFhROQx7ewBqPVM/vBeTr70Oz0DGgL609XZERbj32AD0wTUTnL5TnY4 > > TiAdNxhjW2togc1nQnTA0hCd1WhuZwtTdhg8Fpn2lcdYiiml74kYR4AbLIeGQYM= > > =six+ > > -----END PGP SIGNATURE----- > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
