Django: Getting Started Transcripts
Chapter: 3rd Party Libraries for Django
Lecture: Intro to the libraries

Login or purchase this course to watch this video and the rest of the course contents.
0:00 In the previous chapter, I covered some of the things you need to think about when deploying a Django application into a production environment.
0:08 In this chapter, I'm going to briefly introduce you to a couple of the more popular third party libraries often used when coding with Django.
0:16 You've seen along the way, just how extensible the Django framework is.
0:20 The core developers have been very careful about building Django in applicable fashion,
0:24 letting you the programmer take advantage of the same structures that underlie Django itself.
0:30 Everywhere where you've been able to write your own thing is a place where you could also create a module that others could plug into their code.
0:36 How to do this is beyond the scope of this course. But what this chapter does talk about is several libraries
0:42 where others have written such modules that you can take advantage of. The first one I'll show you is one of my favorites.
0:49 Grappelli, it's a drop in replacement for the Django admin, rewriting all the templates, giving it a makeover. As you've been coding along,
0:57 did you wish you had more info when you made a mistake and the debug screen came up? Well, the debug toolbar might be what you're looking for.
1:05 It is a plug in that exposes a whole load of info that might help you find flaws in your code. Single page applications are quite common nowadays,
1:14 those are applications where the user interface is purely on the client side and created by javascript.
1:21 Libraries like React, Angular, and View.JS all use this methodology. That doesn't mean you still can't use Django on the back end.
1:28 All that JSON and server side business logic has to live somewhere. To do this your views become simpler and essentially become data APIs.
1:38 To help with building this kind of interface, you might use the Django Rest framework or DRF to its friends.
1:44 It makes wiring your data models into a serializable API form just a few lines of code away. This chapter will cover these three packages in a bit more
1:53 detail, but will also wrap up with some pointers to other commonly used packages that you can investigate for yourself.


Talk Python's Mastodon Michael Kennedy's Mastodon