mercredi 2 août 2017

Django 'if settings.DEBUG:' What that mean

I am django beginner. When I code file upload, I don't understand this code

if settings.DEBUG:
    urlpatterns+=static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Why did we have to code if settings.DEBUG:?

Aucun commentaire:

Enregistrer un commentaire