0xE111 / django-mptt-urls

Creating hierarchical URLs in Django associated with django-MPTT models
MIT License
36 stars 5 forks source link

url_mptt import error #3

Closed pkout closed 10 years ago

pkout commented 10 years ago

Hi,

I am trying to use your djang-mptt-urls module, but when I refresh the page, I get this error:

[Wed May 14 21:50:51 2014] [error] [client 127.0.0.1] File "/home/petr/projects/xyz/notespace/core/urls.py", line 3, in [Wed May 14 21:50:51 2014] [error] [client 127.0.0.1] from mptt_urls import url_mptt [Wed May 14 21:50:51 2014] [error] [client 127.0.0.1] ImportError: cannot import name url_mptt

I installed the module using pip as was suggested on the readme page. What could be wrong? Any ideas? Thank you!

captainhurst commented 10 years ago

@pkout Did you ever find a resolution to this issue? I'm getting the same issue. Python 2.7.5 Django 1.6.2

MrKesn commented 10 years ago

I cannot remember what the hell I was doing, but the github and pip versions differ. Use the one from github:

git clone https://github.com/MrKesn/django-mptt-urls.git
cd django-mptt-urls
python setup.py install

Anyway, thank you for the notification. I will make code refactoring soon (py3, django1.7) and fix the pip version.