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
2
votes
0 answers

On looping through django allauth social login profile pictures

I've been trying to loop through the social login account photos of the users and myself on the app that I'm doing. Currently, I have a different model for the contributors on the app that is shown on the homepage and on a separate page. The models…
2
votes
2 answers

How to update requirements?

I would like to know how to update outdated requirements with the multi requirements files setup that cookie cutter uses (base, local, etc...) ? If i launch a "pip freeze" it will write the requirements in a single file. It will not dispatch them in…
2
votes
0 answers

Is there a way that to "docker-compose build" utilize existing dependencies wheels?

To make a change in the dependencies of a docker container, i'm runing docker-compose build. I want to update a dependency listed on requirements.txt to be more specific. But everytime that I execute this, it re-download and re-install all the…
Cristianjs19
  • 765
  • 1
  • 9
  • 15
2
votes
3 answers

run postgres container when using docker

I have used cookiecutter-django for my django projects. I am using docker to run the project locally. The project is running well. However, i could not explore postgres while using docker. Here are the steps i followed to run the project…
Serenity
  • 3,884
  • 6
  • 44
  • 87
2
votes
0 answers

Django Cookiecutter Production Server Setup on DigitalOcean

I am trying to setup my Django Cookiecutter code on an Ubuntu server hosted on Digital Ocean. (My first attempt at such a thing.) It does not appear that my .env file is…
diogenes
  • 1,865
  • 3
  • 24
  • 51
2
votes
1 answer

Can't access project absolute url from inside Django Docker instance

I have a project started with Cookiecutter Django and I'm currently adding WeasyPrint to serve some views as PDF files. This is working fine on development. Cookiecutter Django is using Caddy as the HTTP server. I'm having errors on production due I…
Tadeo
  • 431
  • 7
  • 11
2
votes
1 answer

Docker-compose: See what environmental variables are set within a container

I have a django-cookiecutter project that has multiple containers: django postgres caddy etc When I deploy, I'm getting an error that the Postgres db cannot authenticate the POSTGRES_USER and POSTGRES_PASSWORD. I'm passing the envs in my…
Emile
  • 3,464
  • 8
  • 46
  • 77
2
votes
1 answer

How do I get django-allauth to send html emails

Cookiecutter-django uses: django-allauth (which needs to send registration confirmation emails) django-anymail configured to use mailgun. Things are mostly working. But I can't figure out why I'm only getting plain text emails instead of HTML…
Brad Rhoads
  • 1,828
  • 3
  • 29
  • 52
2
votes
2 answers

trying to use cookiecutter-django, getting errors and does not create anything

trying to get a Django project started using cookiecutter-django and can't seem to get it to generate anything. using Python 3.6, Django 2.0.5, cookiecutter 1.6.0 (then created a virtualenv and entered a new, blank directory) so I enter this…
2
votes
1 answer

Invalid bucket name from docker-compose up to EC2

I created a docker machine on EC2. Then I created a new cookiecutter-django app and left it plain vanilla. It's set to use .env for the environment variables. (Cookiecutter-django includes django-environ for accessing environment…
Brad Rhoads
  • 1,828
  • 3
  • 29
  • 52
2
votes
1 answer

Production.py issue with deployment of cookiecutter-django and gunicorn to digital ocean

I built a Django project using the latest version of cookiecutter-django, which seems to be working fine on my local computer as well as when I run it through python manage.py runserver using the various settings files. I'm trying to test my…
halsdunes
  • 1,199
  • 5
  • 16
  • 28
2
votes
1 answer

Postgres: Password authentication failed for user "user". Role "user" does not exists

I'm using Django created with the template cookie-cutter. When I try to run the project with docker locally it gives me the following error. FATAL: password authentication failed for user "user" DETAIL: Role "user" does not exist. But the…
Alejandro Maguey
  • 167
  • 4
  • 12
2
votes
1 answer

Pip compiled as part of dockerfile - fastest way to add a new entry to requirements.txt?

I'm using this Dockerfile as part of this docker compose file. Right now, every time I want to add a new pip requirement, I stop my containers, add the new pip requirement, run docker-compose -f local.yml build, and then restart the containers with…
Myer
  • 3,670
  • 2
  • 39
  • 51
2
votes
0 answers

Cookiecutter Django Docker Build Failing

When running docker-compose -f local.yml build or even the prod one I get an error. I tried everything and does not get past this part. StackTrace below.
code_bash
  • 701
  • 1
  • 5
  • 16
2
votes
2 answers

Django Cookiecutter: How to import AUTH_USER_MODEL in config/settings/base.py?

As we know, Django-Cookiecutter has a different setup for settings files. The regular from django.conf import settings doesn't work here. I want to reference to the custom user model defined in the base.py file in the settings directory. Any ideas?…
Zilong Li
  • 889
  • 10
  • 23