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
1
vote
1 answer

django.core.exceptions.ImproperlyConfigured: Set the REDIS_URL environment variable

I used Django-Cookiecutter to boost start my Django development. Now after building the website and wanting to host it, my choice was python anywhere and that's because I have already hosted a website there but that website wasn't built using…
1
vote
2 answers

EOF occurred in violation of protocol (_ssl.c:1125) on python:3.8-slim-buster

I recently updated a django api from 2.2 to 3.1. I updated the dockerfile and related bash files like django-cookiecutter did…
Harry Moreno
  • 10,231
  • 7
  • 64
  • 116
1
vote
1 answer

How to deploy a Django project generated by Cookie cutter to Elastic Beanstalk?

So I'm following a book named Django Crash Course by the Greenfelds. Here's the starter template they used. https://github.com/feldroy/django-crash-starter So this project template generates a Django version of 3.1.1 with Python 3.8. I tried to use…
1
vote
2 answers

Traefik configuration not connecting to phones using AT&T

I recently started deploying my sites using Traefik for both ssl and reverse proxy. All seemed to be going well except phones specifically using AT&T data plans don't seem able to successfully connect to my sites. I get no error messages when they…
Display name
  • 753
  • 10
  • 28
1
vote
1 answer

Upgrading Django version

I am trying to update the django version in requirements/base.txt from 3.0.11 to 3.1 requirements/base.txt # Django # ------------------------------------------------------------------------------ django==3.1 # pyup: < 3.1 #…
1
vote
1 answer

How to upgrade to popperjs/core via package.json: name can only contain URL-friendly characters?

So, I wanted to upgrade my package.json stack due to a harmless deprecation warning: npm WARN deprecated popper.js@1.14.3: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 Turns out popper.js is…
Malte
  • 337
  • 1
  • 11
1
vote
1 answer

Code navigation lost in VScode with Django + Docker

I could not find the code definition using Ctrl + click when I use Docker + Django in my project, since source code are now in container. How could I configure my VScode to enable code navigation?
1
vote
1 answer

(Cookiecutter-django) Docker deployment on Raspberry Pi 4: Why does the build fail?

I am trying to deploy a small Django app dockerized using cookiecutter-django on a Raspberry Pi 4 running Rasbian (Linux raspberrypi 4.19.97-v7l+). I would say that my setup is pretty vanilla and am hoping I am not the only one who ran into…
Malte
  • 337
  • 1
  • 11
1
vote
1 answer

Error deploying Cookiecutter-Django app to Heroku

I'm working with the Django Cookiecutter boilerplate, using Docker. Everything works fine locally so now I'm trying to deploy the app to Heroku by following this guide: Deployment on Heroku. I'm using Django 3 and Rest framework. Docker for…
MaxRah
  • 243
  • 1
  • 6
  • 21
1
vote
1 answer

Problem with docker-compose up for django cookiecutter ->Django Error: relation "users_user" does not exist

I'm using Django Cookiecutter template to my project and when I build docker image with docker-compose every think is fine, but when I execute docker-compose -f local.yml up I get this output postgres_1 | This user must also own the server…
Krystian K
  • 377
  • 1
  • 3
  • 13
1
vote
1 answer

Docker compose throws error during build: Service 'postgres' failed to build: exec: \"/bin/sh\": stat /bin/sh: no such file or directory": unknown

I pulled a fresh cookiecutter django template and I want to use docker. When I do docker-compose -f local.yml build I get this error: Service 'postgres' failed to build: OCI runtime create failed: container_linux.go:346: starting container…
Micromegas
  • 1,499
  • 2
  • 20
  • 49
1
vote
2 answers

Django sphinx documentation does not read environment variables in settings file

I want to document my cookiecutter django project with sphinx. The problem is that when running make html sphinx gives me problems reading the config file. It says django.core.exceptions.ImproperlyConfigured: Set the USE_DOCKER environment…
1
vote
1 answer

Altering the username of the User model to use PhoneNumberField instead of CharField causes errors

I work on a project started from the cookiecutter-django, and I altered the username of the User model to use PhoneNumberField from django-phonenumber-field package instead of the ordinary models.CharField, and I got this error when I tried to issue…
shahwan42
  • 75
  • 9
1
vote
0 answers

Cannot Edit User on django admin

I try to make second user that contain 'staff' and 'super user' in django admin built in. The result was The cannot saved it self. Then I try to edit my user account through this django admin panel, and it cannot work to. The sistem pop up a message…
Riska Kurnianto
  • 111
  • 1
  • 7
1
vote
2 answers

could not install the packages using pipenv when using docker

I am setting up a project using cookiecutter-django with pipenv instead. I am trying to use docker however I am getting the error as ERROR: Service 'django' failed to build: The command '/bin/sh -c pipenv install' returned a non-zero code: 1. To…
Serenity
  • 3,884
  • 6
  • 44
  • 87