Advertisement

How to use pathlib package in Django instead of using os package in Dango3.x?

 


                                                                              

The new update in the documentation where in Django1.x and Django2.x where we used os module to join our directory here is an update in Django3.x where they were using pathlib module instead of os module.

Path(__file__) will provide you the current location of the file and many more checkout this library it has some cool method within it.

Post a Comment

0 Comments