So, it's not possible to import it just from my project dir? The only way it to ask my hosting provider to install it? I have SSH terminal but I wanted it to be more portable and put it in my project:/
On 17 Lis, 10:25, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Nov 17, 9:11 am, robos85 <prog...@gmail.com> wrote: > > > Hi, > > I want to use reCaptcha on my site. It requires to add recaptcha > > module. Is it possible to not to add this to python modules, but place > > somewhere in my app, and then import it from there? > > > I placed it in my project main dir, co path looks like this: /project/ > > customlibs/recaptcha/... > > I try to import it in my view: > > from project.customlibs.recaptcha.client import captcha > > It says: Could not import index.views. Error was: No module named > > customlibs.recaptcha.client > > > It would be nice not to have to install it as Python module (shared > > hosting server). > > Just because you're on shared hosting, it doesn't mean you can't > install library modules. You can either install them in your own local > lib directory (with `python setup.py install --home=~`), or even > better use a virtualenv and install them inside that. > -- > DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.