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
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
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:
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
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
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
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.
7 matches
Mail list logo