File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 6060 "django.middleware.common.CommonMiddleware" ,
6161 "django.middleware.csrf.CsrfViewMiddleware" ,
6262 "django.contrib.auth.middleware.AuthenticationMiddleware" ,
63+ 'whitenoise.middleware.WhiteNoiseMiddleware' ,
6364 "django.contrib.messages.middleware.MessageMiddleware" ,
6465 "django.middleware.clickjacking.XFrameOptionsMiddleware" ,
6566]
131132# Static files (CSS, JavaScript, Images)
132133# https://docs.djangoproject.com/en/5.0/howto/static-files/
133134
134- STATIC_URL = "static/"
135+ # Configuração para arquivos estáticos
136+ STATIC_URL = '/static/'
137+ STATIC_ROOT = os .path .join (BASE_DIR , 'staticfiles' )
138+ STATICFILES_DIRS = [os .path .join (BASE_DIR , 'static' )]
135139
136140
137141STATICFILES_DIRS = [BASE_DIR / "templates" / "static" ]
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33# Comandos para preparar o Django
4+ python manage.py makemigrations
45python manage.py migrate
56python manage.py collectstatic --noinput
67
78# Inicia o servidor Gunicorn (obrigatório para produção)
8- gunicorn GESTAO-ESCOLAR-DIGITAL .wsgi:application --bind 0.0.0.0:$PORT
9+ gunicorn setup .wsgi:application --bind 0.0.0.0:$PORT
You can’t perform that action at this time.
0 commit comments