Hot answers tagged

5 votes

"python" points to Python 2.7 under macOS Homebrew

Please read the info printed by brew info python. It also links to the Homebrew website on Python, where it says: The executables are organized as follows so that Python 2 and Python 3 can both ...
  • 218k
4 votes

sslv3 alert handshake failure (_ssl.c:590)?

I had the same problem and this is what I found and how I fixed: The Python version provided by Apple is out of date in regards to openssl. You can test your version by going into terminal: python &...
  • 141
4 votes

debian stretch upgrade - mariadb removed libmysqlclient.so.18 - how to get it back?

I fixed this error with ln -s /usr/lib/x86_64-linux-gnu/libmariadb.so.2 /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 The libmariadb.so.2 comes with the libmariadb2 package.
  • 41
4 votes
Accepted

debian stretch upgrade - mariadb removed libmysqlclient.so.18 - how to get it back?

as a temporary fix, I installed the deb for libmysqlclient18 directly from here: https://launchpad.net/ubuntu/xenial/amd64/libmysqlclient18/5.6.25-0ubuntu1 a more official answer would be welcome.
3 votes

Is there a way to install GeoIP from source code on Mac OS X?

I realize at this point this question is about 4+ years old, but I wanted to add additional details on how users of more current versions of Mac OS X—like Mac OS X 10.7 (Lion), Mac OS X 10.8 (Mountain ...
  • 51.6k
3 votes
Accepted

Apache2 (reverse proxy) + Django + Gunicorn

You'll likely need to alter your ProxyPass and ProxyPassReverse directives to get this to work. You should try replacing these lines: ProxyPass /static/ ! ProxyPass /mydjangoproject https://192.168....
  • 15.9k
2 votes
Accepted

Install apache2-dev for mod_wsgi

I think that apache2-dev is a virtual package provided by apache2-threaded-dev. Installing that should get you what you need.
  • 466
2 votes
Accepted

Where does django look for SQLite instance? (SQLite 3.8.3 or later is required (found 3.7.17))

I came across the same issue. I had installed sqlite 3.28.0, but I was getting the same error while migrating. checking the output of the error I could see that the line 63 of the base.py file raised ...
  • 36
1 vote

"This page isn't redirecting properly" on one particular site with one particular user

Try to have this user : Clear the Firefox browser cache Clear cookies for your specific domain. Or the opposite: The user might have refused cookies for your site. This might also be caused by some ...
  • 430k
1 vote
Accepted

How can I handle a sensitive settings file during deployment?

Have a look into using environment variables for settings you wish to keep secret (like the SECRET_KEY). Have a look at the docs to see how to use it for settings files. You can apply the same thing ...
1 vote

Opening a .py file directly

What you are doing if you double-click is executing it, opening it in python directly. If you want to open it in IDLE, you have to right-click and select the IDLE-Application (you probably have to ...
1 vote

pipenv ModuleNotFoundError: "No module named 'datetime'" after reinstalling Python

I was able to "solve" (I guess it's more like a hack job?) this issue by going into the .virtualenvs folder, located in C:\Users\<user>\.virtualenvs, and deleting all the project folders that ...
1 vote

AWS ACCESS KEY ISSUE

You needed to invalidate that key anyway, because you don't know who had access to it. Now you have to create a new access key on IAM and use it in your scripts. Make sure the new created key is ...
  • 1,519
1 vote
Accepted

After renewing letsencrypt SSL certifications, server only returns response code 400

The problem does not seem to be directly related to SSL but it looks more like you are using a broken HTTP client which sends multiple HTTP Host fields. This is plain wrong and totally against the ...
1 vote
Accepted

How to connect Django running in a container with datadog agent running in host

So, I finally figured it out. Datadog agent is rejecting connections because it is only bound to localhost. I edited file /etc/datadog-agent/datadog.yaml and changed the following: use_dogstatsd: ...
  • 131
1 vote

Using an existing Django project in a new Docker container

The answer to your question can be found in https://docs.docker.com/compose/django/#connect-the-database. If you actually set your database as explained in the link, such that your DATABASE config ...
1 vote

debian stretch upgrade - mariadb removed libmysqlclient.so.18 - how to get it back?

I wanted to say thank you for creating this thread, it helped immensely. My issue was near identical and it occurred after a distribution upgrade to Debian Buster - I elected to upgrade all mariaDB ...
  • 11
1 vote
Accepted

Ensure that Gunicorn restarts when the old process dies

I found a solution by myself: Gunicorn can be controlled by supervisord. An example configuration can be found in the Gunicorn documentation.
  • 125
1 vote
Accepted

FreeNAS working - WebGUI non existant - services refuse to start

This sounds to me like your system drive (USB?) might be failing or an update went wrong. The configuration should be here: /data/FreeNAS-v1.db Reinstalling is probably the easiest way out of this. ...
  • 146
1 vote

How do I get Docker to write into a local directory?

To get access to those files you either need: to launch the container with a volume so you can access the files via the host. Your dockerfile at the moment with the ADD instruction only pushes local ...
1 vote
Accepted

Apache virtual host shows "index of" page instead of website

Here are your configs; reformatted my me for readability: <VirtualHost 52.79.**.**:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/qna Alias /m/ /var/www/qna/static/ ...
  • 51.6k
1 vote
Accepted

virtualenv cannot create environment

well i switched to centos7 and got my django1.8 working with below commands yum install gcc libffi-devel python-devel openssl-devel yum install python-devel yum group install "Development Tools" yum ...
1 vote

Deploying Django using Phusion Passenger - file upload failure

Answer provided here by a Passenger Author: https://stackoverflow.com/questions/30842187/django-file-upload-took-forever-with-phusion-passenger Basically, upgrade to version 5 of Passenger.
  • 121

Only top scored, non community-wiki answers of a minimum length are eligible