You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Configuração staticSTATIC_ROOT=os.path.join(BASE_DIR, 'static')
STATIC_URL='/static/'STATICFILES_DIRS= [
os.path.join(BASE_DIR, 'PASTA_APP/static/')
]
# Configuração dos arquivos de mídia (upload)MEDIA_ROOT=os.path.join(BASE_DIR, 'media')
MEDIA_URL='/media/'
Nas urls 'urls.py'
fromdjango.confimportsettingsfromdjango.conf.urls.staticimportstaticurlpatterns= [
# ... the rest of your URLconf goes here ...
] +static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)