Category : django

I’m trying to use requests package in my django project. I’ve installed pipenv using the following command pip install pipenv And I installed requests by using the command pipenv install requests as (myEnv) C:UsersdellPycharmProjectsWeatherAppweather>pipenv install requests Creating a virtualenv for this project… Pipfile: C:UsersdellPycharmProjectsWeatherAppweatherPipfile Using C:/Users/dell/AppData/Local/Programs/Python/Python39/python.exe (3.9.4) to create virtualenv… [=== ] Creating virtual environment…created ..

Read more

My django-celery code cannot reload, which I concluded after seeing an error that was supposedly resolved. Can anyone tell me how to properly restart my Celery server, or is the problem still existent? Running on Windows 10, by the way. file structure |– manage.py |– nttracker |– celery.py |– tasks.py |– settings.py I have not ..

Read more

I have installed django==3.1.4 and activated Venv on my windows machine and it works fine in myBlog project. But today when I try to run the server, got this error ImportError: Couldn’t import Django. Are you sure it’s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? but ..

Read more

Was attempting to run logstash on my python/django project with the following command on windows (using git bash): ./logstash -f path/to/logstash.conf I was getting this error /c/Program Files/logstash-7.13.0/bin/logstash: line 40: cd: too many arguments /c/Program Files/logstash-7.13.0/bin/logstash: line 40: /c/Users/Stephanie/Documents/Projects/BidRL/bidrl-reporting/bin/logstash.lib.sh: No such file or directory /c/Program Files/logstash-7.13.0/bin/logstash: line 41: setup: command not found /c/Program Files/logstash-7.13.0/bin/logstash: line ..

Read more

First of all, I’ve read I think all the most recent (2019 onwards) posts here about this problem to no avail 🙁 I’ve got an up&running default webapp with python3 and django already working with default db.sqlite2. I now neeed to change all that db backend to psql. So, from these sources: https://pypi.org/project/psycopg2/ https://www.psycopg.org/docs/install.html I’ve ..

Read more