cookiecutter / cookiecutter-django

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.
https://cookiecutter-django.readthedocs.io
BSD 3-Clause "New" or "Revised" License
11.78k stars 2.84k forks source link

504 Gateway Timeout #4510

Open JPilarr opened 11 months ago

JPilarr commented 11 months ago

What happened?

i got 504 status on django runserver several times , it is usually one or two seconds after request.

What should've happened instead?

Additional details

requirement file

pytz==2022.7.1  # https://github.com/stub42/pytz
python-slugify==8.0.1  # https://github.com/un33k/python-slugify
Pillow==9.4.0  # https://github.com/python-pillow/Pillow
argon2-cffi==21.3.0  # https://github.com/hynek/argon2_cffi
whitenoise==6.4.0  # https://github.com/evansd/whitenoise
redis==4.5.1  # https://github.com/redis/redis-py
hiredis==2.2.2  # https://github.com/redis/hiredis-py
celery==5.2.7  # pyup: < 6.0  # https://github.com/celery/celery
django-celery-beat==2.4.0  # https://github.com/celery/django-celery-beat
flower==1.2.0  # https://github.com/mher/flower
requests==2.28.2 # https://github.com/psf/requests
django-health-check==3.17.0
psutil==5.9.5
elasticsearch==8.7.0
PyYAML==6.0

# Django
# ------------------------------------------------------------------------------
django==4.0.10  # pyup: < 4.1  # https://www.djangoproject.com/
django-environ==0.10.0  # https://github.com/joke2k/django-environ
django-model-utils==4.3.1  # https://github.com/jazzband/django-model-utils
django-allauth==0.52.0  # https://github.com/pennersr/django-allauth
dj-rest-auth==4.0.1
django-crispy-forms==2.0  # https://github.com/django-crispy-forms/django-crispy-forms
crispy-bootstrap5==0.7  # https://github.com/django-crispy-forms/crispy-bootstrap5
django-redis==5.2.0  # https://github.com/jazzband/django-redis
# Django REST Framework
djangorestframework==3.14.0  # https://github.com/encode/django-rest-framework
django-cors-headers==3.14.0  # https://github.com/adamchainz/django-cors-headers
django-filter==22.1  #https://github.com/carltongibson/django-filter
# DRF-spectacular for api documentation
drf-spectacular==0.26.0  # https://github.com/tfranzel/drf-spectacular
django-simple-history==3.3.0  # https://django-simple-history.readthedocs.io/
On Linux, run

```bash
lsb_release -a 2> /dev/null || cat /etc/redhat-release 2> /dev/null || cat /etc/*-release 2> /dev/null || cat /etc/issue 2> /dev/null
```

```
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
```

```bash
# Insert here the OS name and version

```
Logs:
$ cookiecutter https://github.com/cookiecutter/cookiecutter-django
project_name [Project Name]: ...
luzfcb commented 11 months ago

@JPilarr Thank you for reporting a possible issue. However, you did not provide the minimum information necessary for us to be able to try to reproduce the problem minimally.

JPilarr commented 10 months ago

the problem is usually on dev machine not on server it weird.