I am new to Django.
I have some doubts about installing 3rd party Apps in Django.
A specific example. The "django-registration" App in
https://bitbucket.org/ubernostrum/django-registration/src. Reading the
instructions the doc tell us to install this app with PIP(pip install
django-registration), doing this the App will be installed in Python
Site-packages, right?
My question is: The App must to be installed in that way? Why not put
the 'django-registration' folder in our Project as an App?
PS: This is a starter Django Question.
Best Regards,
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Using pip will take care of requirements the package might have and
install it in the right python lib folder so several projects can use
it among other things.
Are there good reasons NOT to use pip/easy_install or at least python
setup.py install?
Thomas
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>
--
Mvh/Best regards,
Thomas Weholt
http://www.weholt.org
I’ve got functions listening for the registration/activation signals, but they’re not getting called!
The most common cause of this is placing django-registration in a sub-directory that’s on your Python import path, rather than installing it directly onto the import path as normal. Importing from django-registration in that case can cause various issues, including incorrectly connecting signal handlers. For example, if you were to place django-registration inside a directory named django_apps, and refer to it in that manner, you would end up with a situation where your code does this:
from django_apps.registration.signals import user_registeredBut django-registration will be doing:
from registration.signals import user_registeredFrom Python’s point of view, these import statements refer to two different objects in two different modules, and so signal handlers connected to the signal from the first import will not be called when the signal is sent using the second import.
To avoid this problem, follow the standard practice of installing django-registration directly on your import path and always referring to it by its own module name: registration (and in general, it is always a good idea to follow normal Python practices for installing and using Django applications).
Best Regards,