Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django部署在docker上,admin界面主题没有更改 #495

Open
JMcico opened this issue Apr 4, 2024 · 0 comments
Open

Django部署在docker上,admin界面主题没有更改 #495

JMcico opened this issue Apr 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JMcico
Copy link

JMcico commented Apr 4, 2024

bug描述

  • *Bug description * *
  • 我的Django是部署在docker上的,我在requirements.txt中增加了django-simpleui后,再在settings.py的INSTALLED_APPS的第一项增加'simpleui',在重新build整个服务后,发现admin的界面并没有任何更改。
  • 而且在把DEBUG设置为false后,我使用docker exec -it django python manage.py collectstatic 后,静态文件也都没有加载出来,但是我的STATIC_ROOT = os.path.join(BASE_DIR, "static")和STATIC_URL='/static/'这样设置的,但是依旧无法呈现simpleui的默认主题

简单的描述下遇到的bug:
Briefly describe the bugs encountered:

重现步骤
** repeat step **

  1. 在requirements.txt中增加django-simpleui,修改settings.py中的INSTALLED_APPS中添加'simpleui'在第一行,并重新执行docker-compose up --build,构建服务
    2.使用docker exec -it django bash进入django容器,用pip list查看安装的依赖,可以看到django-simpleui已经安装了
    3.使用IP:port/admin访问运行的Django服务的admin界面,但显示的还是原先的风格
    Screenshot 2024-04-04 163520

环境
** environment**

1.Operating System:
Ubuntu 22.04.3

2.Python Version:
3.10

3.Django Version:
4.2.4

4.SimpleUI Version:
2024.4.1

@JMcico JMcico added the bug Something isn't working label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant