⌘BABAKOV.NET Let's code!
100% [dark] [ru]
~/programming/python $

Python

9 total

Python Bottle Guide (Translation) Part 5 - Request Data (Data in Request)

In the previous part (Python Bottle Guide (Translation) Part 4 - Creating Content) we considered the main aspects related to the transmitted content, in this part we will consider the data transmitted in requests. Files Cookie, HTTP headers, HTML form fields, and other request data are available through the global request object. This special object always refers to the current request, even in multi-threaded environments where multiple client connections are being processed simultaneously:

153 views 0 comments 0 likes ./Read →

Python Bottle Guide (Translation) Part 2 - Hello World

In the previous part, we considered the installation of Bottle: Python Bottle Guide (Translation) Part 1 - Installation. In this part, we will go further and consider a simple example of a "Hello World" website application. 2. Simple example ("Hello World!") Here it is assumed that you have already installed Bottle, or the library has been copied to the project folder.

113 views 0 comments 0 likes ./Read →

Error - UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character

Error: UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character Occurs when trying to run the project with the command: python manage.py runserver Treatment: Look for the file: python\lib\site-packages\django\utils\autoreload.py Then add the line to the function restart_with_reloader:

55 views 0 comments 0 likes ./Read →

Настраиваем кодировки в Visual Studio для Python

Вообщем ситуация такая. Решил я поизучать Python. Посмотрел разные среды разработки, и решил остановиться на уже знакомой и уютненькой Visual Studio, тем более, что по работе в основном на C# писать приходится, установлена, удобная, привычн…

739 views 0 comments 0 likes ./Read →