Thursday, February 22, 2018

Re: django admin css not loading in localhost

On 23/02/2018 11:49 AM, anurag bhadauriya wrote:
> i am using django-1.11.6. whenever i open my admin panel and login to it then it looks like the simple html file. no any css files are loading .The interface i am seeing is totally different than that of the tutorials using which i am learning.please give me the stepwise solution

Are you serving your site on localhost using the development server? Is
DEBUG set to True?

If so, ...

https://docs.djangoproject.com/en/1.11/howto/static-files/#serving-static-files-during-development

If not, you will need to run python manage.py collectstatic
--settings=myproject.settings

https://docs.djangoproject.com/en/1.11/howto/static-files/#deployment




>

--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/609e71d6-7f3a-080d-9841-01a36cbc7a78%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment