The most popular Cookiecutter-based framework for jumpstarting production-ready Django projects quickly
browniebroke on pyup-update-django-extensions-2.1.4-to-2.1.5
browniebroke on master
Update django-extensions from 2… Merge pull request #1916 from p… (compare)
browniebroke on pyup-update-flake8-3.6.0-to-3.7.3
browniebroke on master
Update flake8 from 3.6.0 to 3.7… Update flake8 from 3.6.0 to 3.7… Merge pull request #1920 from p… (compare)
browniebroke on pyup-update-pytest-4.1.1-to-4.2.0
browniebroke on master
Update pytest from 4.1.1 to 4.2… Update pytest from 4.1.1 to 4.2… Merge pull request #1919 from p… (compare)
pydanny on pyup-update-flake8-3.6.0-to-3.7.2
pydanny on pyup-update-flake8-3.6.0-to-3.7.3
Update flake8 from 3.6.0 to 3.7… (compare)
pydanny on pyup-update-flake8-3.6.0-to-3.7.3
pydanny on pyup-update-flake8-3.6.0-to-3.7.3
Update flake8 from 3.6.0 to 3.7… (compare)
pydanny on pyup-update-pytest-4.1.1-to-4.2.0
Update pytest from 4.1.1 to 4.2… (compare)
This question may be not related to cookiecutter-django, but cookiecutter-django use gunicorn as default...
Hope I can find the answer here, thx.
When I use gunicorn, I can not use /api/rest-auth/facebook/
It works well when I use python3 mange.py runserver
Start server
gunicorn config.wsgi -b localhost:8000 --access-logfile - --log-level debug
it returns 200 in option and connection:close
HTTP 200 OK
Allow: POST, OPTIONS
Content-Type: application/json
Vary: Accept
{
"method": null,
"params": {},
"data": {
"name": "Facebook Login",
"description": "",
"renders": [
"application/json",
"text/html"
],
"parses": [
"application/json"
],
"actions": {
"POST": {
"accessToken": {
"type": "string",
"required": false,
"readOnly": false,
"label": "Access token"
},
"code": {
"type": "string",
"required": false,
"readOnly": false,
"label": "Code"
}
}
}
}
}
Can any one help me?
docker-compose run --rm web pip install package_name
command, the output says you successfully installed and then I run "docker-compose run --rm web pip freeze" command to for seeing the dependencies. I can't find my installed packages? What I doing wrong?
compose/production/django/start
I can add?
django cookiecutter
project suddenly stop reading the .envs/
files, of course it wasn't suddenly, i mean i must broke it some how, but i can not remember what and for the life of me, i don't know where to start looking, any ideas?? i mean any idea will be useful, the error i'm getting just after building is: django.core.exceptions.ImproperlyConfigured: Set the DATABASE_URL environment variable
, also i got a message like that but for USE_DOCKER
variable, both setup on the envs
files
docker-compose -f local.yml exec postgres backup
& docker-compose -f production.yml run --rm awscli upload
. Would it be best to have those commands in a script and execute them via cron on the docker host (EC2 on AWS)? Any other suggested methods ?
$ docker-compose -f production.yml ps
Name Command State Ports
ass_awscli_1 /bin/sh Exit 0
ass_celerybeat_1 /entrypoint /start-celerybeat Exit 1
ass_celeryworker_1 /entrypoint /start-celeryw ... Up
ass_django_1 /entrypoint /start Up
ass_flower_1 /entrypoint /start-flower Up 0.0.0.0:5555->5555/tcp
ass_redis_1 docker-entrypoint.sh redis ... Up 6379/tcp
ass_traefik_1 /entrypoint.sh traefik Up 0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
version: '3'
volumes:
production_postgres_data: {}
production_postgres_data_backups: {}
production_traefik: {}
services:
django: &django
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: ass_production_django
depends_on:
# - postgres
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: /start
# postgres:
# build:
# context: .
# dockerfile: ./compose/production/postgres/Dockerfile
# image: ass_production_postgres
# volumes:
# - production_postgres_data:/var/lib/postgresql/data
# - production_postgres_data_backups:/backups
# env_file:
# - ./.envs/.production/.postgres
traefik:
build:
context: .
dockerfile: ./compose/production/traefik/Dockerfile
image: ass_production_traefik
depends_on:
- django
volumes:
- production_traefik:/etc/traefik/acme
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
redis:
image: redis:5.0
celeryworker:
<<: *django
image: ass_production_celeryworker
command: /start-celeryworker
celerybeat:
<<: *django
image: ass_production_celerybeat
command: /start-celerybeat
flower:
<<: *django
image: ass_production_flower
ports:
- "5555:5555"
command: /start-flower
awscli:
build:
context: .
dockerfile: ./compose/production/aws/Dockerfile
env_file:
- ./.envs/.production/.django
volumes:
- production_postgres_data_backups:/backups