mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.7k stars 498 forks source link

admin panel missing static files #470

Closed s0ftcorn closed 1 year ago

s0ftcorn commented 2 years ago

Describe the issue Django Admin panel misses static files. Im using the docker compose version, dont know if thats relevant.

To Reproduce Steps to reproduce the issue:

  1. Go to mediaCMS Administration

Expected behavior Well... i dont know how its supposed to look like but some kind of layout/design :D

Screenshots image

Environment (please complete the following information):

Additional context This appears in the logs:

2022/06/25 18:59:43 [error] 44#44: *15 open() "/home/mediacms.io/mediacms/static/admin/js/nav_sidebar.js" failed (2: No such file or directory),

And the directory inside the container indeed has no folder named "admin".

s0ftcorn commented 2 years ago

Small update, i tried : find . -path "*/css/dashboard.css" And got no result????? Did i miss something during setup?

Mozitux commented 2 years ago

Yes, some .css files seems to be missing. You can try to make a new clean installation or maybe put the right .css in the correct folder, but I'm not sure of the final result.

s0ftcorn commented 2 years ago

I did a clean installation after 01.07. because of the new commits. But they didnt change this issue. Could you point me in the direction of the right .css files? :D

Sharrnah commented 2 years ago

I have the same issue.

I did build a lot of workarounds already to get this running in a kubernetes cluster because of some oddities about the dockerimage.

Now it runs, but i can't find the static/admin files.

doesn't surprise also because its added to the .gitignore file for some reason.

C9Glax commented 2 years ago

These are the missing files. Place in static_store/static/admin https://github.com/django/django/tree/main/django/contrib/admin/static/admin

C9Glax commented 2 years ago

Also replica of #404

s0ftcorn commented 1 year ago

In the end i did:

python manage.py collectstatic

inside the mediacms-web container. Since these static files are kept in a docker volume, i think this is okay to do.