Skip to content

Commit

Permalink
Update the STATIC_ROOT for Django 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AliRn76 committed Dec 13, 2020
1 parent f67cdf3 commit cc49b0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/django.rst
Expand Up @@ -19,8 +19,8 @@ with a new Django project then you'll need add the following to the bottom of yo
``settings.py`` file:

.. code-block:: python
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_ROOT = BASE_DIR / 'staticfiles'
As part of deploying your application you'll need to run ``./manage.py collectstatic`` to
put all your static files into ``STATIC_ROOT``. (If you're running on Heroku then
Expand Down Expand Up @@ -701,7 +701,7 @@ The path to the ``static_build`` directory is added to ``settings.py``:
.. code-block:: python
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static_build')
BASE_DIR / 'static_build'
]
This means that Django can find the processed files, but doesn't need to know anything
Expand Down

0 comments on commit cc49b0b

Please sign in to comment.