+ 1
Django temlpate problem
i use a template im my django homepage.(http://127.0.0.1:8000/) I linked statics files in static folder and formed like {% static .....} in html file and it work correctly. static folder is in myproject folder.(migration,static,template,..) when i path it in urls in the main page it work correctly. but when I give it an slug like 'p/' it doesn't work. because it search for staticfile in this folder: "GET /p/static/post/js/scripts.js HTTP/1.1" 404 2598" Instead of “static/post/js/scripts.js my app name is "post" . please help https://stackoverflow.com/questions/63613170/how-can-i-add-a-url-for-my-template-in-django-JUMP_LINK__&&__python__&&__JUMP_LINK/63613684#63613684
2 odpowiedzi
+ 2
Did you tried changing static url from default to your new one??
0
The static and templates folder should be where your manage.py is placed.