Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/d/j/django-kvisits-0.0.1/kvisits/loghandlers/dbloghandler/__init__.py   django-kvisits(Download)
from ..loghandlerbase import LogHandlerBase
from .models import LogObject, LogUrl
import datetime
import simplejson
 
    def log_url(self, url, is_new, request, **kwargs):
        log = LogUrl()
        log.request_meta = simplejson.dumps(request.META)
        if request.user.is_anonymous():
            log.user = None

src/d/j/django-kvisits-HEAD/kvisits/loghandlers/dbloghandler/__init__.py   django-kvisits(Download)
from ..loghandlerbase import LogHandlerBase
from .models import LogObject, LogUrl
import datetime
import simplejson
 
    def log_url(self, url, is_new, request, **kwargs):
        log = LogUrl()
        log.request_meta = simplejson.dumps(request.META)
        if request.user.is_anonymous():
            log.user = None