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
5
votes
1 answer

Overide django admin ListFilter templates

I want to overide default django admin filter template to use my own template based on this: https://github.com/feincms/feincms/blob/master/feincms/templates/admin/filter.html I've written my own SimpleListFilterclass by inheriting from…
mishbah
  • 5,487
  • 5
  • 25
  • 35
4
votes
0 answers

Why cookiecutter-django does not set DATABASE_URL and CELERY_BROKER_URL during entrypoint execution?

cookiecutter-django does not set env variables for DATABASE_URL and CELERY_BROKER_URL during "entrypoint" file execution in local development environment. After I manually 'exported' DATABASE_URL and CELERY_BROKER_URL they appeared in environment…
4
votes
1 answer

mypy daemon (dmypy) and VSCode "configuration changed" error

I've created a project using Django Cookiecutter, following the steps listed here: https://cookiecutter-django.readthedocs.io/en/latest/developing-locally.html (from a project generation perspective, I'm using about as vanilla setup as possible --…
wolfpigeon
  • 143
  • 1
  • 7
4
votes
2 answers

How to update Cookiecutter Django config for existing project?

I have been building a project on top of cookiecutter django (https://github.com/pydanny/cookiecutter-django), with Celery turned off in the cookiecutter generation settings. However, now I'm finding I need Celery. Is there a way I can flip a…
personjerry
  • 1,045
  • 8
  • 28
4
votes
1 answer

Django Cookiecutter upgrade best practice

I built an application using cookiecutter-django by @pydanny back in May, docker-compose was used for both dev and production environments and it's running very well, Now I have a requirement for asynchronous tasks and I want to use Celery, I did…
nigfinch
  • 71
  • 8
4
votes
2 answers

How to auto-generate a sample Django application from a database schema?

I am evaluating frameworks for a Proof Of Concept application. This application will have a life-cycle of about 30 days, after which it will be either forgotten or entirely rewritten. I have determined that I want to auto-generate a sample app from…
Alex R
  • 11,364
  • 15
  • 100
  • 180
4
votes
4 answers

ImportError: No module named 'config.settings'; 'config' is not a package

I'm trying to get my cookiecutter-django app running under Apache with mod_wsgi installed via pip. python3 manager.py runserver works. But after running it in Apache, I got an error saying Module config not found. So I pip install config. (It is not…
Brad Rhoads
  • 1,828
  • 3
  • 29
  • 52
4
votes
1 answer

cookiecutter-django local development with docker

I've never use docker for development on local machine so I have few questions that I didn't find in documentation. After setup I can't figure out how do I can install my packages via pip. I tried: docker-compose -f local.yml run --rm django pip…
Arti
  • 7,356
  • 12
  • 57
  • 122
4
votes
0 answers

Docker-compose - How to use second interface on a host with 2 NIC

I have a cookiecutter django project inside a VM instance, a minimal one. Let's call VM_D. Here is the production.yml I am trying to run: version: '2' volumes: caddy: {} services: django: &django build: context: . dockerfile:…
4
votes
1 answer

Call celery task from signal

I need to import data from several public APIs for a user after he signed up. django-allauth is included and I have registered a signal handler to call the right methods after allaut emits user_signed_up. Because the data import needs to much time…
Lioman
  • 529
  • 8
  • 20
3
votes
1 answer

Django not updated inside the docker cookiecutters template

My Django project that is created based on Cookiecutters is not updated in local development environment after I changed the source code, I need to stop and start the docker again. I checked the volume and it seems ok but still no auto-update. The…
smrf
  • 349
  • 3
  • 16
3
votes
1 answer

Docker-compose volumes mode options

In the short syntax source:target:mode the official documentation only mentions ro and rw but in the cookiecutter template for django they are using other two modes: z and Z, I didn't find any reference for them anywhere, What are they?
3
votes
0 answers

Traefik headers hostsProxyHeaders meaning

What does Traefik's Headers hostProxyHeaders configuration do? I am looking at traefik.yml settings from django-cookiecutter (link) middlewares: csrf: # https://docs.traefik.io/master/middlewares/headers/#hostsproxyheaders #…
3
votes
0 answers

Pytest Django Importing apps issues

I have a question regarding pytest and django 3.1. I have an app structure like that: main_app ├── config │   └── settings │   └── base.py / local.py / prod.py ├── main_app │   ├── sub_apps │   │   └── models.py tests.py apps.py views.py…
Hans T
  • 123
  • 1
  • 13
3
votes
0 answers

Django resolve() doesn't resolve with i18n urls

Django: 2.2.7 Python 3.6.8 I have initiated a project using cookiecutter-django template. After that I translated to 4 languages and I included i18n for urls so that depending on accessing each one, I get it translated in a different language. For…
madtyn
  • 1,469
  • 27
  • 55
1
2
3
14 15