Hello,  I've been happily using flickzeug as a basic dev server for a
few weeks. just because its restarts faster than django's.

I really haven't been able to use any of the flickzeug/werkzeug stuff
though but I've been intending to get started.

I'm now trying to do what looks like the simplest possible test of the
flickzeug profiler app.

def make_profiler():
    application = WSGIHandler()
    from flickzeug.profiling.profiler import Profiler
    data_path = "/Users/crucial/Sites/profiles/"
    return Profiler(application,data_path,app_path="/profiler/")
 #  note                                              ^^^^^^^^

action_profiler = script.make_runserver(make_profiler,
    use_reloader=False, use_debugger=True)

if __name__ == "__main__":
    script.run()


the docs seem to suggest that one should specify the app_path.

actually the docs really don't tell you what is going to happen at
all.  all we know is "there's a profiler".  its a bit vague.

something nice and simple like :  "there will be a whole web app
hosted at a URL where you can then examine the profile results".

it should say "then go to http://localhost:5000/_profiler/";

anyway,

I run a page, it makes profile files.  I go to http://localhost:5000/profiler/

but all the js are 404

* Running on http://localhost:5000/
127.0.0.1 - - [25/Jan/2010 01:15:45] "GET /profiler/ HTTP/1.1" 200 -
127.0.0.1 - - [25/Jan/2010 01:15:45] "GET /profiler/shared/profile.css
HTTP/1.1" 404 -
127.0.0.1 - - [25/Jan/2010 01:15:45] "GET /profiler/shared/jquery.js
HTTP/1.1" 404 -
127.0.0.1 - - [25/Jan/2010 01:16:44] "GET /profiler/show/1264376485_16
HTTP/1.1" 200 -
127.0.0.1 - - [25/Jan/2010 01:16:50] "GET /profiler/shared/utils.js
HTTP/1.1" 404 -
127.0.0.1 - - [25/Jan/2010 01:16:50] "GET /profiler/shared/profile.css
HTTP/1.1" 404 -
127.0.0.1 - - [25/Jan/2010 01:16:50] "GET /profiler/shared/jquery.js
HTTP/1.1" 404 -
127.0.0.1 - - [25/Jan/2010 01:16:50] "GET /profiler/shared/
jquery.treeTable.css HTTP/1.1" 404 -
127.0.0.1 - - [25/Jan/2010 01:16:50] "GET /profiler/shared/
jquery.treeTable.js HTTP/1.1" 404 -

solution: don't specify an app_path

it works at _profiler

jedenfalls, danke euch ! looking forward to the project maturing.

I've customized my django exception pages quite a bit and its sped up
my work considerably.  if we could write custom handler pages
(application aware) and have the on page werkzeug debugger that would
be amazing.



-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en.

Reply via email to