I have a question about using Pluggable apps with Django. My question is about best practices. If you have pluggable apps, do you put the entire app ( e.g. django-survey or django-ads ) into a subdirectory and then add each app individually to the python path?
$ ls apps django-survey django-ads $ ls apps/django-survey/ docs examples setup.py survey $ ls apps/django-ads/ ads examples project Then add each app to the python path individually: e.g. sys.path.insert(0, os.path.join(PROJECT_ROOT, 'apps/django-survey/')) sys.path.insert(0, os.path.join(PROJECT_ROOT, 'apps/django-ads/')) OR do you just include the working directory ( in this case django-survey/survey ) in the apps/ directory so that the they can be found in apps/survey ? $ ls apps survey ads Python path is: sys.path.insert(0, os.path.join(PROJECT_ROOT, 'apps')) I think the urlpatterns would be the same in both cases: urlpatterns = patterns('', (r'^admin/(.*)', admin.site.root), (r'^survey/', include('survey.urls')), (r'^ads/', include('ads.urls')), ) I would imagine there are several ways to do this; however, I guess I wanted to learn if there was a convention for adding pluggable apps. thanks, Bryan -- The best marketing related articles are at http://www.InstantDirectMarketing.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---