Re: Admin site's css doesn't work.

2020-09-19 Thread Ogunsanya Opeyemi
Try creating a project locally on your computer set STATIC_ROOT in the settings fileand run this command python manage.py collectstatic then go to the static root folder and copy the static files the put it insIde the static root folder on the cpanel. On Saturday, September 19, 2020, English Lear

Re: Admin site's css doesn't work.

2020-09-18 Thread English Learning
Thank you so much for your Amazing, Lovely Answer. I added static STATIC_ROOT = os.path.join(BASE_DIR, 'static') . But the problem is I didn't register static files on the server. Please can you tell me? how can I register for it? I am using Linux shared hosting with Cpanel. Is there any tutorial

Re: Admin site's css doesn't work.

2020-09-17 Thread Ankit Gadewal
If you run it on localhost it works fine but when you run site in production static files fails to work. So you have to add static root in Django setting.py file like STATIC_ROOT = os.path.join(BASE_DIR, 'static') and then run python manage.py collectstatic command. It will collect all the server s

Re: Admin site's css doesn't work.

2020-09-17 Thread Omkar Parab
server is not able to find your static files. Run collect static command and add static root to your settings.py On Thu, Sep 17, 2020, 7:16 PM English Learning wrote: > when I host it, Admin's *CSS* doesn't show. Also, I am using SQLite > database. Screenshot is here: > > [image: DjangoAdmin.png

Admin site's css doesn't work.

2020-09-17 Thread English Learning
when I host it, Admin's *CSS* doesn't show. Also, I am using SQLite database. Screenshot is here: [image: DjangoAdmin.png] Is it a Database problem? Please let me know the answer. I am suffering from it because it is a Client project. -- You received this message because you are subscribed