Tuesday, December 18, 2018

Django deployment on production gives error SuspiciousFileOperation

I am getting a error when i am running the command 

  python manage.py collectstatic

I have deployed my project on the production server I am only using the django admin part for my project, All the functionality is working fine but the css,js and images are not loaded, So to collect the static files i am running the above command and getting error
 
django.core.exceptions.SuspiciousFileOperation: The joined path (D:\clearance_tool\swmaster\new\static\admin\css\autocomplete.css) is located outside of the base path component (D:\clearance_tool\swmaster\new\static\) 

Please help and let me know facing about this issue

code.png


project.PNG

 

command.PNG

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c2f4fe8e-d757-43ab-ac00-0ff05becaf52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment