DEV Community 👩‍💻👨‍💻

Vicente Reyes
Vicente Reyes

Posted on

Static Files not saving on S3 bucket using cookiecutter-django

I'm trying to deploy this app since last night. Tried to re-deploy it but it still doesn't save the static files on the s3 bucket.

I'm trying to deploy my project on Heroku. I ran heroku run python3 collectstatic after deploying it.

I have this on config/

STATIC_ROOT = str(ROOT_DIR("staticfiles"))
STATIC_URL = "/static/"
STATICFILES_DIRS = [str(APPS_DIR.path("static"))]

This is on the config/

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
INSTALLED_APPS += ["storages"]  #

Top comments (0)

👋 New to DEV?

Head over to our Welcome Thread and tell us what you're working on!