python - Is it possible to maintain a reusable django *project* across apps? -


i'm trying decide whether underneath 'reusable apps' doable maintain reusable bare project setup well.

on side note: can destroy of servers , rebuild in barely hours long have (data) backup , blueprint (in case saltstack, might puppet, chef or not).

with flexible infra, these deployment steps next:

  • create virtualenv django application
  • check out project (always named project)
  • my project has setup.py included. sets surroundings:
    • render settings files based on yaml data , templates
    • possibly loads fixtures when needed
    • when in production, renders apache config
    • etc
  • after that, git submodules, can plug reusable apps end running webapplication.

with quite lot of intelligency built in bare project base structure ended original question.

i'm wondering if project baseline maintainable cross (web)application seperate git repo. or project structure have specific moving parts related (web)application whole?

e.g: pluggable apps go in installed_apps, etc , ending related/changing data.

hope it's clear. looking forward comments

a possibility, suggested, templating project suffice. however, templating projects result in different starting point every project. since templates evolve on time there's not 1 project starts same.

having baseline throughout projects seems worth pursuing if big enough (development) company , building enough different projects. baseline in case can custom python egg or additional django app added django project. such app can enforce deployment strategies or maintain infrastructural dependancies.

for instance, propagating/configuring server information infrastructure or other services. think of db, storage, auth services , other backends. when moving different inhouse storage backend or it's new api version, app can smoothen transition. if don't have added (re-usable) apps project hook project storage service.

so, in short, think answer own question is:

yes, create reusable apps far possible make sure solution not bigger problem.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -