File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ with a new Django project then you'll need add the following to the bottom of yo
1919``settings.py `` file:
2020
2121.. code-block :: python
22-
23- STATIC_ROOT = os.path.join( BASE_DIR , ' staticfiles' )
22+
23+ STATIC_ROOT = BASE_DIR / ' staticfiles'
2424
2525 As part of deploying your application you'll need to run ``./manage.py collectstatic `` to
2626put all your static files into ``STATIC_ROOT ``. (If you're running on Heroku then
@@ -701,7 +701,7 @@ The path to the ``static_build`` directory is added to ``settings.py``:
701701.. code-block :: python
702702
703703 STATICFILES_DIRS = [
704- os.path.join( BASE_DIR , ' static_build' )
704+ BASE_DIR / ' static_build'
705705 ]
706706
707707 This means that Django can find the processed files, but doesn't need to know anything
You can’t perform that action at this time.
0 commit comments