Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the STATIC_ROOT for Django 3.1 #269

Merged
merged 1 commit into from Dec 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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