• Как прилепить прокси к telegram боту?

    stympel
    @stympel Автор вопроса
    SuckMyPython, я уже пытался так сделать, но мне выдавало ошибку
    AssertionError: Not supported proxy scheme socks5
  • Почему Django не видит приложение?

    stympel
    @stympel Автор вопроса
    Web Dentist, после установки нескольких модулей пишу python manage.py migrate и пишет ошибку, что нет модуля 'main_app', хотя в setting.py он прописан
  • Как пользоваться InlineKeyboard?

    stympel
    @stympel Автор вопроса
    Понял, как решить проблему. Пусть есть колбэк, я обрабатываю его какой-либо функцией следующим образом:
    1. Создаю InlineKayboard
    2. Делаю bot.edit_message_text(message_id=call.message.id, chat_id=call.message.chat.id, ...)

    Где call - аргумент, приходящий в функцию обработчик.
  • Как запустить Django проект, написанный на python 2.7?

    stympel
    @stympel Автор вопроса
    Вот версия pip
    pip 19.0.3 from c:\users\volod\desktop\django\hudoznik_dir\venv\lib\site-packages\pip (python 2.7)


    Пишу pip install package и выкидывает это:
    DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be main
    tained after that date. A future version of pip will drop support for Python 2.7.
    Collecting django
    c:\users\volod\desktop\django\hudoznik_dir\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:354: SNIMissingWarning: An HTTPS
     request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the
     server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python
    to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
      SNIMissingWarning
    c:\users\volod\desktop\django\hudoznik_dir\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:150: InsecurePlatformWarning: A
    true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connect
    ions to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/
    en/latest/advanced-usage.html#ssl-warnings
      InsecurePlatformWarning
      Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '
    _ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/django/
    c:\users\volod\desktop\django\hudoznik_dir\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:150: InsecurePlatformWarning: A
    true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connect
    ions to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/
    en/latest/advanced-usage.html#ssl-warnings
      InsecurePlatformWarning
      Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '
    _ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/django/
    c:\users\volod\desktop\django\hudoznik_dir\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:150: InsecurePlatformWarning: A
    true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connect
    ions to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/
    en/latest/advanced-usage.html#ssl-warnings
      InsecurePlatformWarning
      Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '
    _ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/django/
    c:\users\volod\desktop\django\hudoznik_dir\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:150: InsecurePlatformWarning: A
    true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connect
    ions to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/
    en/latest/advanced-usage.html#ssl-warnings
      InsecurePlatformWarning
      Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '
    _ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/django/
    c:\users\volod\desktop\django\hudoznik_dir\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:150: InsecurePlatformWarning: A
    true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connect
    ions to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/
    en/latest/advanced-usage.html#ssl-warnings
      InsecurePlatformWarning
      Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '
    _ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/django/
    c:\users\volod\desktop\django\hudoznik_dir\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:150: InsecurePlatformWarning: A
    true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connect
    ions to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/
    en/latest/advanced-usage.html#ssl-warnings
      InsecurePlatformWarning
      Could not fetch URL https://pypi.org/simple/django/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host
    ='pypi.org', port=443): Max retries exceeded with url: /simple/django/ (Caused by SSLError(SSLError(1, '_ssl.c:499: error:1407742E:
    SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)) - skipping
      Could not find a version that satisfies the requirement django (from versions: )
    No matching distribution found for django
    c:\users\volod\desktop\django\hudoznik_dir\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:150: InsecurePlatformWarning: A
    true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connect
    ions to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/
    en/latest/advanced-usage.html#ssl-warnings
      InsecurePlatformWarning
    Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pyp
    i.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL rout
    ines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)) - skipping
  • Как запустить Django проект, написанный на python 2.7?

    stympel
    @stympel Автор вопроса
    Я установил питон этой версии, но pip install не работает. Выдает ошибку.

    Could not fetch URL https://pypi.org/simple/pip/

    И еще пишет про проблемы с SSL.
  • Как создать модель с динамическим количеством полей?

    stympel
    @stympel Автор вопроса
    Хм, но тогда придется делать отдельную модель для вариантов ответа?