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 DJANGO_SETTINGS_MODULE changing back to 'config.settings.local' in Cookiecutter

I know my .env file is loading but for some reason it seems to be jumping back to 'config.settings.local'? I am using the latest Cookiecutter code. this is my .env…
diogenes
  • 1,865
  • 3
  • 24
  • 51
1
vote
0 answers

Handshake Error when using cloudflare with Heroku and Cookiecutter Django

so I have a cookiecutter Django app on deployed on Heroku. Now I want to use cloudlfare to connect my custom domain to it. I set up the cloudflare cname records accordingly like explained here:…
Micromegas
  • 1,499
  • 2
  • 20
  • 49
1
vote
1 answer

How to fix "Connection refused" error on ACME certificate challenge with cookiecutter-django

I have created a simple website using cookiecutter-django (using the latest master cloned today). Running the docker-compose setup locally works. Now I would like to deploy the site on digital ocean. To do this, I run the following commands: $…
1
vote
2 answers

How do I enable SASS Compiling in Cookiecutter Django?

in the documentation of cookiecutter-django relating to SASS Compiling and Live Reload it's stated that I only have to enter "npm start" (after installing npm of course) in the main project folder to enable Live-Reload and SASS compiling. I was…
1
vote
2 answers

Django Cookiecutter using environment variables pattern in production

I am trying to understand how to work with production .env files in a django cookie cutter generated project. The documentation for this is…
Chris Wedgwood
  • 660
  • 6
  • 11
1
vote
1 answer

Reapplying migrations after database drop

If I need, want to drop my database and start over, what is involved or how do I apply the migrations? I don't want to start over from scratch installing the whole cookiecutter.
dbinott
  • 911
  • 1
  • 11
  • 36
1
vote
1 answer

Can't Run Django Manage.py from Venv

I'm trying to run manage.py makemigrations for my django app, and I'm getting a "Couldn't import Django" message. I know how venv works and I'm sure my environment includes Django. See below; I try to run manage.py (running into the error), and then…
1
vote
1 answer

Is it possible to use pipenv for django-cookiecutter?

I know the docs specify virtualenv, but thought I would try: pipenv install -r path/to/local_requirements.txt It fails when trying to instal rcssmin==1.0.6 and rjsmin==1.0.12. It also tells me that I need to install Microsoft Visual C++ 14.0 but…
Jim Wombles
  • 47
  • 1
  • 5
1
vote
1 answer

How to fix the future >= 0.15.2 distribution not found

On Fedora 27 when I run cookiecutter https://github.com/pydanny/cookiecutter-django I get: File "/usr/bin/cookiecutter", line 6, in from pkg_resources import load_entry_point File…
Calioni
  • 59
  • 1
  • 1
  • 3
1
vote
1 answer

Django docker-compose after restart requires migration again

I made this unit file. [Unit] Description=myservice Requires=docker.service After=docker.service [Service] Restart=always # Remove old containers, images and volumes ExecStartPre=/usr/local/bin/docker-compose -f my.yml down…
Narnik Gamarnik
  • 1,049
  • 1
  • 16
  • 35
1
vote
1 answer

When do you need to use --no-cache with docker-compose build for django

I'm using Docker to deploy a cookiecutter-django app to production. My question is when do I need to use --no-cache with docker-compose -f production.yml build? In particular, if I make a change to one of the settings.py files, will that change get…
Brad Rhoads
  • 1,828
  • 3
  • 29
  • 52
1
vote
1 answer

Issue with users model in zinnia and cookiecutter-django integration

First of all my setup: Linux Mint 18.2 Zinnia 0.20 Django 1.9.9 cookiecutter-django 1.9.9 Python 3.5.2 I have created a project from scratch with cookiecutter-django, using version 1.9.9, once that in zinnia docs it's recommended to use django <…
Flavio Barros
  • 996
  • 1
  • 11
  • 29
1
vote
1 answer

How do I push the multiple django-cookiecutter-made Docker images to Heroku?

I developed locally using Docker and cookiecutter-django. Cookiecutter-django creates several Dockerfiles within the "compose" directory. I am now trying to push the project to Heroku. However, heroku container:push web will return No images to…
Jay Jung
  • 1,805
  • 3
  • 23
  • 46
1
vote
2 answers

Django Cookiecutter

I am trying to use Cookiecutter on a Digital Ocean server. (Not using Docker) I followed the direction to install on Ubuntu 16 with Django, Postgres and Gunicorn. …
diogenes
  • 1,865
  • 3
  • 24
  • 51
1
vote
2 answers

Use email to login in Django 1.11, I use cookiecutter-django with allauth

I started using cookiecutter-django because it seems so much advanced than just django-admin to start my project. So I created an eCommerce website and it requires only email to log in not the username. So, I tried to follow the docs and changes my…
Dhaval Savalia
  • 495
  • 5
  • 17