rmax / django-dummyimage

Dynamic Dummy Image Generator For Django!
http://dummyimage.rolandoespinoza.info/
BSD 3-Clause "New" or "Revised" License
55 stars 14 forks source link

Request for minor update of README of Installation #3

Open md3sum opened 11 years ago

md3sum commented 11 years ago

Hello, May I suggest an addition to the README file which suggests that to install dummyimage, adding the urlpatterns to the development servers urlconf is needed for the reverse operation to work.

In app urls.py:

from dummyimage.urls import urlpatterns as dummy_urls

After declaration of urlpatterns:

urlpatterns += dummy_urls

I landed spending an hour figuring out why does the reverse keep failing before I sorted this out. Figured I would suggest it.

Thoughts?

Update: Updated the line based on the following comment

noplacetoh1de commented 10 years ago

That suggestion saved me a lot of debugging time, thanks.

Btw.: it should be instead of: import dummyimage.urls import urlpatterns as dummy_urls

this: from dummyimage.urls import urlpatterns as dummy_urls