EZ
import core.urls
так не видит
from ..core import urls
так ошибка ValueError: attempted relative import beyond top-level package
ЧЯДНТ?
Size: a a a
EZ
import core.urls
from ..core import urls
R
AK
OV
import core.urls
from ..core import urls
EZ
OV
EZ
OV
А
EM
А
var users = {}вот как эти users использовать после получения? это у меня находится между тегами <script></script>
var that = this
fetch('http://localhost:8000/api/users/', {
method: 'GET',
})
.then(r => r.json()
.then(data => ({ status: r.status, body: data })))
.then(function (obj) {
if (obj.status === 200) {
that.users = obj.data
}
return obj
}).catch(console.error.bind(console))
А
EM
IF
А
p
EM
EM
EM
k