Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7565777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:14:31+00:00 2026-05-30T14:14:31+00:00

What are the Pyramid / Python equivalents of Model – View – Controller of

  • 0

What are the Pyramid / Python equivalents of Model – View – Controller of PHP Frameworks such as Kohana?

In Pyramid "Model" is .... and it is used for .....
In Pyramid "View" is .... and it is used for .....
In Pyramid "Controller" is .... and it is used for .....

I am trying to understand Pyramid’s logic. As an addition to the answer, any help, documentation etc would be appreciated.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:14:33+00:00Added an answer on May 30, 2026 at 2:14 pm

    Pylons, one of the two frameworks that joined together to be Pyramid ( the other was repoze.bfg ) was “close” to an MVC system.

    I put close in quotations, because over the past few years a lot of people have been fighting about what MVC means… and many projects that once touted themselves as “MVC” started to call them “MTC” (model template controller) “MT” (model template) or “MV” (model view). Everyone agrees on what the “model” is, but exactly what the “view” and “controller” map to – on a given framework – can be a point of contention.

    Pyramid and pylons both have a “dispatcher” functionality to set up the mapping for a request. Under pylons its in config/routes.py ; under Pyramid it’s a little different — the default scaffolds have the routing in app/init.py , but you’re free to break it out into app/routes.py or use config.include() to push it into you ‘handlers’ or config.scan() to pull it from your ‘views’.

    ‘handlers’ in pyramid are provided by pyramid_handlers, and are really just ‘views’ with a bunch of auto-generation stuff in there. If you wanted to, your apps could use both handlers AND views ( mine do ).

    In any event, depending on how you interpret MVC / MTC / etc , this is a loose table of what you might want:

               || mvt            | mvc            | mvc
    ==========================================================================
    model      || sqlalchemy     | sqlalchemy     | sqlalchemy
    view       || views/handlers | templates      | views/handlers + templates
    controller ||                | views/handlers | dispatch/routing
    template   || templates      |                |
    

    Quick note- I’m defining the above not based on my interpretation or what the ‘official’ MVC definition is… It’s based in relation to how other popular frameworks market themselves.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fair bit of experience with PHP frameworks and Python for scripting
I am trying to do simple file logging config in pyramid, with python 2.7.2
I'm trying to go through the Single File Tasks tutorial from the Pyramid documentation,
I am starting a web project in Python, most likely using Django or Pyramid.
We're trying to set up a Pyramid project that will use MySQL instead of
I have a Pyramid app and apache with mod_wsgi and I'm trying to make
For a new (Python) web application with the Pyramid web framework, I'd like to
I'm creating a python pyramid app on Heroku, and I was wondering if anyone
I'm fairly new to python and pyramid framework. Recently I was introduced to SQLSoup
I have deployed a Pyramid app using mod_wsgi. I have setup the python path

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.