Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 19:59
    wgordon17 opened #1922
  • Jan 31 2019 15:53

    browniebroke on pyup-update-django-extensions-2.1.4-to-2.1.5

    (compare)

  • Jan 31 2019 15:53

    browniebroke on master

    Update django-extensions from 2… Merge pull request #1916 from p… (compare)

  • Jan 31 2019 15:53
    browniebroke closed #1916
  • Jan 31 2019 15:52

    browniebroke on pyup-update-flake8-3.6.0-to-3.7.3

    (compare)

  • Jan 31 2019 15:52

    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)

  • Jan 31 2019 15:52
    browniebroke closed #1920
  • Jan 31 2019 15:49

    browniebroke on pyup-update-pytest-4.1.1-to-4.2.0

    (compare)

  • Jan 31 2019 15:49

    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)

  • Jan 31 2019 15:49
    browniebroke closed #1919
  • Jan 31 2019 13:43
    wgordon17 opened #1921
  • Jan 31 2019 13:23

    pydanny on pyup-update-flake8-3.6.0-to-3.7.2

    (compare)

  • Jan 31 2019 13:23
    pyup-bot closed #1918
  • Jan 31 2019 13:23
    pyup-bot commented #1918
  • Jan 31 2019 13:23
    pyup-bot opened #1920
  • Jan 31 2019 13:23

    pydanny on pyup-update-flake8-3.6.0-to-3.7.3

    Update flake8 from 3.6.0 to 3.7… (compare)

  • Jan 31 2019 13:23

    pydanny on pyup-update-flake8-3.6.0-to-3.7.3

    (compare)

  • Jan 31 2019 13:23

    pydanny on pyup-update-flake8-3.6.0-to-3.7.3

    Update flake8 from 3.6.0 to 3.7… (compare)

  • Jan 31 2019 00:40
    pyup-bot opened #1919
  • Jan 31 2019 00:40

    pydanny on pyup-update-pytest-4.1.1-to-4.2.0

    Update pytest from 4.1.1 to 4.2… (compare)

Carl Brand
@brandc87
Does anyone know how you would go about scaling an app using digitalocean? I currently use cookiecutter with docker and DigitalOcean, deployment with docker-machine build / up when I want to release updates. If you needed to scale an app would docker swarm be enough or DigitalOcean load balancers?
Harry Moreno
@morenoh149
@brandc87 yes, in general you want load balancers routing stateless requests to any of your public facing virtual machines (your Django's)
YoomamaFTW
@YoomamaFTW
Hi, I’ve got a question about updating a production docker cookiecutter-django. How would I update the containers wih
without taking down the website?
Alejandro Duque Correa
@aleducode
hi @YoomamaFTW i normally use '$ docker-compose build django
$ docker-compose up --no-deps -d django ' <django> is the name of my service in compose
marciks
@marciks
heya guys, is there any version of django cookie cutter out there using nginx?
I see from early discussions that is was removed mainly because of nginx gen mounting volumes on docker socket
YoomamaFTW
@YoomamaFTW
@aleducode Thank you! I believe django is the default as well right?
Alejandro Duque Correa
@aleducode
yep
YoomamaFTW
@YoomamaFTW
awesome thanks again!
I’ve also wanted to switch to nginx since I’ve used it more and tested it more @marciks . I found this online if you want to implement https://www.minvolai.com/swapping-out-caddy-for-nginx-in-cookiecutter-django/
marciks
@marciks
Hey @YoomamaFTW thanks for your suggestion.. i have made a fork and removed traefik then did put a custom nginx docker there, but still not sure if the modifications I made are
.. are the correct ones
Axel
@Micromegass
@YoomamaFTW Did that work for you?
YoomamaFTW
@YoomamaFTW
No. Haven’t gotten around to it due to teachers swamping with homework and midterms. Will update here in a couple days with any progress or any issues. I’ve looked at the article and the issue that marciks brought up around nginx proxy.... which I’m curious why proxy in a dockerfied cookiecutter project.
Axel
@Micromegass
Ok good luck with that. Let me know about your process in case you implement it. I am trying right now and am struggling quite a bit :)
El 李天宝
@elcolie

$ 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

Exit0 and Exit1
Are they normal?
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
Bruno Alla
@browniebroke
You commented out postgres? What DB is your system using?
El 李天宝
@elcolie
@browniebroke I bring postgres back then. Since AWS RDS keep telling me PostgreSQL server is not available
No idea why RDS is not work. The previous project with identical setup works
Thank you for you attention
Bruno Alla
@browniebroke

It should be fine to comment out postgres and use RDS instead, but just need to make sure that the ./.envs/.production/.postgres has the right credentials for the RDS database, as that's where Celery will get them from. That might not be the problem, but given what you show us, that's the first thing that comes to mind...

We might be able to assist further if you show us the logs of the Celery containers:

docker-compose -f production.yml logs celerybeat
El 李天宝
@elcolie
@browniebroke .postgres for Celery Thank you very much!
Yes you are right. First project I did change both .django and .postgres
Second one I forgot .postgres Nahhhh late night effect
Bruno Alla
@browniebroke
:+1:
El 李天宝
@elcolie
El 李天宝
@elcolie

@browniebroke How do I know that my connection between Django and Postgres is encrypted in my production.yml?
Suppose I am using RDS. I come up with this question because AWS make call to me today afternoon and I don't the answer, but I guess it is handled by psycopy already
I have check on my OSX with dbshell it clams that it is SSL

t$ python manage.py dbshell --settings=config.settings.local
psql (10.11, server 11.2)
WARNING: psql major version 10, server major version 11.
         Some psql features might not work.
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.

However on the Production my Django container does not has psql so I can't execute dbshell
Therefore my question is "How can I know connection between Django and Postgres encrypted?"

Mo Salam
@m7salam

hello there

I wanted to ask what is the strategy you use with cookiecutter after u do backup and u want to restore

how u handle the migrations files , if u did some updates in the models ?

thanks

Windalfin Culmen
@finalwind
Hi all, anyone here has experience with configure bitbucket pipeline to work with Django Cookiecutter & Docker?
Shambu Pujar
@ShambuP_twitter
Hi All, I am getting this error in my project where I am using docker. In local there is no issue, but when I run production.yml, then it asks for storage module missing on accessing the application. I setup this project using whitenoise and no aws for media. Any idea why this is happening?
elohim
@daHIFI_gitlab
@ShambuP_twitter This help? pydanny/cookiecutter-django#2336
Alejandro Duque Correa
@aleducode
hi i had a question how can i delete or restart all async tasks?
Screen Shot 2020-03-18 at 18.51.38.png
Tejas Arlimatti
@tejasa97
Hi, I'm initializing a new cookie-cutter django project with some options. Can I change the options later on?
Alejandro Duque Correa
@aleducode
Which type of changes?
Tejas Arlimatti
@tejasa97
options like project-description etc
Alejandro Duque Correa
@aleducode
yes
Tejas Arlimatti
@tejasa97
@aleducode cool. how do I do those?
Alejandro Duque Correa
@aleducode
you can change it later without problems
in readme.DS
Tejas Arlimatti
@tejasa97
@aleducode oh nice. Thanks!
Alejandro Duque Correa
@aleducode
fine.
Tejas Arlimatti
@tejasa97
Does cookie-cutter django also come with Oauth support?
El 李天宝
@elcolie
I have a question

set -o errexit
set -o pipefail
set -o nounset


python /app/manage.py collectstatic --noinput
/usr/local/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --chdir=/app
Why production start script does not include migrate line?
#!/bin/sh

set -o errexit
set -o pipefail
set -o nounset


python manage.py migrate
python manage.py runserver_plus 0.0.0.0:8000
local start has migrate. What is the reason behind this?
elohim
@daHIFI_gitlab
@tejasa97 yes, its in the allauth app
@ShambuP_twitter there's an open issue about this. Search the issue log for 'storage'.