You asked
Which of these two fits 1 500 euros including a lens for portraits?
The question mentions "these two", but the guide only covers one camera here: the Pentax K-500. It is an APS-C DSLR with a 16.3-megapixel sensor and in-body stabilisation, and it takes Pentax K mount lenses, so old manual K lenses fit directly. If you name the second camera, the guide can compare the two.
The guide also has no checked price for the K-500 in this answer, so it can't say whether 1 500 euros covers the body and a portrait lens. Look up current prices on the camera's page before you buy, since prices change.
For portraits, the guide's reasoning is about the lens more than the body. A wide aperture gives sharp eyes and a soft background, and the background blur also grows with focal length and with distance between your subject and the background. Portraits notes that moving your subject away from a wall often does more than a faster lens.
On APS-C, the guide suggests a fast standard prime of about 33-35mm at f/1.4 to f/1.8 as a first lens for people, and an 85mm for portraits as a later addition (Lenses). At f/1.4 and wider, depth of field can be thinner than a face, so stop down to f/2.8 when shooting two people at different distances.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.