If you wrote something like this:
if settings.DEBUG:
# static files (images, css, javascript, etc.)
urlpatterns += path(...)
Make shure that you defined urlpatterns before, like urlpatterns = [], or
probably missing definition sign. Need your's urls.py content for a correct
answer)
пʼятниця, 12 жовтня 2018 р. 09:14:40 UTC+3 користувач Ashok Reddy написав:
>
> Hello everyone . When I try to setup static Media ,I am repeatedly getting
> error in URLs.py(urlpatterns not defined ). could you solve this.
>
--
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 [email protected].
To post to this group, send email to [email protected].
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/09348db5-61c2-4b2c-84c1-8c19b53a3ce7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.