Question: I want to get boolean for all strings having digits at the end of string. For example

```
import re
# list of strings
li = ['/Usein-kysytyt-kysymykset;jsessionid=0727CD5A45A05D3CBD5A26D459C34D9D.xxlapp11',
      '/vaatteet/naisten-vaatteet/naisten-takit/c/120204',
      '/pyoraily/pyorailyvarusteet/pyorankuljetuslaukut-ja-vannepussit/c/100818_8']
for i in li:
    if(bool(re.match('\d+$', i))):
        print(i)

```

So this should work and return me `True` for `li[1]` and `li[2]` and `False` for `li[0]` but it is returning false for all elements in the list. What is wrong here ?

Answer: 
Yes, `django.conf.urls.static.static` is only for development and not for production. For production, you should just need to configure your `MEDIA_URL` and `MEDIA_ROOT` settings and have your webserver serve the `MEDIA_ROOT` directory in the `MEDIA_URL` path.
Basically adding that in the URL `urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)` will make the media files in the URL existing. Try removing that and visit your media file in the URL and you will receive a `404 not found`. It's very similar to the concept that you are inserting a `view` for rendering the media `files`