Need some help with location of some Entry Points etc into the Econsensus and Running Econsensus in Debugger mode

已查看 19 次
跳至第一个未读帖子

Glyn Price

未读,
2014年10月12日 13:14:252014/10/12
收件人 econsens...@googlegroups.com
Need some help with location (py file name and eg def name) of some
Entry Points etc into the Econsensus source code and
Running Econsensus in Debugger mode

1  ENTRY POINT AND SUBSEQUENT CODE FOR:
Starting the server i.e. ./manage.py runserver
I managed this to some extent:
manager.py      updater.go_to_ve(__file__, sys.argv[1:])
ve_mgr.py       go_to_ve
manager.py      __main__
__init__.py     execute_from_command_line
runserver.py    run
runserver.py    inner_run
Q Anything else?

2  ENTRY POINT AND SUBSEQUENT CODE FOR:
key-in into the address box, http://127.0.0.1:8000, in Internet Browser
I managed to get:
backends/default/urls.py
auth_urls.py
Q What is the file that is jumped to here and a few of the subsequent file?

3  ENTRY POINT AND SUBSEQUENT CODE FOR:
Q Where in the code is detail like this displayed in the Terminal window?
[12/Oct/2014 10:10:59] "GET / HTTP/1.1" 302 0
[12/Oct/2014 10:10:59] "GET /accounts/login/?next=/ HTTP/1.1" 200 169019
[12/Oct/2014 10:11:00] "GET /static/css/tables.css HTTP/1.1" 200 3952
[12/Oct/2014 10:11:00] "GET /static/css/styles.css HTTP/1.1" 200 28392
[12/Oct/2014 10:11:00] "GET /static/images/econsensus-logo-header.png HTTP/1.1" 200 5431

4  ENTRY POINT AND SUBSEQUENT CODE FOR:
Q  When clicking a button in the Internet browser with Econsensus running,
   eg Login, where in the code does it jump to?

5 ENTRY POINT AND SUBSEQUENT CODE FOR:
Q Where in the code is detail like this displayed in the Terminal window?
[12/Oct/2014 10:24:41] "POST /accounts/login/ HTTP/1.1" 302 0
[12/Oct/2014 10:24:42] "GET / HTTP/1.1" 302 0
[12/Oct/2014 10:24:42] "GET /orgxyz/item/list/discussion/ HTTP/1.1" 200 247563
[12/Oct/2014 10:24:42] "GET /static/js/repaginate.js HTTP/1.1" 200 681
[12/Oct/2014 10:24:42] "GET /static/images/icon-view-item-disabled.png HTTP/1.1" 200 639
[12/Oct/2014 10:24:42] "GET /static/images/icon-add.png HTTP/1.1" 200 650
[12/Oct/2014 10:24:43] "GET /static/images/icon-view-item.png HTTP/1.1" 200 709



Debugger (single step, break-points, examine variables etc)
Q Is it possible to set-up such facility so that I can run Econsensus
in the development debugger mode? If so, what would I install etc to
achieve this?

Many thanks
Glyn (Volunteer)





Tom Lord

未读,
2014年10月14日 11:03:032014/10/14
收件人 econsens...@googlegroups.com
Hi Glyn,

We had a quick chat today about this internally. We think it might be more useful for you to start working with a much smaller project to get your head into debugging Django projects, rather than starting with Econsensus. Have you taken a look at the Django tutorials yet?

all the best,
Tom.
--
You received this message because you are subscribed to the Google Groups "econsensusdiscuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to econsensusdisc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
to...@aptivate.org | +44 (0)1223 967838

Aptivate - Ethical IT for International Development
Website: http://www.aptivate.org | Newsletter: http://bit.ly/TCbsm6 | Twitter: http://twitter.com/aptivateuk

Aptivate is a not-for-profit company registered in England and Wales with company number 04980791
Our registered address is 25 Signet Court, Swann's Road, Cambridge, UK, CB5 8LA

Glyn Price

未读,
2014年10月16日 15:30:302014/10/16
收件人 econsens...@googlegroups.com
Hi Tom
PYTHON/DJANGO
You are quite right; I should now see if I can get to grips with python/django using the sample code, as you suggest,
in the website listed in the Aptivate Development Guide.

Many thanks
Glyn (volunteer)
回复全部
回复作者
转发
0 个新帖子