> I don't know how TurboGears itself is implemented and copes with
> changes to code.
>
> One thing to watch out for are old .pyc files laying around. If for
> some reason these exist but where they contain compiled byte code for
> older version of code file, it could be running it. So, start by
> removing .pyc files in your application directories.
>
I have removed pyc already.
Actually there is a weird property with paths.
First: if I set in apache:
WSGIScriptAlias /myfirstapp
/usr/local/turbogears/myfirstapp/apache/myfirstapp.wsgi
1. Instead of index I have myfirstapp page.
That apache config is all I need to access my
example.com/myfirstapp/myfirstapp
---domain-------apache-----myapp
(no need for webpath) myfistapp page is working properly.
a)example.com/myfirstapp/myfirstapp accesses my form (good)
example/com/myfirstapp/ gives me a 404 (good)
b)BUT now If click 'save' button it redirects me to
example.com/savemyfirstapp since it doesn't know about baser url!
(Shouldn't WSGIScriptAlias /myfirstapp step in here and redirect all
requests to /myfirstapp/xxxxx? Why yes or why not?)
Weird: I can also access:
example.com/myfirstapp/myfirstapp
example.com/myfirstapp/myfirstapp/myfirstapp
example.com/myfirstapp/myfirstapp/myfirstapp/myfirstapp
2. Since my save didn't work, this means that my turbogears app needs
to know the base url (server.webpath).
ok. I add this to my myfirstapp.wsgi config file:
turbogears.config.update({'global': {'server.webpath': '/myfirstapp'}})
weird:
now my first page doesn't work:
a)example.com/myfirstapp/myfirstapp (doesn't work)
b)but example.com/myfirstapp/myfirstapp/myfirstapp page works.???
-----domain-----------apache-----wsgi-------my-apps-page
c)my save works properly (good).
This means that webpath is needed internally to get all links working.
But what about my entry point. It seems as it the entry url now is
duplicated with apache and webpath.
example.com/myfirstapp/myfirstapp/myfirstapp
-----domain-------apache-----wsgi-------my-apps-page
This is a problem now because I cannot remove apache alias(because I
don't want / mounted app) I cannot remove my wsgi webpath(because my
links won't work) and I definitely can't remove my apps page(since
that is the main reason for the app).
So, what is going on here? Why apache WSGIScriptAlias+ webpath
represent (/myfirstapp/myfirstapp) and not (/myfirstapp)?
Aren't they talking about same path?
If I am setting something incorrectly please let me know what the
proper configuration should be?!
Lucas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---