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 19:59
    wgordon17 opened #1922
  • Jan 31 15:53

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

    (compare)

  • Jan 31 15:53

    browniebroke on master

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

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

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

    (compare)

  • Jan 31 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 15:52
    browniebroke closed #1920
  • Jan 31 15:49

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

    (compare)

  • Jan 31 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 15:49
    browniebroke closed #1919
  • Jan 31 13:43
    wgordon17 opened #1921
  • Jan 31 13:23

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

    (compare)

  • Jan 31 13:23
    pyup-bot closed #1918
  • Jan 31 13:23
    pyup-bot commented #1918
  • Jan 31 13:23
    pyup-bot opened #1920
  • Jan 31 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 13:23

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

    (compare)

  • Jan 31 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 00:40
    pyup-bot opened #1919
  • Jan 31 00:40

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

    Update pytest from 4.1.1 to 4.2… (compare)

:]
@elcolie
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.

:]
@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
:]
@elcolie
No template1 is database schema template!
:]
@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

?

:]
@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?
Ak4zh
@Ak4zh
So if I want to run 5 cookiecutter-django project from 1 server. I am using docker but not building redis using cookiecutter as I have my own redis instance running.
Ak4zh
@Ak4zh
Ignore the last query I can simply use different redis database as
redis://127.0.0.1/0
step_koreik
@nurbek91_gitlab
hi
Ak4zh
@Ak4zh
@pydanny telegram could be a better platform
Nikita Shupeyko
@webyneter
@Ak4zh definitely not.
it's not even close to Slack in terms of integration ecosystem
h8pwn
@h8pwn
IRC ftw
Dani Hodovic
@danihodovic
could anyone have a look at these two PRs?
Wojciech Niedźwiedź
@Niedzwiedzw
morning folks
I'm trying to deploy to prod using docker
my stack is a VPS from digitalocean, domain is from OVH
traefik_1       | time="2019-09-24T08:49:22Z" level=error msg="Unable to obtain ACME certificate for domains \"aplikacja-alternator.pl\" detected thanks to rule \"Host:aplikacja-alternator.pl\" : unable to generate a certificate for the domains [aplikacja-alternator.pl]: acme: Error -> One or more domains had a problem:\n[aplikacja-alternator.pl] acme: error: 400 :: urn:ietf:params:acme:error:connection :: Fetching http://aplikacja-alternator.pl/.well-known/acme-challenge/thH2vELCR6o9B2fnlzJ9y4_rJa1YhYZF5eOE4j2ygM8: Timeout during connect (likely firewall problem), url: \n"
maybe some of you guys have an eye good enough to spot what's wrong here
d9tecnologies
@d9tecnologies
Hi from Spain!
I have followed all the steps indicated in https://github.com/awesto/cookiecutter-django-shop to install django-shop but it gives me the error "too many values ​​to unpack in app_settings.CMSPLUGIN_CASCADE". Has someone happened to you? Thanks!
Alexandr Stefanitsky-Mozdor
@Stefanitsky
@Niedzwiedzw add your domain to the droplet
William McVey
@wam_twitter
@Niedzwiedzw Your SSL registration with LetsEncrypt is failing because LetsEncrypt isn't able to contact your site on port 80. That negotiation is all handled by traefik (formerly caddy) and requires LetsEncrypt to be able to query your server on port 80. My guess is that a) your DNS isn't pointing to your droplet's external IP address or you have a firewall configured that might allow 443, but isn't allowing 80.
Chieh Teng Chang
@playma

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?

Chieh Teng Chang
@playma
I forgot to set the cors in production config...
Tobias S
@Tobias2023
Anyone else get this when starting a project? :
\config\settings\base.py", line 5, in <module>
    import environ
ModuleNotFoundError: No module named 'environ'
Handy Kusuma
@kwhandy
Anyone have experienced to connect then access PostgreSQL data inside Docker with database GUI like DBeaver or TablePlus?
Burhan Khalid
@burhan
Sure Hady, whats your question?
s/Hady/Handy
Kaan Karaca
@h4yfans
Hi everyone! I want to install pip package(s) for my project. The project has Docker setup.
When I run, docker-compose run --rm web pip install package_namecommand, 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?
Peter Coles
@mrcoles
@Tobias2023 that’s one of the deps in the project https://github.com/joke2k/django-environ specified in requirements/base.txt - did you do a pip install of the requirements?
Does anyone know if there’s a good way to log startup errors in a docker setup? I want to be able to catch things that went wrong before Sentry is setup. Would I try to change the LOGGING in settings or is there something in compose/production/django/start I can add?
Burhan Khalid
@burhan
Hi Kaan, when you add —rm, docker will remove the container once the command is finished. Remove that option and try again.
marciks
@marciks
Hey guys! I see that there is a security issue by running nginx along with django cookiecutter.. I needed nginx to also serve static files without the need to setup cdn configs (in the case of using whitenoise)
is there any alternatives to it? I saw that in the past nginx was used.. I also have searched for a template using nginx but with no luck so far