Project structure for large tornado project ?

1,572 views
Skip to first unread message

Eugene Liang

unread,
Jan 21, 2014, 8:25:02 AM1/21/14
to python-...@googlegroups.com
Hi all, 

I'm sort of an intermediate tornado developer and know my way around building simple tornado apps.

I'm trying to improve myself and want to learn how to build larger tornado projects. 

Say for example, I want to build Facebook ( just the functionalities ) using Tornado, how should I organize my code such that I can quickly iterate with a team of coders ?

I've googled around and found some samples: 

Which of the above is the most suitable ? How would you do it ?

My stack includes Python, MongoDB, jQuery on a Ubuntu server.


Looking forward to great discussions.

Best Regards.

Shafiul Azam

unread,
Jan 21, 2014, 10:04:23 AM1/21/14
to python-...@googlegroups.com
Hi,

I'm also new at Tornado and at my company we're up to a project. We've organized as following:

moules



user



actions



user_registration.py



user_login.py


models



user.py


handlers.py


routes.py




app.py


logging.ini



That is, we've identified independent "modules". There are many modules say user, security, configuration, etc. We're using SQLAlchemy. Since all the heavy works are done in model files say user.py from above architecture, the file is getting pretty much big. Other than that, everything seems maintainable.


--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Shafiul Azam Chowdhury
Senior Software Engineer, AppDragon
Mozilla Rep, Mozilla

My Blog: http://bdhacker.wordpress.com
Phone: 8801717-922569
Twitter: @ishafiul
Mozilla Bangladesh: http://mozillabd.org

Eugene Liang

unread,
Jan 21, 2014, 10:05:31 PM1/21/14
to python-...@googlegroups.com
Hi, 

sounds like a good way to maintain a large project.

So to use the user model, you simply import it at your actions ?

I assume that you have multiple developers developing this project ?

Lastly, mind sharing with us how your routes.py and handlers.py look like ?

Thanks!
Reply all
Reply to author
Forward
0 new messages