# Not getting required information like transaction,error for python(django) application

**URL:** <https://discuss.elastic.co/t/not-getting-required-information-like-transaction-error-for-python-django-application/219900>\
**Category:** APM\
**Tags:** python\
**Created:** [February 19, 2020, 5:49am UTC](https://discuss.elastic.co/t/not-getting-required-information-like-transaction-error-for-python-django-application/219900 "2020-02-19T05:49:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanu](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@shanu](https://discuss.elastic.co/u/shanu)\
**Post date:** [February 19, 2020, 5:49am UTC](https://discuss.elastic.co/t/not-getting-required-information-like-transaction-error-for-python-django-application/219900/1 "2020-02-19T05:49:48Z")

</div>

Successfully installed & inserted piece of code in settings.py of my application ,but getting only cpu,memory metrics.kindly suggest why all information not collecting

---

<div class="post-metadata">

**Author:** ![beniwohli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beniwohli/32/21256_2.png) [@beniwohli](https://discuss.elastic.co/u/beniwohli)\
**Post date:** [February 19, 2020, 6:38am UTC](https://discuss.elastic.co/t/not-getting-required-information-like-transaction-error-for-python-django-application/219900/2 "2020-02-19T06:38:36Z")

</div>

Hi @shanu

Can you check if `DEBUG` is set to `True` in your settings.py file? The agent will only collect errors and transactions if it is set to `False`, or if `ELASTIC_APM["DEBUG"]` is set to `True`. See also [https://www.elastic.co/guide/en/apm/agent/python/current/configuration.html#config-debug](https://www.elastic.co/guide/en/apm/agent/python/current/configuration.html#config-debug)

---

<div class="post-metadata">

**Author:** ![shanu](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@shanu](https://discuss.elastic.co/u/shanu)\
**Post date:** [February 19, 2020, 6:47am UTC](https://discuss.elastic.co/t/not-getting-required-information-like-transaction-error-for-python-django-application/219900/3 "2020-02-19T06:47:41Z")

</div>

> [@beniwohli](#):
>
> ttings.py

Its already set to TRUE

---

<div class="post-metadata">

**Author:** ![beniwohli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beniwohli/32/21256_2.png) [@beniwohli](https://discuss.elastic.co/u/beniwohli)\
**Post date:** [February 19, 2020, 8:20am UTC](https://discuss.elastic.co/t/not-getting-required-information-like-transaction-error-for-python-django-application/219900/4 "2020-02-19T08:20:16Z")

</div>

OK, can you try to run these commands in your Django app folder?

```
./manage.py elasticapm check
./manage.py elasticapm test

```

The first command does a few sanity checks, the second one should send an error to the configured APM Server. It'll be called `TestException: Hi there!`. Can you paste the output from the two commands? Make sure to replace any details you don't want to share with `***`, like the values for`SECRET_TOKEN` or `SERVICE_NAME`.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 11, 2020, 4:20am UTC](https://discuss.elastic.co/t/not-getting-required-information-like-transaction-error-for-python-django-application/219900/5 "2020-03-11T04:20:24Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
