Hi,

My department has two customers who have identical needs, currently served by 
separate applications.  They both need an app w/ a public side and an 
administrative side, and we had hoped to make use of the built-in Django admin 
interface for the latter.  We're wondering how to model this in the most 
Django-ish way.  Here are some of the options we've considered and the 
challenges each raises.

 1. Two separate Django projects -- this is the situation we're already in, 
though the app we are using currently is outdated and unmanageable.  This setup 
"works" for our customers but since the codebases are separate, it can be a 
pain to ensure each has the same functionality available as the other. 
Additionally, we would like to add more customers eventually who have similar 
needs, and we're looking for a more lightweight way to add them than to bring 
up an entirely new stack, if possible.

 2. One Django project w/ two apps (one per customer) -- the question about 
this setup is how to have identical models (and views and forms, etc.) for each 
app (without relying on a crude hack, e.g. symlinks).  For the heck of it, I 
tried maintaining the models in a separate file and giving each app a models.py 
containing one line importing the separate models module, but this confuses 
south and syncdb since there are no actual model declarations in each app.

 3. One Django project w/ one app -- this setup would work if we could roll out 
row-level permissions for the built-in admin interface.  The approaches we've 
found via the googles for row-level perms, though, feel more like hacks than 
best practices and, again, we want to model this in the most Djangoish way. I'm 
sure there are other options.  I suspect we would go with #3, disabling the 
built-in administrative interface, and building a couple of AdminSites (one per 
customer).  Your thoughts?  Are there any best practices here?

Much obliged,

-Mike

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to