Пример #1
0
    def get(self, request, *args, **kw):

        url = "https://coi.athabascau.ca/coi-model/"
        userid = request.GET.get('userid', None)

        entry = AccessLog(url=url, userid=userid)
        entry.save()
        response = Response("Logged External Link Click", status=status.HTTP_200_OK)
        return response
Пример #2
0
    def get(self, request, *args, **kw):

        url = "https://coi.athabascau.ca/coi-model/"
        userid = request.GET.get('userid', None)

        entry = AccessLog(url=url, userid=userid)
        entry.save()
        response = Response("Logged External Link Click",
                            status=status.HTTP_200_OK)
        return response
Пример #3
0
def accesslog(userid, url):
    entry = AccessLog(url=url, userid=userid)
    entry.save()
Пример #4
0
def accesslog(userid,url):
    entry = AccessLog(url=url, userid=userid)
    entry.save()