Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#35501 closed Cleanup/optimization (invalid)

collectstatic takes more than an hour to complete

Reported by: Suffiyan Arshad Owned by: nobody
Component: contrib.staticfiles Version: 5.0
Severity: Normal Keywords: collectstatic
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

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

Change History (1)

comment:1 by Mariusz Felisiak, 3 months ago

Resolution: invalid
Severity: Release blockerNormal
Status: newclosed

This is not a release blocker by a support question and Trac is not a support channel.

Version 0, edited 3 months ago by Mariusz Felisiak (next)
Note: See TracTickets for help on using tickets.
Back to Top