2π
(Sorry about the answer β I donβt yet have the rep to comment)
Just want to add a note on to the answer by D.Mo β I had the same error this morning, and adding quotes around the values in my .env
file did seem to resolve the issue.
Though I then noticed that in the documentation for these env files, Docker mentions
There is no special handling of quotation marks. This means that they are part of the VAL.
Just wanted to point that out in case anyone ran into issues with this.
I will likely just keep this change locally until others in my team experience the same problem β unless someone can confirm that the ENV values should now have ""
s around them.
FWIW I could not find a way to disable Docker Compose V2 (Iβm on Arch, Docker v20.10.9) β docker-compose disable-v2
isnβt a valid command for me (see here for what I assume is the (imo silly) reason).
Edit β I ended up reverting to a previous version of docker-compose
as the constant workarounds I had to implement werenβt fun.
I did so after seeing this β I ended up looking around yay -U /var/cache/pacman/pkg/docker-compose-
and tab-complete gave me a list of cached versions. I went with 1.29.2-1
and things have been working perfectly again since then. Will just have to see what happens in future updates etc.
18π
Turning off the "Use Docker Compose V2" flag in the settings did it for me.
- No matching distribution found for django
- Editing response content in Django middleware
- How to deploy a subdirectory of git repo to elastic beanstalk
- Specifying Readonly access for Django.db connection object
- Django abstract parent model save overriding
5π
I had a similar problem with a docker container. It probably appears after a system update under my linux. I canβt say anything about the reason, but try following:
Quote the variable values in file ".env" of the Project, such as:
DEBUG=0
SECRET_KEY=foo
DJANGO_ALLOWED_HOSTS="localhost 127.0.0.1 192.168.2.253"
DJANGO_SETTINGS_MODULE="djdict.settings_prod"
SQL_ENGINE="django.db.backends.postgresql"
# ...
And try again
- Adding link to django admin page
- Live notification/chat in django
- U'rest_framework' is not a registered namespace
- How to display total record count against models in django admin
2π
I changed Encoding of my .env
file to UTF-8
.
Earlier it was UTF-8-BOM
and that caused the problem.
- Google App Engine logs a mess of New connection for β¦ and Client closed local connection on
- Django class based views β UpdateView with two model forms β one submit
- DeleteView with a dynamic success_url dependent on id
- Why would I need a separate webserver for Django?
- Cannot load library libcairo
0π
For latest mac M1. Use the UI to disable
Use Docker Compose V2
or in terminal
docker-compose disable-v2
- Django: AttributeError: 'NoneType' object has no attribute 'split'
- Downloading the files(which are uploaded) from media folder in django 1.4.3