Fix the import path for get_slugify
pydanny opened this issue · 2 comments
pydanny commented
At the moment, I can't do:
from slugify import get_slugify
I get an import error because of how slugify.__init__.py
is defined. Instead I have to do the following:
from slugify.main import get_slugify
I would like to either submit a patch to slugify.__init__.py
or correct the documentation. @dimka665, what approach would you prefer?
voronind commented
Fixed. Thanks.
pydanny commented
Also see the bottom of http://pydanny.com/awesome-slugify-human-readable-url-slugs-from-any-string-2.html for the credit.