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

Wrong path to admin static files #23

Open
obrenckle opened this issue Feb 14, 2023 · 0 comments · May be fixed by #25
Open

Wrong path to admin static files #23

obrenckle opened this issue Feb 14, 2023 · 0 comments · May be fixed by #25

Comments

@obrenckle
Copy link
Contributor

Describe the bug

The request for static files for the django admin interface returns a 404.
At a guess, the locations for /media/admin and /static/admin in the nginx configuration (in /conf/nginx.conf) expect a python 3.7 virtualenv but the set_up_virtualenv function (in scripts/_common.sh) use the generic python3 executable.
This can end up with a missmatch between expected and actual path (in my case venv/lib/python3.7/ instead of venv/lib/python3.9/).

I tried changing both locations in /conf/nginx.conf before installing the app, and the django admin interface worked as expected.

Context

  • Hardware: Other ARM board, A20-OLinuXino-Lime2
  • YunoHost version: 11.0.11
  • I have access to my server: everything
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: Yunohost installed over a fresh armbian
  • Using, or trying to install package version/branch: 2.11.20220622~ynh2

Steps to reproduce

  1. Install app
  2. Go to the django admin interface of the app (https://APP_URL/admin/
  3. All static files return a 404 error, the admin interface is an almost unusable mess

Expected behavior

The static files are requested from the correct url and the admin interface is rendered correctly

@obrenckle obrenckle linked a pull request Feb 21, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant