[Django] #35501: collectstatic takes more than an hour to complete

10 views
Skip to first unread message

Django

unread,
Jun 7, 2024, 7:18:02 PM6/7/24
to django-...@googlegroups.com
#35501: collectstatic takes more than an hour to complete
-------------------------------------+-------------------------------------
Reporter: SuffiyanA | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: | Version: 5.0
contrib.staticfiles |
Severity: Release | Keywords: collectstatic
blocker |
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hey everyone,

Might seem rookie but for some reason my collectstatic takes more than an
hour to complete. Some details: the static files are stored on the same VM
as the app, theres no s3 or any such service connected. I looked for
solutions online and found collectfast but wanted to come here and see if
theres anything wrong with my config:

STATIC_URL = '/static/'

if not DEBUG:
# Tell Django to copy statics to the `staticfiles` directory
# in your application directory on Render.
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

# Turn on WhiteNoise storage backend that takes care of compressing
static files
# and creating unique names for each version so they can safely be
cached forever.
STATICFILES_STORAGE =
'whitenoise.storage.CompressedManifestStaticFilesStorage'

pretty boilerplate configs

Any suggestions regarding this would be really helpful.
Thank you
--
Ticket URL: <https://code.djangoproject.com/ticket/35501>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 8, 2024, 6:46:45 AM6/8/24
to django-...@googlegroups.com
#35501: collectstatic takes more than an hour to complete
-------------------------------------+-------------------------------------
Reporter: Suffiyan Arshad | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: contrib.staticfiles | Version: 5.0
Severity: Normal | Resolution: invalid
Keywords: collectstatic | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* resolution: => invalid
* severity: Release blocker => Normal
* status: new => closed

Comment:

This is not a release blocker by a support question and Trac is not a
support channel.
--
Ticket URL: <https://code.djangoproject.com/ticket/35501#comment:1>
Reply all
Reply to author
Forward
0 new messages