│ │ ├── base.css
[...]
│ └── urlify.js
├── base.css
└── bootstrap
├── css
│ ├── bootstrap.css
│ ├── bootstrap.min.css
│ ├── bootstrap-theme.css
│ └── bootstrap-theme.min.css
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ └── glyphicons-halflings-regular.woff
└── js
├── bootstrap.js
└── bootstrap.min.js
10 directories, 74 files
collectstatic
has also picked up all the CSS for the admin site. It’s one of Django’s
powerful features, and we’ll find out all about it one day, but we’re not ready to use that
yet, so let’s disable it for now:
superlists/settings.py.
INSTALLED_APPS
=
(
#'django.contrib.admin',
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'lists'
,
)
And we try again:
$
rm -rf ../static/
$
python3 manage.py collectstatic --noinput
Copying '/workspace/superlists/lists/static/base.css'
Copying '/workspace/superlists/lists/static/bootstrap/js/bootstrap.min.js'
Copying '/workspace/superlists/lists/static/bootstrap/js/bootstrap.js'
[...]
13 static files copied to '/workspace/static'.
Much better.
What We Glossed Over: collectstatic and Other Static Directories
|
129