Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Django multi-tier


Published on

Implementing multi-tier architecture in Django

Published in: Software
  • Login to see the comments

Django multi-tier

  1. 1. Multi-tier Implementation in Django Sebastien Mirolo @seabasscapoeira
  2. 2. djaodjin-saas Software-as-a-Service as a Django App
  3. 3. Productized: HTTP Firewall One Django Proxy Server, with runtime selection of: - templates - database connections - urlresolvers
  4. 4. Disclaimer “In theory there is no difference between theory and practice. In practice there is.” - Yogi Berra PLEASE, DO TRY THIS AT HOME !
  5. 5. Runtime Selection Templates • middleware • thread local • template loaders
  6. 6. Runtime Selection Databases • middleware • thread local • database routers • django.db.connections.databases
  7. 7. Runtime Selection reverse(url_name)
  8. 8. LESSONS LEARNED  Caching without a CacheManager is Evil. def value(self): if not has_attr(self, _value): self._value = self.compute_value() return self._value  The Entire Rendering Pipeline must be Configurable on a Request.  (not talked here) Class Views and Mixins are amazingly flexible.
  9. 9. Thank You Sebastien Mirolo @seabasscapoeira
  10. 10. Thank You Sebastien Mirolo @seabasscapoeira