ImportError: cannot import name HTTPSHandler using PIP

Facing an HTTPSHandler error while installing python packages using pip, following is the stack trace, --------desktop:~$ pip install Django==1.3 Traceback (most recent call last): File...

"ImportError: cannot import name commit_on_success" and "A server error occurred. Please contact the administrator." when running Django server

New to Python/Django. Trying to make a questionnaire app. Whenever I run $ python manage.py runserver the local server page gives me "A server error occurred. Please contact the...

Style of hijack button missing

I have: In settings.py: INSTALLED_APPS = ( .. 'hijack', # django-hijack 'compat', .. } ... # django-hijack HIJACK_USE_BOOTSTRAP = True HIJACK_DISPLAY_ADMIN_BUTTON = False # Since we...

AttributeError: 'module' object has no attribute 'getmro'

I try to start a python app and after many problems with dependencies I got into another problem. After googling for a few hours I turned to my fav site for answers python manage.py...

Wrapped error with setup_databases for pytest-django

After I added a new class to my models, I am unable to run my tests in my server. The problem is the error message seems to be wrapped and doesn't provide further information about the error. As...

ImportError: No module named compat

I am trying to track user activities on my site. For that purpose I am using django-tracking2 package. But after successfully installing the django-tracking2 package, I am getting an error: No...

ImportError: No module named myapp_o.urls

I have a django-oscar project I am working on. And I have been searching everywhere to solve this problem. Although, I have come across similiar questions here, I still can't solve the problem. I...

Why am I receiveing 'no module named wagtail' error when I try to launch django app

I have an existing Django Project. I would like to use Wagtail with it. I have followed the instructions here: http://docs.wagtail.io/en/v1.9/getting_started/integrating_into_django.html However...

How do I resolve the "'mathfilter' tag 'addition' stopped working since replicating django project" error?

Recently I moved a Django Project to a new virtual environment. Everything appears to be working fine, with the exception of the following error: TemplateSyntaxError at /profile/ Invalid filter:...

I got the following error while trying to push my Django app to Heroku: TomlDecodeError("Invalid date or number")

When I git push my Django app to Heroku, I get the error below. How do I know what needs to be changed in my code from this error? I'm not sure which date information I misconfigured to raise this...

Python 3.6 - Deployment to Heroku - Using Pipenv lock to add requirements falis because of a mismatch in subdependencies for the celery library

I am trying to configure my Django app for deployment to Heroku. When I attempt to lock my Pipfiles using pipenv lock --verbose I get the following error, saying that I have a mismatch in my...

Installing Channels: Python Django version and settings

I'm trying to add Channels to my app by following this tutorial: https://blog.heroku.com/in_deep_with_django_channels_the_future_of_real_time_apps_in_django The Django app compiles, but when I try...

alternative to range function in django template. TemplateSyntaxError: Could not parse the remainder

In template, I try to use: {% for i in range(object.punctuation) %} <i class="material-icons">star</i> {% endfor %} Where object.punctuation is an integer with the rating that the object...

aerospike python not works under centos 7

What i have running aerospike, test sql go okay installed client lib on same machine via pip3 install aerospike python version default for centos 7 Python 3.4.9 Sample for this page...

Docker build fails with dependency issues even though I am satisfying them

I'm looking for ideas as to why this is failing. I've done the same steps on my host and they work well, the packages I'm calling out provide the needed dependencies. Build Command: docker build...

Fresh mysql database getting "mydb.background_task doesn't exist" - Django

I have a fresh install of a django app that uses background_tasks. If I remove the models that use background_task then I am able to do python manage.py makemigrations However, if I keep them, I...

ModuleNotFoundError: No module named 'tinymce' for Django

So I get the following error: ModuleNotFoundError: No module named 'tinymce' when trying to deploy my Django app to Azure. It works perfectly when I test it locally, but breaks down on...

Docker & Python, Speed up when your requirements.pip list is huge?

Say you have a rather large requirements.pip when you modify a requirements.pip, it takes ages to build Docker image because it has to download and install all packages in requirements.pip Is...

Issues with Gunicon and Docker alpine-fat Image

I'm having a strange issue regarding Gunicorn installation for a Django project. My Dockerfile extends FROM openresty/openresty:alpine-fat as follows: FROM openresty/openresty:alpine-fat #...

Html Webpack Plugin: Child Compilation Failed error in React page

I'm new to React, and I'm following a tutorial, and after a 'yarn start' command, I go to 'localhost:3000' and see this error appear: Error: Child compilation failed: Module build failed (from...

Pytest not connecting to database after update

Pytest is throwing tons of errors after being forced to update because of Attrs library Every test has errors like ERROR [ 3%]Creating test database for alias 'default'...

What is the docker command to run my Django server?

I'm trying to Dockerize my local Django/MySql setup. I have this directory and file structure ... apache docker-compose.yml web - manage.py - venv - requirements.txt - ... Below is the...

Can't remotely start the project with pycharm

I have made a local workstation with CentOS 8, I have installed docker CE and everything necessary to set up a remote development environment (smb, firewall, etc.). My client computer is a mac and...

Unable to use http2 on nginx docker container

I want to use http2 by nginx image, but i tried very long the protocol are still using http/1.1 Dockerfile for nginx: FROM nginx COPY ./docker/nginx/etc/nginx/nginx.conf /etc/nginx/nginx.conf COPY...

SocketIo integration with Django

I have been trying to integrate socketio with Django, And I am getting the following error. [31/Mar/2020 14:50:27] "GET /socket.io/?EIO=3&transport=polling&t=N4n4ds4&b64=1 HTTP/1.1" 200...

ERROR: MySQL_python-1.2.5-cp27-none-win_amd64.whl is not a supported wheel on this platform

So I am setting up an old project it's Python 2 and Django 1 where I'm stuck with the installation of requirement.txt. This is the main error I'm getting while installing Building wheel for...

Table not creating for django-background-tasks

I am new to django and i am trying to use background-tasks for sending mail notifications. But I am getting error as django.db.utils.OperationalError: no such table: background_task I have added...

Why is installing python-psycopg2 on my Docker image not preventing the subsequent "No module named 'psycopg2'" error?

I'm using docker-compose v 1.27.4 on Mac. I have this docker-compose.yml file -- two services, a PostGres DB and a Python/Django app ... services: postgres: image: postgres:10.5 ...

Conflicting with version dependencies when running pip install

Having issues with version dependencies when running pip install on docker. However, when installing on my mac without docker and just virtualenv, works perfectly fine. These are the versions I...

Docker Image > 1GB in size from python:3.8.3-alpine

I'm pretty new to docker and, although I've read lots of articles, tutorials and watched YouTube videos, I'm still finding that my image size is in excess of 1 GB when the alpine image for Python...