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

  • Home
  • SEARCH
  • 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 93401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:20:19+00:00 2026-05-10T23:20:19+00:00

I have worked a bit with Django and I quite like its project/applications model

  • 0

I have worked a bit with Django and I quite like its project/applications model : you can build a Django project by assembling one or more Django applications. These applications can be autonomous, or some applications can be built on top of other applications. An application can easily rely on another application’s models, as well as its controllers (Django dudes call them ‘views’) and even its views (‘templates’ in Django-speak).

I am now working on a relatively large scale Ruby on Rails project, and I am surprised to see that there is apparently no easy way to do the same thing in Rails. Basically, in Rails, one project = one application. Our project has started off as a huge monolithic app, and we are now trying to figure out how to split it into smaller chunks.

For example, our current application allows us to manage partners and contracts (among other things). I would like to have a ‘Partners’ application which would manage our partners (address, contacts, etc.) and a ‘Contracts’ application which would manage our contracts with our partners. The ‘Contracts’ application would rely on the ‘Partners’ application (but to avoid a circular dependency, I would like the ‘Partners’ app to have no knowledge of the ‘Contracts’ app).

For now, I see the following as the main options:

  1. make these applications communicate through REST requests (each app would act as a Webservice): this is nice, but it seems to prohibit reusing other applications’ views. For example, if the ‘Partners’ app has a nice page to show the details of a partner, and if I want to display that page, slightly modified, in the middle of the contract-details page, I see no other way to do this than to have the ‘Contracts’ app ask the ‘Partners’ app for the partner details through a REST request (it will get an object representation, not a view), then copy/paste the partner-details page’s source code from the ‘Partners’ app to the ‘Contracts’ app.
  2. turn these applications into plugins : not as nice, and a bit more difficult, but seems to allow model & views reuse
  3. use svn external to share some models from application to application: simple but ugly.

Thanks for your advices.

  • 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. 2026-05-10T23:20:19+00:00Added an answer on May 10, 2026 at 11:20 pm

    Since this is something I would also like to be able to do, I can offer four – incomplete and relatively untested (by me) ‘solutions’:

    In no particular order…

    1. Use the Rails engines plugin, which apparently works with 2.2 now. This, to some or all extent, will likely rolled into Rails 2.3 (see below)

    2. Switch to Merb, which has something called ‘slices’ that might offer what you’re looking for. Anyway, if this is correct (and who am I to doubt Yehuda Katz?) it’ll all be the same thing one day anyway, which is cool.

    3. Take a look at the engines functionality in Edge Rails (‘Edge’ is the latest committed but unreleased version, so it usually works but may not be 100% production quality yet).

    4. Look into using namespaces in routes.rb – allocating an item within app to a namespace means you can put it into a subdirectory within the relevant app subdirectory, although this is perhaps less clean to having a separate set of Rails directories for each ‘application’.

    Of these, I have no experience of (2) because I’m tied (in infrastructure terms) to Rails, but that’s OK, I like Rails. I’m planning to take look at (1) and maybe (3), because 2.3 may be released before I need to deploy my next major release, and I’ve tried (4), which works but is, well, fiddly and a little (to me) confusing.

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

Sidebar

Ask A Question

Stats

  • Questions 68k
  • Answers 68k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer As 'foo' and 'foo1' are the name of you input… May 11, 2026 at 12:18 pm
  • added an answer Try <%# ResolveUrl((string)Container.DataItem) %> May 11, 2026 at 12:18 pm
  • added an answer The key to thinking about this problem is to realize… May 11, 2026 at 12:18 pm

Related Questions

A few years ago I have worked on a green field project where we
Several times in my career, I have worked in a software group that determined
My memory usage increases over time and restarting Django is not kind to users.
Anyone willing to help me out with pros/cons on .NET Remoting, Web Services, and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.