Re: Understanding an existing big web application written in Django

2013-06-07 Thread Tom Evans
On Thu, Jun 6, 2013 at 8:00 PM, Javier Guerra Giraldez wrote: > On Thu, Jun 6, 2013 at 6:46 PM, Sam Walters wrote: >> find . -name '*.py' -exec grep -E -H -n 'import LocationAirfieldLookup' '{}' >> \; -print > > > far faster and better use of grep's capabilities: > > grep -n 'import LocationAirfi

Re: Understanding an existing big web application written in Django

2013-06-06 Thread Dow Street
I also find it helpful to generate a diagram of the model relationships - e.g. using graph_models in django-extensions: http://pythonhosted.org/django-extensions/ On Jun 6, 2013, at 7:06 AM, si wrote: > I have already existing web application code written by a someone else now I > need

Re: Understanding an existing big web application written in Django

2013-06-06 Thread Javier Guerra Giraldez
On Thu, Jun 6, 2013 at 6:46 PM, Sam Walters wrote: > find . -name '*.py' -exec grep -E -H -n 'import LocationAirfieldLookup' '{}' > \; -print far faster and better use of grep's capabilities: grep -n 'import LocationAirfieldLookup' -R . --include '*.py' -- Javier -- You received this messa

Re: Understanding an existing big web application written in Django

2013-06-06 Thread Sam Walters
Hi In addition to what has already been said. Make use of command line search tools. Hoe to search through all the python files using BASH is a good example. eg: In one of my projects i have to find all the places where a particular class is called or instantiated: 'LocationAirfieldLookup' find

Re: Understanding an existing big web application written in Django

2013-06-06 Thread sidddd
I have already existing web application code written by a someone else now I need to work on it. So I am trying to understand the architecture of the various classes and interaction. I want to know where jump in and how to understand the architecture of the code. Urls.py seems to be a good place

Re: Understanding an existing big web application written in Django

2013-06-06 Thread sidddd
Thank you for the blog it is helpful. On Wednesday, 5 June 2013 22:17:45 UTC-4, Siddharth Shah wrote: > > I think you can definitely learn from: > http://dangoldin.com/2013/05/07/eighteen-months-of-django/. > > Lots of pointers and tips. My suggestion would be pick up a popular site > Hacker New

Re: Understanding an existing big web application written in Django

2013-06-05 Thread Mario Gudelj
I always start from urls.py. Then proceed to views. Then inside views you can see which modules and templates are used and so on. But the URLs are the starting point... _M On 6 June 2013 14:50, Sergiy Khohlov wrote: > What is mean big application ? > 1) Write an idea > 2) Write a plan > 3) Wri

Re: Understanding an existing big web application written in Django

2013-06-05 Thread Sergiy Khohlov
What is mean big application ? 1) Write an idea 2) Write a plan 3) Write requirements 4) Rewrite all above few times and you are PM and developer now. Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Jun 6, 2013 at 5:17 AM, Siddharth Shah wrote: > I think you can definitely lear

Re: Understanding an existing big web application written in Django

2013-06-05 Thread Siddharth Shah
I think you can definitely learn from:http://dangoldin.com/2013/05/07/eighteen-months-of-django/. Lots of pointers and tips. My suggestion would be pick up a popular site Hacker News, AirBnB, Kickstarter etc and try to write a clone. Thank you, Sidharth On Thursday, June 6, 2013 5:53:06 AM

Understanding an existing big web application written in Django

2013-06-05 Thread sidddd
I am a beginner in web dev and I built few small Django web apps like blogging application etc. Now I am in a fix as I need to understand a big web app written in Django and I dont know where to start. Can anyone suggest me how to understand an existing Django code, I mean where should I star