cookiecutter-django

Getting Pytest to run in a Django cookiecutter / Python 3.x project

你离开我真会死。 提交于 2019-12-11 07:30:07
问题 I am building a new cookiecutter-django project. Here are the local setup instructions which I've followed. When I run " pytest " I get the following error 7 times when it tries to collect: ERROR collecting node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py ERROR collecting node_modules/node-gyp/gyp/pylib/gyp/common_test.py ERROR collecting node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py ERROR collecting node_modules/node-gyp/gyp/pylib/gyp/input_test.py ERROR collecting node

Can't access project absolute url from inside Django Docker instance

余生颓废 提交于 2019-12-11 05:20:06
问题 I have a project started with Cookiecutter Django and I'm currently adding WeasyPrint to serve some views as PDF files. This is working fine on development. Cookiecutter Django is using Caddy as the HTTP server. I'm having errors on production due I can't access to files through its absolute URL from inside the Django docker instance. From inside the Django docker instance, this does not work: $ curl https://myowndomain.com curl: (7) Failed to connect to myowndomain.com port 443: Connection