-
Notifications
You must be signed in to change notification settings - Fork 244
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
404 Errors in console many assets are missing from the static folder & template folder #543
Comments
@arunt1991 Try to use this command . python manage.py collectstatic |
Hi @arunt1991 , To resolve the issue, when testing the Horilla mail server, run the following command in the terminal:
(If you are using Ubuntu/macOS, replace python with python3.) If you need any further assistance, please let us know. Best Regards, |
Thanks for the reply, When I execute this command, I can see that a new folder called staticfiles is created with many assets, But, still when i run the project, I can see the same issue. Anything need to be updated in the settings.py ? The new called staticfiles is created with the above command you provided, but the http request is looking for some files under the path /static/build/js and /templates/sidebar.html Regards, |
Hello @arunt1991, It seems that JavaScript in the build files is making AJAX requests to Details:LoadLayout.js file:loadHeader() {
$("#sidebar").load("./../../templates/sidebar.html");
$("#mainNav").load("./../../templates/navbar.html");
} The build files Missing File:python manage.py findstatic build/js/summernote-lite.min.js.map
No matching file found for 'build/js/summernote-lite.min.js.map'. @horilla-opensource, is there a way to rebuild the static files to resolve this issue? |
Hi, Thank you for reporting this issue! The mentioned lines in LoadLayout.js are not used for Django HTML templates — they were originally used for designing static HTML pages. These lines are no longer required for the Django project. We have removed the unnecessary lines and added the required static files. Please pull the latest code from the repository, rebuild the static files, and try running the project again. If the issue persists, feel free to reach out for further assistance. Best regards, |
Hi @unreal0901 , Fixed unnecessary AJAX requests from LoadLayout.js in Django templates. Removed redundant lines used only in static HTML designs. Please pull the latest code, clear cache, and rebuild static files. Let us know if any issues persist. Best Regards, |
Bug Report
Description
404 Errors in console, it seems many assets are missing from the static folder & template folder
Steps to Reproduce
Expected Behavior
All static folder items has to be there, also the missing templates must be there.
Actual Behavior
A lot of 404 errors & template missing errors
Screenshots
CLI ERROS
BROWSER CONSOLE ERRORS
Environment
Priority
['high']
The text was updated successfully, but these errors were encountered: