Regarding static media setup

20 views
Skip to first unread message

ashok kumar reddy

unread,
Oct 12, 2018, 2:14:40 AM10/12/18
to django...@googlegroups.com
Hello everyone . When I try to setup static Media ,I am repeatedly getting error in URLs.py(urlpatterns not defined ). could you solve this.

Ігор Магур

unread,
Oct 12, 2018, 2:25:36 AM10/12/18
to Django users
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 написав:

Joel

unread,
Oct 12, 2018, 2:29:53 AM10/12/18
to django...@googlegroups.com
Post the relevant files if you want someone to help

On Fri, 12 Oct, 2018, 11:44 AM ashok kumar reddy, <ashok110...@gmail.com> wrote:
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 django-users...@googlegroups.com.
To post to this group, send email to django...@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/CAL3x8KNbwLjxXQ3GwP6UXzWHG_0om%3DhQJZ1G%2BeMfARCOCKEmzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages