it's Not Working with me i can't figure why i did exxactly the same as u did , but while iam supposed to get error 404 iam getting 500 , i tried searching for it , and Solns say that my website can't see 404 page so it's getting 500
To access the static files in production environment, you should serve it as a url. In order to do that. Inside urls.py: from django.urls import re_path from django.views.static import serve urlpatterns = [ ... ... re_path(r'^static/(?P.*)$', serve,{'document_root': settings.STATIC_ROOT}), ] I hope that you are having static files inside a folder named "static"
I'm so tired that I wanted to comment about how loud your music is, then I realised It's mine
thnks a lot bro
i hope you do more like this
thanks mate . need more videos like this
greate video
Awesome. Thanks!
it's Not Working with me i can't figure why i did exxactly the same as u did , but while iam supposed to get error 404 iam getting 500 , i tried searching for it , and Solns say that my website can't see 404 page so it's getting 500
I had the same error. The problem I HAD was not providing the correct template location.
Thanks brother.
thanks for the video.
After Removing this ["*"] this * its works btw thanks
if i set my debug to false it breaks my static files DEBUG = False
ALLOWED_HOSTS = ['*']
To access the static files in production environment, you should serve it as a url. In order to do that.
Inside urls.py:
from django.urls import re_path
from django.views.static import serve
urlpatterns = [
...
...
re_path(r'^static/(?P.*)$', serve,{'document_root': settings.STATIC_ROOT}),
]
I hope that you are having static files inside a folder named "static"