django base path on level up

To set the base path one level up in Django, follow these steps:

  1. First, navigate to the settings.py file in your Django project.

  2. Locate the BASE_DIR variable, which contains the current directory of your Django project.

  3. Once you've found the BASE_DIR variable, modify it to move one level up by using the os.path.dirname() function.

  4. After updating the BASE_DIR variable, you can now use it as the base path for your project, one level up from its original location.

That's it! This process allows you to set the base path one level up in your Django project.