Nicolas Steinmetz wrote:

> 
> Hello,
> 
> I read Flickr Integration page on wiki [1] and I see that the third
> parties script FlickrClient was called through "from
> project.directory.file import module"
> 
> I tried the same with another lib in my views.py file but it does not work
> :
> 
> ViewDoesNotExist at /
> Could not import project.app.views. Error was: No module named lib.flickr
> 
> As flickr.py file is in /home/django/project/lib/
> 
> So how can I integrate such a third parties lib within Django ?

If I copy/paste the __init.py__ file from one of my app to lib/ and set
project.lib as installed apps, I now have :

>>> from project.lib.flickr import flickr
Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: cannot import name flickr

where I was used to have :

>>> from project.lib.flickr import flickr
Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: No module named lib.flickr


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to