Friday, February 1, 2019

Re: Local variable dump on exception in production environment (DEBUG=False)

Hi, 

I am not sure about django, but you can have a look at sentry, we use it in production and it gives everything you ask for. I am sure Django also does it but I find sentry better for error reporting.

regards
Vineeth

On Feb 1, 2019 3:41 PM, "Web Architect" <pinakeeb@gmail.com> wrote:
Hi,

In our production environment, we receive mail whenever an exception happens in our django application. But it contains only the function traces. The log will be helpful it also contains data dump or the local variable dump for each function trace. 
The exception trace on the browser in our development environment (DEBUG=True) contains the local variable dump. 

Hence, could anyone let me know if it's possible to get the local variable dump during exceptions in our django application? 

Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5b32c8ae-eb93-425d-88dc-d2c2a775a487%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMMZq8OdmiWYKAHaV3W_CCzQWP6x0gGuOTK7khrWacA6jPha8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: Unable to load Google Tag Manager in my Django admin app

Here my aim was to use geoplugin with GTM in my Django app.
For this I need to hit following url first to get authorize in geoplugin site-

That's why I have created two html files.

On Friday, February 1, 2019 at 3:39:57 PM UTC+5:30, prateek gupta wrote:
Hi All,

I am trying to use Google Tag Manager(GTM) in my Django 2.0.6 application by following below url-

In GTM console I have set my app but when I preview my app, GTM is not loading.
I suspect I am missing something with respect to my templates.

Below is my project structure-

django_project.JPG


In base.html I have put following code-
{% load gtm_tags %}

<html>
   
<head>
       
{% gtm_head %}
       
<title>GTM testing</title>
       
<link rel="stylesheet" type="text/css" href="/static/admin/css/base.css" />
       
<link rel="stylesheet" type="text/css" href="/static/admin/css/login.css" />
   
</head>
   
<body class=" login">
    {% gtm_body %}
       
<div id="container">
           
<div id="header">
               
<div id = "branding">
                   
<h1 id="site-name">GTM Testing Page</h1>
               
</div>
           
</div>
           
<div id="content">
               
<div id="content-main">
                     {% block content %}
                     {% endblock %}
               
</div>
           
</div>
       
</div>
   
</body>
</html>

In authorize_geoplugin.html I have put following lines-
{% extends 'base.html' %}

{% block content %}
   
<html>
       
<body>ABCDEFGHIJUTLOPP</body>
   
</html>

{% endblock %}

And in settings.py I have added the package as below-

settings.JPG


It's a basic templates setup I have done just for GTM.

Can anyone please tell me what I am doing wrong here?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4ce04497-b004-49d5-8d10-815c8fb25c77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Local variable dump on exception in production environment (DEBUG=False)

Hi,

In our production environment, we receive mail whenever an exception happens in our django application. But it contains only the function traces. The log will be helpful it also contains data dump or the local variable dump for each function trace. 
The exception trace on the browser in our development environment (DEBUG=True) contains the local variable dump. 

Hence, could anyone let me know if it's possible to get the local variable dump during exceptions in our django application? 

Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5b32c8ae-eb93-425d-88dc-d2c2a775a487%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Unable to load Google Tag Manager in my Django admin app

Hi All,

I am trying to use Google Tag Manager(GTM) in my Django 2.0.6 application by following below url-

In GTM console I have set my app but when I preview my app, GTM is not loading.
I suspect I am missing something with respect to my templates.

Below is my project structure-

django_project.JPG


In base.html I have put following code-
{% load gtm_tags %}

<html>
   
<head>
       
{% gtm_head %}
       
<title>GTM testing</title>
       
<link rel="stylesheet" type="text/css" href="/static/admin/css/base.css" />
       
<link rel="stylesheet" type="text/css" href="/static/admin/css/login.css" />
   
</head>
   
<body class=" login">
    {% gtm_body %}
       
<div id="container">
           
<div id="header">
               
<div id = "branding">
                   
<h1 id="site-name">GTM Testing Page</h1>
               
</div>
           
</div>
           
<div id="content">
               
<div id="content-main">
                     {% block content %}
                     {% endblock %}
               
</div>
           
</div>
       
</div>
   
</body>
</html>

In authorize_geoplugin.html I have put following lines-
{% extends 'base.html' %}

{% block content %}
   
<html>
       
<body>ABCDEFGHIJUTLOPP</body>
   
</html>

{% endblock %}

And in settings.py I have added the package as below-

settings.JPG


It's a basic templates setup I have done just for GTM.

Can anyone please tell me what I am doing wrong here?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7a9c254f-454d-4f61-89b6-2974efc88706%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Need Contributors and beginners for job portal ( Whatsapp group )

I am interested 


Virus-free. www.avast.com

On Fri, 1 Feb 2019 at 00:34, Roshan Shah <techieroshan@gmail.com> wrote:
I want to build a job portal for companies who sponsor work visas to skilled resources.

1) Candian Employers offering jobs to express entry professionals
2) US Employers offering TN Visas to Canadian Citizens

Other use cases.  I need a group of volunteer people interested to work on this

1) Front end devs
2) Designers
3) Database Architects
4) Django Devs
5) Architects

If you are interested, please send me a whatsapp hello on +1 (604) 630-4292.  If I get sufficient response, we will start the project mid february.

--
--

Roshan Shah / Sr. IT Consultant
techieroshan@gmail.com / (519) 496-8860

This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with me by e-mail is deemed to have accepted these risks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALX19Ng22NNODPYcUk7i-Odc%2BQeGSxk%3DAodStzO1SQUUCK1GCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Emeka Boris Ama
about.me/emekaboris

Virus-free. www.avast.com

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMk5Y5X0beTtviJhjH6ueSHecK0PxOy%2BrocA92vznp_KZd3REA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

i think i found the issue, problem was in the html url tag..
i should look like this
href="{ url 'update_group' list_all.url_id }">

not like this
href="{ url 'update_group' item.id }">

thank you all

pet, 1. velj 2019. u 09:26 Ivan Martić <martic.ivan@gmail.com> napisao je:
Hi guys, any help on this matter? i still have noreverse issue. There is something wrong with my url nameing

sri, 30. sij 2019. u 10:55 Ivan Martić <martic.ivan@gmail.com> napisao je:
Bok Nebojša, jel možeš uletit i pogledati molim te što radim krivo.

Znači, imam 2 aplikacije, prva abc radi a druga product groups ne radi..
Sve je kopirano u 2 privitka.

Da li imaš vremena pogledati pliz?
Šta god napravim, No reverse mi se javlja....... 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFab_C8vxGNnJ1N8cJ%3D1nsuAD306TY9s46TuObJs-%2BsvnVP0eQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

Hi guys, any help on this matter? i still have noreverse issue. There is something wrong with my url nameing

sri, 30. sij 2019. u 10:55 Ivan Martić <martic.ivan@gmail.com> napisao je:
Bok Nebojša, jel možeš uletit i pogledati molim te što radim krivo.

Znači, imam 2 aplikacije, prva abc radi a druga product groups ne radi..
Sve je kopirano u 2 privitka.

Da li imaš vremena pogledati pliz?
Šta god napravim, No reverse mi se javlja....... 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFab_C_5O6w3sL7dZJJqFGkKz1rK_7sqor%3DpvEeEz5iXR2EYXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.