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

(keyError: 'CELERY_BROKER_URL')

File "C:\Users\User\path\lib\site-packages\environ\environ.py", line 277, in get_value raise ImproperlyConfigured(error_msg) django.core.exceptions.ImproperlyConfigured: Set the CELERY_BROKER_URL environment variable I'm getting this error when I…
3
votes
1 answer

Error in shell: doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS

My first try on Django. Read the book "Two scoops of Django 1.11". Great read. With only scripting experience and new with Python, I'm using best efforts to follow the books standards. Initiated project with "cookiecutter-django" Made a simple…
henningb
  • 33
  • 1
  • 6
3
votes
0 answers

Using Celery with a cookiecutter-django project

I'm currently building a small django project and I decided to use cookiecutter-django for a base as everything I need was included. When setting up the project I asked cookiecutter-django to include the settings for Celery and I can find everything…
JanMensch
  • 1,720
  • 1
  • 18
  • 27
3
votes
1 answer

Getting Pytest to run in a Django cookiecutter / Python 3.x project

I am building a new cookiecutter-django project. Here are the local setup instructions which I've followed. When I run "pytest" I get the following error 7 times when it tries to collect: ERROR collecting…
Emile
  • 3,464
  • 8
  • 46
  • 77
3
votes
1 answer

Docker for windows10 run django fail: Can't open file 'manage.py': [Errno 2] No such file or directory

I just start a sample django app. And use docker to run it. My docker image like: FROM python:3.5 ENV PYTHONUNBUFFERED 1 RUN mkdir /code WORKDIR /code ADD requirements.txt /code/ RUN pip install -r requirements.txt ADD . /code/ My…
3
votes
1 answer

Can't run migrations when setting up a project with cookiecutter-django

I have been trying to set up a new django project locally with cookiecutter-django. I have followed the docs but I keep getting into errors when trying to run python manage.py migrate. Error Traceback. Traceback (most recent call last): File…
3
votes
0 answers

Files created by manage.py commands not chown'd from root user

I'm using cookiecutter-django project template which includes nice docker-compose integration. However when I run a manage.py command that creates a file via docker-compose e.g: sudo docker-compose -f dev.yml run django python manage.py dumpdata…
ptr
  • 3,292
  • 2
  • 24
  • 48
3
votes
1 answer

Django - Creating two user types, where one type can be both

We're required to have two separate forms for two different types of users. Call them Client and Provider. Client would be the parent, base user, while Provider is a sort of extension. At any point a Client could become a Provider as well, while…
mitbanip
  • 179
  • 3
  • 13
3
votes
1 answer

Cannot pass variables to django home template from another template in app

I've got a simple view, form and 2 templates in my django (1.9.2) project The template that view is passed works like a charm, iterates through and displays wanted value without problems. Yet when I want to include this template into another one the…
2
votes
1 answer

Why is NGINX throwing `cannot load certificate "data:": PEM_read_bio_X509_AUX() Expecting: TRUSTED CERTIFICATE`?

I am attempting to setup a local HTTPS development environment using Django-Cookiecutter with docker. I followed the documentation to a tee using mkcert; however, I realized that additional NGINX configuration was necessary to get .pem files to…
2
votes
0 answers

Cookiecutter Django, Initial docker-compose build fails with docker error

I have created a fresh cookiecutter-django project on a windows machine. The initial "docker-compose -f local.yml build" fails with "failed to solve: executor failed running [/bin/sh -c apt-get update && apt-get install --no-install-recommends -y …
jodan01
  • 21
  • 2
2
votes
0 answers

Django App Served in EBS (Elastic Beanstalk Service) using Traefik and Docker error: 502 Bad Gateway

I am practicing in deploying a multi-container application using Django Cookiecutter (https://github.com/pydanny/cookiecutter-django) with TravisCI, Docker, and also using Traefik as router. I already successfully deployed my application to an EBS…
2
votes
0 answers

Cookiecutter command on git repo with template returning error

I am trying to run cookiecutter https://github.com/user/template (user is the account and template is the repository that contains the cookiecutter template I created) in an empty repo but whenever I try to run the command, I receive this error: …
2
votes
1 answer

How to configure Cookiecutter Django to use Gmail SMTP

Can anyone help me with to configure my django cookiecutter production setup to work with Gmail SMTP. I have deployed my application using docker. Cookiecutter gives you to configure your app to anymail providers. I've chosen Mailgun however I…
joehelm
  • 23
  • 2
2
votes
0 answers

Cookiecutter Django - Add field to signup form?

When I use django-allauth I can easily change the Signup form by just creating a new form and in settings.py add: ACCOUNT_SIGNUP_FORM_CLASS = "core.forms.SignupForm" I was unable to successfully do this with Cookiecutter Django. Shouldn't this work…
kvothe__
  • 591
  • 4
  • 10
1 2
3
14 15