Sunday, 15 April 2012

python - Django deployment, Multi project vs multi-user -



python - Django deployment, Multi project vs multi-user -

i have django project little erp dentists. ready working appart 1 of import think. since django project sold different clients, came think of 2 approaches.

each client runs own independent project (different settings file, db, project folder etc) one project , each client seperate model, exists foreignkey models distinguish client model instances belong.

all must take in considereation creation of new client should done automatically. first 1 thought solution of openshift. openshift gives me api can create start applications automatically using same git repository. can have

client1.mydomain.com client2.mydomain.com client3.mydomain.com etc

the problem method must able manage many different applications have , not sure happens if force changes git repository. applications see it?( thinking probably).

the sec method lets me handle 1 project not sure privacy issues. e.g if have url mydomain.com/doctor_id/patient_id, stopping doc id 3 see patients of doc id 5 e.g. same images. if have 1 media_url , 1 media_dir stopping (or how) doc seeing other doctor's patients pictures? suggest on that?

this proposed too won't alter think access problem. guess done manually, check if patient of image requested belongs user logged in, thinking more built in mechanism (if there any).

python django deployment

No comments:

Post a Comment