3 ms·
1. You can nest routes, see [1]. 3. You can do arbitrary SQLs through the ORM. You can also do arbitrary SQLs with whatever joins you like and still get a mode
by kriberg 8y ago
1. You can nest routes, see [1].
3. You can do arbitrary SQLs through the ORM. You can also do arbitrary SQLs with whatever joins you like and still get a model back. See [2].
4. This hasn't been an issue for some time. See [3] for how to extend and [4] how to substitute with your custom model.
5. There are libraries supporting relevant oauth providers [5] and libraries for specific protocols like ldap [6]. These are drop-in libraries that needs only basic configuration. It's also quite simple to build a custom authentication system, using whichever http header you fancy.
6. While this is somewhat true, it's not fair. There are libraries for many purposes. django-rest-framework [7] is an exceptionally good framework for creating ReST APIs.
7. There's nothing stopping you from using any other database, neither graph nor nosql.
8. Django's migration support is extremely good. If you dislike the ORM and you also want to use an external migration tool, you can easily enough just omit using models and utilize sqlalchemy instead.
[1] https://docs.djangoproject.com/en/2.2/topics/http/urls/#including-other-urlconfs https://docs.djangoproject.com/en/2.2/topics/http/urls/#incl...
[2] https://docs.djangoproject.com/en/2.2/topics/db/sql/ https://docs.djangoproject.com/en/2.2/topics/db/sql/
[3] https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#extending-the-existing-user-model https://docs.djangoproject.com/en/2.2/topics/auth/customizin...
[4] https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#substituting-a-custom-user-model https://docs.djangoproject.com/en/2.2/topics/auth/customizin...
[5] https://python-social-auth-docs.readthedocs.io/en/latest/configuration/django.html#authentication-backends https://python-social-auth-docs.readthedocs.io/en/latest/con...
[6] https://django-auth-ldap.readthedocs.io/en/latest/ https://django-auth-ldap.readthedocs.io/en/latest/
[7] https://www.django-rest-framework.org/ https://www.django-rest-framework.org/