Are there things like Django gems - plugins like Ruby gems

Are there things like Django gems - plugins like Ruby gems,

as auth control plugin etc.

+5
source share
3 answers

To add a bit more detail to the other answers, the equivalent of Ruby stones is the Python “eggs”. I don't know Ruby, so I'm not sure how accurate this equivalence is, but the eggs are mostly installation files for Python packages - they provide Python information about which packages are installed. An egg is usually created by running ./setup.py installfrom the package directory or using setuptools, i.e. pip install NAME-OF-PACKAGE(The latter method is usually simpler because it downloads the files for you and installs all the necessary dependencies). It should be noted that any package (any folder with a file __init__.pyin it) or a module that fits in PYTHONPATH can be imported by Python; their simply helps you keep track of which packages are in use and makes it easier to work with complex packages that have many dependencies.

Django, @EinLama, ( , models.py, views.py, urls.py ..). Python, , - , PYTHONPATH ( settings.py, Django ), , , , , , , , , . , , . , , Django - Python .

, .

+4

Python, Ruby Gems. , Django. , Django

+3

He named Applications in the Django World.

You can find some of them here: https://www.djangopackages.com/

+2
source

All Articles