0
我這樣做是通過django獲取完整的UserProfile配置文件
$ python manage.py shell
from django.contrib.auth.models import User
a = User(username='zoro')
a.get_profile().?
我在get_profile
後輸入的是什麼。獲取完整的個人資料,而不是輸入像 a.get_profile().Location
這樣的東西來獲取位置。
很酷,乾杯! – ragingbull