In an MVC model, where is the position of http handlers?

I'm developing Python tornado apps in MVC. I have a folder for models which contains all of classes to access database. another for controller which contains classes to do some controls an more logical works. the problem is that I don't know exactly where to put my HTTP handlers. should I put them in View folder of controller? if not, what should I put in that folder?

Answers


You can take example from Django, which use model named MTV (Model-Template-View) - you can read more about this here or in FAQ. In this model request handlers are placed inside view section, which can be thought as controllers of standard MVC (and templates of MTV are views of MVC - it's a bit confusing).


Need Your Help

How do I use sscanf to get names and print them out the way i want them to

c ansi main sscanf fgetc

I'm making a program that takes names from the user seperated by commas. The program allows the user to put as many or as little spaces as they want between the commas. So for example:

JPA connection configuration for SQLServer

sql-server jpa configuration driver

Does anyone know why am I getting the following error? javax.persistence.PersistenceException: Exception [EclipseLink-4003] (Eclipse Persistence Services - 2.3.2.v20111125-r10461):

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.