Quantcast
Channel: User spraff - Stack Overflow
Browsing all 55 articles
Browse latest View live

Comment by spraff on `pip install mysqlclient` fails because `pkg-config...

As I already said in the question: yes.

View Article


Comment by spraff on Django serve static files e.g. favicon.ico without `{%...

Thanks. Note that STATIC_ROOT was not defined in my case, so I used settings.BASE_DIR / "myapp/static"

View Article


Comment by spraff on Django logging filter used at startup, but not during...

I don't want to filter all such things at the loglevel, I want to filter specific things.

View Article

Comment by spraff on Float text to right of table cell without losing...

I tried flex and it put the right part on a new line below the left part.

View Article

Comment by spraff on .vim/syntax/sql.vim: Error detected while processing...

Thank you, but I don't see how to interpret your answer given the repository I linked. Its README and structure doesn't seem relevant (e.g. there is no autoload in the repository). How can you tell...

View Article


Comment by spraff on "commands out of sync; you can't run this command now"...

It prints when the Commands out of sync passes through it, and not before. So this error is happening before the with block exits.

View Article

Comment by spraff on How should mysql.connector be shared correctly with...

How would I ensure that the thread pool is big enough?

View Article

Comment by spraff on "Column X cannot be null" happening when that column is...

@ErgestBasha it was a trigger issue, thank you. Would you like to make that a formal answer?

View Article


Comment by spraff on Why does jshint warn of calling functions from a...

The foo example is constructed to trigger the error. I'm not actually trying to do anything with x.

View Article


Comment by spraff on Why does jshint warn of calling functions from a...

I see why the warning would be valid for the second example, but not for the first.

View Article

Dockerfile from ubuntu:22.04 apt unable to locate package python3 [duplicate]

When I docker build this:FROM ubuntu:22.04RUN apt-get install -y python3I getStep 1/2 : FROM ubuntu:22.04 ---> c6b84b685f35Step 2/2 : RUN apt-get install -y python3 ---> Running in...

View Article

Django server not accessible when run through docker-compose: connection...

I have a docker image which runs django. Docker-compose is like this:services: www: image: my-www-image ports: - "80:80"If I docker exec -ti bash into this container and curl localhost, I get...

View Article

Answer by spraff for `pip install mysqlclient` fails because `pkg-config...

SettingMYSQLCLIENT_CFLAGS="-I/usr/include/mysql"MYSQLCLIENT_LDFLAGS="-L/usr/lib/x86_64-linux-gnu -lmysqlclient"worked for me, as per this answer.

View Article


Can files and directories be merge-mounted into a docker container such that...

A docker container has these files and directories:/foo//foo/a.txt/foo/subdir-1//foo/subdir-1/b.txtThe host has these files and directories:/bar//bar/a.txt/bar/subdir-1//bar/subdir-1/c.txtI want to...

View Article

Django serve static files e.g. favicon.ico without `{% load static %}`

I have successfully followed the popular solution for serving static files in Django:I have /myproject/myapp/static/favicon.icoI use <link rel="icon" href="{%static 'favicon.ico' %}" /> in my...

View Article


How to log missing template variable, showing location and context in Django?

I am following this tutorial ("With a logging filter that raises exceptions") to catch all invalid variable names in Django templates.myproject/mysite/logging.py:import loggingclass...

View Article

How does this tag prevent its contents from being downloaded?

Taking this video as an example, here is the html tag which seems to be the critical piece of content:<video id="dmp_Video" style="display: block; width: 350px; height: 197.436px; top: 0px; left:...

View Article


How to notify multiple separate cached Django read-only instances when a view...

I am considering a Django stack for a site with high-frequency read (GET) events and low-frequency write (POST) events.Suppose there are a large number of read-only instances which are all serving GET...

View Article

Django settings.py can't import my local module

My Django tree looks like thisgit/src├── myproject│  ├── settings.py│  ├── mysharedlib.py│  └── urls.py└── www├── myotherlib.py├── urls.py└── views.pyIt works except that in settings.py I haveimport...

View Article

How to let mysql docker start even if entrypoint scripts fail

I have a bunch of sql scripts in /docker-entrypoint-initdb.d/ which I am developing in a Docker container FROM ubuntu/mysql:8.0-22.04_betaThe container will not start if one of the scripts causes an...

View Article
Browsing all 55 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>