Open mbnoimi opened 4 years ago
My project structure is:
Project
├── api
│ ├── admin.py
│ ├── apps.py
│ ├── __init__.py
│ ├── models.py
│ ├── serializers.py
│ ├── telegrambot.py
│ ├── tests.py
│ ├── urls.py
│ └── views.py
├── db.sqlite3
├── django_telegrambot
│ ├── admin.py
│ ├── apps.py
│ ├── __init__.py
│ ├── management
│ │ ├── commands
│ │ │ ├── botpolling.py
│ │ │ ├── __init__.py
│ │ │ └── __pycache__
│ │ ├── __init__.py
│ │ └── __pycache__
│ ├── models.py
│ ├── mqbot.py
│ ├── static
│ │ ├── css
│ │ │ └── django_telegrambot.css
│ │ ├── img
│ │ └── js
│ │ └── django_telegrambot.js
│ ├── templates
│ │ └── django_telegrambot
│ │ ├── base.html
│ │ └── index.html
│ ├── tests.py
│ ├── urls.py
│ └── views.py
├── somebot
│ ├── asgi.py
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ ├── wsgi.py
│ └── wsgi_windows.py
├── manage.py
└── requirements.txt
0-2: that's fine
3: The details/traceback of the wsgi:error would be intresting here. You can set the apache log level to debug, to get some more information about what happend inside the webserver. But you should also setup logging for django, to log the errors, that are handled by django or your apps. You can read here about configuration of logging in django: https://docs.djangoproject.com/en/3.0/topics/logging/ feel free to ask again if that didnt help.
4: I've used Letsencrypt certificates as well, they may be some requirements, but they work in general 5: That looks alright.
Sorry for the late response was really busy the last weeks.
Hi,
My project works fine in case I set
POLLING
while is doesn't work at all withWEBHOOK
. I suspect I missed smoothing insettings.py
but I couldn't figure it out.May I get some help please?
NOTES:
[wsgi:error]
mydomain-crt.pem
using win-acme for Let's Encrypt; It works fine for django in general but I'm not sure about it for django-telegrambotsettings.py