If you are running the server with "manage.py runserver", STATIC_ROOT is
irrelevant. You should put the "polls" directory in "polls/static", i.e. e.g.
"polls/static/polls/style.css"; this is relative to the folder where "manage.py" is.
On 15/06/2022 13.54, luca72.b...@gmail.com wrote:
no i'm
no i'm not in production
i'm running with runserver
Il giorno mercoledì 15 giugno 2022 alle 12:45:54 UTC+2 Antonis Christofides
ha scritto:
> Is this in production? Are you using apache or something? if yes, please
> take a look at
>
Is this in production? Are you using apache or something? if yes, please take a
look at
https://djangodeployment.readthedocs.io/en/latest/_images/how-static-files-work-apache.png.
Otherwise, please explain in more detail what your deployment environment looks
like.
On 15/06/2022 13.08,
Hello i have this configuration in settings.py
STATIC_URL = '/static_files/'
STATIC_ROOT = 'D:/prova_nuovo_sito/static_files'
INSTALLED_APPS = [
'polls.apps.PollsConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
4 matches
Mail list logo