title: How can I use Pathlib for configuring the settings for the project in Django/Faker?
body: <p>Right now I'm trying to put some fake data in my database using Faker just for the checking purposes. I've created separate file, but before starting to work with Faker itself and data manipulation, I need to configure the settings for the project in this separate file.</p>
  <p>Before DJANGO==3.1 all people have been using OS module and the following syntax.</p>
  <pre><code>import os
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project_name.settings')
  </code></pre>
  <p>But now, when Django versions higher than 3.1 switched from OS module to PATHLIB module, how should I write this code using PATHLIB, not OS? Any help would be helpful!</p>