I'm deploying a Django app in heroku, but the static files doesnt work. I was looking I i suppose that I have the right configuration.
settings.py
import os
RUTA_PROYECTO = os.path.dirname(os.path.abspath(__file__))
STATIC_ROOT = 'staticfiles'
STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(RUTA_PROYECTO,'static'),
)
wsgi.py
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Portafolio6.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
But this still not working. Please help.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.