Honestly, I've read the forums extensively but I'm still a bit bewildered at how to best incorporate Drupal into a site built around a web app?
Here's a concrete example:
- Imagine I'm writing a simple widget counting app where logged in users can view and modify inventory, etc.
- The widget counter uses a RAD framework like Django (I'll probably end up having to use CakePHP, but I so would love to get a chance to use Django for the web app).
- I use drupal for the community aspect of the site.
- Users will now need a login that works across both Drupal and the widget counter, plus Drupal should ideally be seamlessly displayed on the pages (i.e. the main column is the app and the side column has drupal blocks).
How should this be done?
My ideas so far:
1) Widget app is written to use Drupal's auth scheme, hence logging into Drupal will log you into the widget counter. However, what will I need to add to the widget counter so that it can tell a user is logged in? Is it just to look out for drupal's session/cookie authorization, or will it the widget app have to access the Drupal DB? Also, now I have the problem of displaying Drupal content (navigation, forum headlines, etc) in the web app.
2) I write a wrapper/module to somehow incorporate the widget app inside Drupal. How on earth do I accomadate for the fact that the widget counter has its own MVC? I find it all a bit confusing: do I hack the widget counter to use Drupal's View? I've looked at Drake for CakePHP, but it seems a bit odd to force 404 errors, plus it really doesn't seem scale well. Plus, I really would like to write the widget counter in Python and there doesn't seem any realisitic way to incorporate Django into drupal.