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

UserWarning: No directory at: ~/.ara/www/static/ #492

Closed
dmsimard opened this issue Jun 24, 2023 · 0 comments · Fixed by #505
Closed

UserWarning: No directory at: ~/.ara/www/static/ #492

dmsimard opened this issue Jun 24, 2023 · 0 comments · Fixed by #505
Labels
built-in server/offline client Related to "ara-manage runserver" or the offline API client
Milestone

Comments

@dmsimard
Copy link
Contributor

dmsimard commented Jun 24, 2023

What is the issue ?

Came across this warning today:

lib/python3.11/site-packages/django/core/handlers/base.py:58: UserWarning: No directory at: /home/dmsimard/.ara/www/static/

I guess it is from one of the newer django releases. I've noticed the issue with django 3.2.19.

What should be happening ?

We go to some lengths to bypass the need for a static directory because files are served out of django with whitenoise instead (i.e, evansd/whitenoise#215).

In these circumstances, the warning is not relevant because there are no files meant to be found there.

@dmsimard dmsimard added the built-in server/offline client Related to "ara-manage runserver" or the offline API client label Jun 24, 2023
@dmsimard dmsimard added this to the 1.7.0 milestone Aug 29, 2023
dmsimard added a commit to dmsimard/ara that referenced this issue Sep 3, 2023
Django expects a directory with static files but we are using whitenoise
to serve the files transparently. We can ignore this warning.

Fixes: ansible-community#492
dmsimard added a commit that referenced this issue Sep 4, 2023
Django expects a directory with static files but we are using whitenoise
to serve the files transparently. We can ignore this warning.

Fixes: #492
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
built-in server/offline client Related to "ara-manage runserver" or the offline API client
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant