Reputation: 577
I'm using models.FileField like this below.
It's a fantastic django function. Because, it makes user can upload within Django administration page without any code.
So, I clicked Part image url Link. But, I got a error message below.
my urls pattern is below.
urlpatterns = [
url(r'^parts/', include('parts.urls', namespace='parts')),
url(r'^admin/', include(admin.site.urls)),
url(r'^$', views.MW_Hello.as_view(), name='Hello'),
]
Do I have to add url mapping in url patterns?
Upvotes: 0
Views: 131
Reputation: 5257
You need to configure your urls and settings for managing the static files
https://docs.djangoproject.com/en/1.8/howto/static-files/
https://docs.djangoproject.com/en/1.8/topics/files/
Upvotes: 2