Public IP redirects to localhost

2021-09-02 Thread Ronald Munjoma
Hi, I am hosting Akvo RSR (https://github.com/akvo/akvo-rsr) an Open Source project on a Digital Ocean droplet. I am runing the application inside a docker container. I can access the landing page via the droplet public IP address: http://157.230.228.89/ Accessing other parts of the site, for

Re: Problem when i turn debug False

2021-09-02 Thread Luca Bertolotti
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

Re: Problem when i turn debug False

2021-09-02 Thread Daniel Hepper
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: >

Problem when i turn debug False

2021-09-02 Thread luca72.b...@gmail.com
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: