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)

Bernard Parah
@b3h3rkz
I will be glad if someone can help me figure out why this is happening... thanks
step21
@step21
Does anyone know of a way to programatically approve accounts after adding them or disable approving the mail address in development? I couldn't find any field in the db. At the moment I add some users for testing, but I always need to approve their mail address after logging in first
Ak4zh
@Ak4zh
ACCOUNT_EMAIL_VERIFICATION = "optional"
@step21 set ACCOUNT_EMAIL_VERIFICATION = "optional" django-allauth configs
Ak4zh
@Ak4zh
@pydanny I have a separate postgresql so I set DATABASE_URL variable in .postgres and also removed postgres dependency from docker compose... Now when I run docker-compose up it gives me error Waiting for PostgreSQL to become available... It will work if I keep the postgres stuffs intact in docker-compose but that isn't needed as my project dont meed postgres image running. So you know what else I need to fix to get rid of waiting for PostgreSQL error?
Ak4zh
@Ak4zh
I guess it's something in entrypoint file
step21
@step21
@Ak4zh thanks!
Bruno Alla
@browniebroke
@Ak4zh yes it’s in the entrypoint file, it looks for user, password, host & DB rather than the DATABASE_URL.
Ak4zh
@Ak4zh
@browniebroke Ok got it resolved. The issue was I was using localhost in POSTGRES_HOST as my postgres was in same server but I had to give actual IP else it refers to localhost inside docker. Another question is if I have DJANGO_READ_DOT_ENV_FILE=True does docker setup also take use of .env in root directory? Or it only uses the ones inside .envs . This is little confusing where shall I put all my env variables
h8pwn
@h8pwn
I have set up a project with the cookiecutter problem is I forgot to make it set up whitenoise for static files. Is there any way to enable it now without hassle?
Dani Hodovic
@danihodovic
Dani Hodovic
@danihodovic
Bruno Alla
@browniebroke
@Ak4zh This environment variable is only for a .env file, which is mainly used for non-Docker. Docker compose will pass the environment variables using the env_file section of production.yml and local.yml

Is it required to set EMAIL_HOST and EMAIL_PORT when using the locmem backend?

Don’t know, does it work without them? Have you tried removing them?

For gunicorn being installed, it doesn’t look required from looking at their doc. This line was added back in 2013, back then` it might have been required.
Dani Hodovic
@danihodovic

Don’t know, does it work without them? Have you tried removing them?

I run my pytest suite without them and with the locmem backend :)

leollon
@leollon
@browniebroke I'm trying to add pre-commit to this project, is it necessary to have this?
Bruno Alla
@browniebroke
Im
I'm not a big fan of pre-commit hooks personally
leollon
@leollon
OK, I am going to commit a pr, maybe it will be needed someday
leollon
@leollon

I mean using pre-commit in the generated django project. This project which developers can choose whether they use pre-commit or not.

OK, I am going to commit a pr, maybe it will be needed someday

Ben Lindsay
@benlindsay
Hi all, I'm trying to get the hang of cookiecutter-django, which is amazing, but I'm having some trouble getting it working in production on AWS with docker. What's the best way to get some help troubleshooting? I don't want to spam this conversation with logs and stuff.
And to be clear, I'm just trying to deploy the project right after initialization before adding any custom code
Ben Lindsay
@benlindsay
Nevermind, it turns out the solution was to start over and go through the process again with a fresh EC2 instance. Thanks for all the work you all do on this awesome package!
Blockchain Man
@dahifi
Anyone got any tips or guides for Celery setup? I can't tell whether Django is actually running the worker or what's going on. I have Rabbit running in docker, Flower running to it, manually running worker 'celery worker -A config.celery_app --broker=amqp://guest@172.17.0.2//', but I can't figure out where to go from here.
I can even run a task in the python console, but I can't see any activity within the app.
Blockchain Man
@dahifi
Looks like local settings have always_eager = true. I think I'm figuring this out now.
Lokesh Sanapalli
@lokesh1729_gitlab
one question, why does all the vendor javascripts are put in vendors.js and minifying whereas there was a vendorRoot = node_modules defined and pulling jquery, bootstrap etc... ??? also the same case with css... why there's a project.css
djangoReactGuy
@SanskarSans
I am using docker for cookiecutter-django. I need to enter into postgres. How can i do that?
El 李天宝
@elcolie
@SanskarSans docker ps -a to find your container id
docker exec -it <container_id> /bin/sh
After finish your business inside container just exit
You can use docker-compose -f your.yml ps to see only your project containers
docker ps -a will show you all entire system
Lokesh Sanapalli
@lokesh1729_gitlab

one question, why does all the vendor javascripts are put in vendors.js and minifying whereas there was a vendorRoot = node_modules defined and pulling jquery, bootstrap etc... ??? also the same case with css... why there's a project.css

can anyone tell me ??

djangoReactGuy
@SanskarSans

@elcolie I am trying to inspect the tables by executing postgres container as follow

docker exec -it simplifytour_postgres_1 sh

i could enter into it but I could not execute postgres.

El 李天宝
@elcolie
After you enter to the postgres container. Try psql -U postgres You should be able to be in there
djangoReactGuy
@SanskarSans
i tried that it says psql: FATAL: role "postgres" does not exist
event psql template1 did not work
El 李天宝
@elcolie
No template1 is database schema template!
El 李天宝
@elcolie
I think you'd better try any user in the postgres container. I would start from settings.py
djangoReactGuy
@SanskarSans

do you mean to say such things in settings

POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=simplifytour
POSTGRES_USER=debug
POSTGRES_PASSWORD=debug

?

El 李天宝
@elcolie
Yes. Follow that!
Christopher Vanderlinden
@cvanderlinden_gitlab
So, I have customized cookie-cutter django a bit, but for some reason my DEV django container is erroring out - but the errors point to it using the production.py settings file for some reason
where should I be looking to troubleshoot this?
IE: django.core.exceptions.ImproperlyConfigured: Set the MAILGUN_API_KEY environment variable But I have that variable commented out in my DEV .env and .py files
nvm
found it
well maybe not
Ak4zh
@Ak4zh
Has anyone be able to successfully run this with caprover?