Yes i have read the documentation but as you can see I never understand.
I think that I can use whitenoise in a2hosting,
let me ask for a stupid question, a friend have a VNS on a different
machine is possible use his machine for load static files?
Regards
Il giorno gio 2 set 2021 alle ore 16:00
As far as I can tell a2hosting offers plain virtual servers. Have you read
the documentation on Serving static files in production?
https://docs.djangoproject.com/en/3.2/howto/static-files/deployment/
On Thu, Sep 2, 2021 at 10:46 AM luca72.b...@gmail.com <
luca72.bertolo...@gmail.com> wrote:
>
Hello my web site is hosted on a2hosting
when i turn to False the image are not loaded.
My settings.py have this line:
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static_files')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, "static_media")
the file are located in:
3 matches
Mail list logo