Ask coding questions

← Back to all posts
Add package to Django application
shiwei

Hi,
I am able to add packages (such as SpeechRecognition) to Python application without problem.
But if I created an Django repl and went through same process (the package was added to requirements.txt), it would return ModuleNotFoundError when I tried to reference the package.

Any idea?

Wei

Voters
coalesce
dotcomboom
shiwei
Comments
hotnewtop
NearshoringInfo

Hello everyone. There are a lot of useful tips here. Thank you! I like to look for interesting articles that can help me in the future. Recently I came across a site that will help many startups develop in the IT field. For example, one article tells about the Nearshoring IT in different countries. It was very interesting for me to read about it. explore the details https://www.nearshoring-info.ch/benefits-of-nearshoring/

PhoenixC

The issue is caused by the installation path is /home/runner/.site-packages instead of /usr/local/lib/python3.6/site-packages or /home/runner/.local/lib/python3.6/site-packages.

I wrote a script to move to move all the module to the right path:
https://repl.it/@PhoenixC/replit-Django-Module-Installation-Fix

Copy site_packages_setup.py to your project then add following code to the top of your settings.py:

You might need to restart the Django twice.

FillipSmith1

The undertaking of the offshore development center is to give the development group all the vital IT foundation and faculty, including authoritative and assistant HR that are important in the development cycle. Generally speaking, a particularly center is driven by a significant level and rank manager.Having an offshore programming development group can be exceptionally advantageous for a business as it sets aside you time and cash, one of the main assets in the present business world. Expertise to manage this effectively as it assumes a major part with regards to getting results. ODC will likely give adaptable innovation assets to kill superfluous expenses. Commonly, the customer organization straightforwardly supervises the offshore development center administrations, collaborating with the colleagues answerable for execution through the task administrator. The fundamental benefit here is that ODC assists with accelerating the development of huge undertakings, particularly when they have in excess of 25 engineers included. This is the place where ODS is a feasible working model. Else, you ought to consider the outstaffing model.Modern organizations that need to be on top of the mountain are continually searching for ways they could upgrade their exhibition and consequently be fruitful. One of the manners in which it very well may be done is building an Offshore Development Center.

Vandesm14

You need to create a Django repl instead of the basic python repl.

Please mark this as answered if I helped your problem 👍

shiwei

@Vandesm14
Basic python repl doesn't have problem. Only Django repl has the issue.