I've seen this on a few projects before and each time transitioned the project away from it.
As you note, for whatever advantages it seems like there may be, it's very much atypical and also unnecessary. I don't see how it makes writing Fabric tasks significantly easier (presumably you don't need to reference the project path? which saves the uses of one variable or something) and you can use django-admin.py from anywhere without this, provided your path is updated in the environment. Would be open to someone chiming in about a specific use case in which using setup.py to install a Django project is a significant advantage but all things being equal I'd not rely on it. On Wednesday, September 6, 2017 at 4:29:13 PM UTC-4, Scot Hacker wrote: > > I am accustomed to seeing pip-installable dependencies of a Django project > each have their own `setup.py`. I am not accustomed to seeing a Django > project *itself* have its own `setup.py`, but I am now working with a > project that does just that. The setup does not move the Django project > itself to `site-packages`, but does add the whole project to the Python > path. > > This approach is not documented or recommended by Django itself, and I > can't find many references to it on the web. The stated advantages are that > it lets you use `manage.py` from any dir (not just the top-level) and that > it simplifies the writing of fab commands. I am wary of it because it > (slightly) complicates setup, is unusual, confusing to new developers, etc. > > Does anyone have experience with this approach? In 10 years of Django > development, I've never encountered this on a project, and it feels a > bit... strange to me. But would love to hear from anyone who has had > positive or negative experiences doing this. > > Thanks for any feedback, > Scot > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/be5760d6-e3cf-469b-8cf2-6c3f1d9d4361%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.