diff --git a/GeneralApp/funcs.py b/GeneralApp/funcs.py index 2169cd2..d4370b4 100644 --- a/GeneralApp/funcs.py +++ b/GeneralApp/funcs.py @@ -69,7 +69,7 @@ def get_inter_http_respose(template_obj, context_Dict, request): title = getattr(context_Dict['page'], 'title', None) text = getattr(context_Dict['page'], 'description', None) - if text and title and not request.user.is_anonymous: - send_push(user=request.user, title=title, text=text) + # if text and title and not request.user.is_anonymous: + # send_push(user=request.user, title=title, text=text) return HttpResponse(template_obj.render(context_Dict, request)) \ No newline at end of file diff --git a/GeneralApp/views.py b/GeneralApp/views.py index 1352f6d..d5ea83a 100644 --- a/GeneralApp/views.py +++ b/GeneralApp/views.py @@ -154,8 +154,8 @@ def StaticPageView(request, url): 'page': page, }) - from PushMessages.views import send_push - send_push(user=request.user, title='title', text='text') + # from PushMessages.views import send_push + # send_push(user=request.user, title='title', text='text') t = loader.get_template('pages/p_static_page.html') return get_inter_http_respose(t, Dict, request)