Questions tagged [cookiecutter-django]

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.

Powered by Cookiecutter, Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly. It is an open source tool, designed with best practices in mind to move the boilerplate of building deployable Django projects out of the way.

222 questions
0
votes
0 answers

Using Cookiecutter Django Docker backup functions on a Windows machine

I have used Cookiecutter Django to create a dockerized project, which I have deployed to production. I can use the commands for backing up, checking backups, and restoring all fine on my production server, which is a linux machine. I was hoping to…
0
votes
0 answers

Django cookicecutter Docker not working [build errors]

I have been getting the below terminal errors when running: docker-compose -f local.yml build While following the docs here for running cookiecutter-django locally: cookiecutter django docs The output I am getting where it freezes is shown below: …
PapaSmurf
  • 43
  • 8
0
votes
0 answers

Django DB issue (Interface error: connection closed)

Calling all Pythonistas! I'm embarrassed to say, but this issue has been plaguing us for 3 weeks! It's intermittent with no rhyme or reason. Ubuntu 22.04 running Docker containers (uses the solid cookiecutter-django) as a base which we've used…
tsantor
  • 514
  • 1
  • 6
  • 20
0
votes
0 answers

Use of choice variables with cookiecutter version 2.1.1 failing with clueless error

I am using the cookiecutter python library with the following version : Cookiecutter 2.1.1. I'm working with this version to use some of the v2 features so I don't wish to downgrade the version. In the parameters that I'm using, I have something…
Alex
  • 389
  • 4
  • 21
0
votes
1 answer

Cookiecutter : Stop the execution of the cookiecutter if user gives no as input to one parameter

Cookiecutter.json has a parameter which accepts "yes" or "no": { "test" : [ "yes", "no"] } If a user selects "yes" then it should continue accepting the inputs further, if not it should stop. The same logic is included in pre_gen_project.py under…
0
votes
0 answers

pycharm cookiecutter docker django project Django support not working

I have a project that I have created with cookieecutter django (docker). I'm setting up Interpreter via docker-compose via Pycharm. Interpreter works fine. Django support is not working even though I have Django Support enabled. However, when I use…
ryuzakiii
  • 1
  • 2
0
votes
1 answer

Proper python environment for Visual Studio Code linter with my cookiecutter-django site being developed in a container?

I am building a website with django in a docker container. All has been generated with cookiecutter-django following the official cookiecutter-django documentation Getting Up and Running Locally With Docker. The site runs well, I can develop without…
0
votes
1 answer

Cookiecutter-django custom User field is never saved to DB

I'm struggling with a banal (I guess) issue with cookiecutter-django... I added the field invitation_code to users.models.User: class User(AbstractUser): """ Default custom user model for pintable. If adding fields that need to be filled…
masavini
  • 119
  • 1
  • 3
  • 10
0
votes
0 answers

Django Cookie Cutter - postgres not found

I'm following the book, "A Wedge of Django," and it uses the Cookiecutter template framework. It says to check if postgres is running by entering pg_isready into the command line. But pg_isready gives an error and postgres -V also gives an error,…
jpanknin
  • 115
  • 2
  • 3
  • 11
0
votes
1 answer

No module named 'project_name' with Django + Celery?

Day 2 of debugging this I have to turn to stackoverflow I'm on the edge. I used cookiecutter-django to generate my project months ago. Project name config/settings/... src/ app_name/ __init__.py manage.py when I…
0
votes
1 answer

How to add a new pip package to the project?

I'm working in a project generated by cookiecutter-django localy using docker, I wanted to add new packeges, what is the best aproche to perform this? I'm actually copying the version of the package and pasting into the base requirements file and…
0
votes
1 answer

ModuleNotFoundError: No module named 'config' outside django app

I am using cookiecutter-django on my project and having problem while trying to import settings from config outside app. Getting error ModuleNotFoundError: No module named 'config' Project structure project ┣ .envs ┃ ┗ .local ┃ ┃ ┣ .bot ┃ ┃ ┣…
mirodil
  • 422
  • 2
  • 8
  • 21
0
votes
1 answer

Django development Server does not reload in docker container

with cookiecutter-django I use the docker setup in the sync version. Unfortunately, the development server does not restart automatically on any code change. Which means I would need to restart the containers on every change, which is a hassle. I am…
schacki
  • 9,401
  • 5
  • 29
  • 32
0
votes
1 answer

Django: Webp conversion fails and creates empty picture element while all debugging efforts fail

Update: After making some smaller changes to the accepted answer i was able to resolve it: class GalleryView(APIView): parser_class = (FileUploadParser,) def post(self, request): # Extract the facility ID and list of pictures from the…
0
votes
0 answers

Cookiecutter Django on docker-compose stops hot reloading

At random points in development, hot reload stops working on a Cookiecutter Django application. It happened to me 3 times in different projects, at seemingly random points. There's been no changes to the initial Dockerfile and local.yml script that…
Lev Slinsen
  • 369
  • 1
  • 4
  • 21