Wednesday, February 28, 2024

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

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 <ram.mullapudi@gmail.com> 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 restart
 
But our web application loads with distorted layout and we have this setting for staticfiles

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')

We are wondering what is missing?

Best Regards,
~Ram

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F2xrz-hiJphYeuGX56hU26wWJGduUZHNibTUXVs-KtjeA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP2aU6Mt8tXpX%3Dg6nFOZJUvUA9BFbEWfm_7%3DJCqR9OMLVQ-paA%40mail.gmail.com.

No comments:

Post a Comment