Skip to content

Commit

Permalink
Merge pull request #269 from AliRn76/master
Browse files Browse the repository at this point in the history
Update the STATIC_ROOT for Django 3.1
  • Loading branch information
evansd committed Dec 14, 2020
2 parents f67cdf3 + cc49b0b commit de827c9
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 de827c9

Please sign in to comment.