Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/q/u/quanda-HEAD/views/__init__.py   quanda(Download)
def profile(request, username):
 
    user = get_object_or_404(User, username=username)
    profile = Profile.objects.get_or_create(user=user)[0]
 
    # exist. Also, give them each admin 10000 initial rep points
    for user in User.objects.all():
        profile = Profile.objects.get_or_create(user=user)[0]
        if user.is_staff:
            if profile.reputation < 1000:

src/q/u/quanda-HEAD/utils.py   quanda(Download)
        return 0
 
    profile = Profile.objects.get_or_create(user=user)[0]    
    score = profile.reputation