Re: Why would a deployed site shows up with distorted layout

2024-03-04 Thread ram.mu...@gmail.com
Thank you all for providing valuable answers. 1. My case was actually related to the permission issue on ~/www-data/example.com/static folder as mentioned by @Asamoah Emmanuel. 2. Though I changed the ownership of the folder with siteUser:www-data ~/www-data/example.com/static the problem was

Re: Why would a deployed site shows up with distorted layout

2024-02-29 Thread Mordecai Etukudo
First install white noise and collect static you are good to go On Thu, Feb 29, 2024, 7:38 PM ASAMOAH EMMANUEL wrote: > I faced this issue before and I know how frustrating it can be. after > sifting through several results, this worked. sudo usermod -aG username > www-data > sudo chown -R

Re: Why would a deployed site shows up with distorted layout

2024-02-29 Thread ASAMOAH EMMANUEL
I faced this issue before and I know how frustrating it can be. after sifting through several results, this worked. sudo usermod -aG username www-data sudo chown -R :www-data /home/username/projects/personal On Thu, Feb 29, 2024 at 6:37 PM ASAMOAH EMMANUEL < emmanuelasamoah...@gmail.com> wrote:

Re: Why would a deployed site shows up with distorted layout

2024-02-29 Thread ASAMOAH EMMANUEL
Replace your username with this and run this code: sudo usermod -aG username www-data sudo chown -R :www-data /home/username/projects/personal On Thu, Feb 29, 2024 at 2:15 PM Amitesh Tripathi wrote: > Your website is in debug mode?? > > On Thu, 29 Feb 2024, 11:54 Ram, wrote: > >> Hi, >> >> We

Re: Why would a deployed site shows up with distorted layout

2024-02-29 Thread Shiva Shankar Pallapu
STATIC_URL = '/static/' if not DEBUG: STATIC_ROOT = '/home/django/www-data/ example.com/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static/'), ] Try this I Collected it from Django Documentation. On Thu, Feb 29, 2024 at 11:54 AM Ram wrote: > Hi, > > We are able to deploy our

Re: Why would a deployed site shows up with distorted layout

2024-02-29 Thread Amitesh Tripathi
Your website is in debug mode?? On Thu, 29 Feb 2024, 11:54 Ram, wrote: > Hi, > > We are able to deploy our pre-production site successfully using jenkins > deployment and as part of the deployment we do the following: > > 1. Django application with runserver > 2. Gunicorn restart > 3. Nginx

Re: Why would a deployed site shows up with distorted layout

2024-02-29 Thread Muhammad Juwaini Abdul Rahman
Most probably your nginx doesn't serve endpoint 'static'. On Thu, 29 Feb 2024 at 14:24, Ram wrote: > Hi, > > We are able to deploy our pre-production site successfully using jenkins > deployment and as part of the deployment we do the following: > > 1. Django application with runserver > 2.