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 6829253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:28:44+00:00 2026-05-26T22:28:44+00:00

I guess i have a simple question about better code organization. Say i have

  • 0

I guess i have a simple question about better code organization.

Say i have multiple apps that also implement how these apps should be represented on presentation layer.

I am trying to understand how to organize the code if i need to present multiple apps on one page without using frames of course?

Quick example: say I have two apps (app1 and app2) both implmeneting their coresponding model and views. Now i need my index page to contain presentation of these two views. How can i implement the generic view that still utilizes the app views instead of going to their models directly?
I would prefer my app to control its view still.

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-26T22:28:45+00:00Added an answer on May 26, 2026 at 10:28 pm

    I think you may use render_to_string shortcut
    Thus in app views you put:

    render_to_string(somestuff) # instead of render() or render_to_responce()
    

    and then in index view something like this:

    render(request, 'index.html', {'block1': view1(request), 'block2': view2(request)})
    

    PS: Also after i wrote this it doesn’t look very nice (it looked better in my head 🙂 ).

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

Sidebar

Related Questions

I have a simple question about filtering attributes in WEKA. Let's say I have
Simple question (I guess). I have this default google tutorial code for tabs: intent
A little stuck here. I have a simple question I guess. Given the following
A fairly simple question for which I have a guess, but I can't find
I have a very simple question about transactions. (In sql server 2000, but I
i have a question about this code. class Queue { Node first, last void
I guess this is simple, but i couldnot figure it out. i have a
I have a HashMap (although I guess this question applies to other collections) of
I guess this is kind of an odd question but I have tried setting
Greetings all... I have a simple, yet annoying question regarding Spring Web MVC. I

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.