File: troubleshooting.rst

package info (click to toggle)
python-django-guid 3.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 664 kB
  • sloc: python: 1,267; makefile: 16
file content (43 lines) | stat: -rw-r--r-- 1,068 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Troubleshooting
===============

Turn on Django debug logging
----------------------------

Set the logger to log DEBUG logs from django-guid:

.. code-block:: python

    LOGGING = {
        'loggers': {
            'django_guid': {
                'handlers': ['console'],
                'level': 'DEBUG',
            },
        },
    }



Run Django with warnings enabled
--------------------------------
Start ``manage.py runserver``  with the ``-Wd`` parameter to enable warnings that normally are suppressed.

.. code-block:: bash

    python -Wd manage.py runserver


Use the demo project as a reference
-----------------------------------
There is a simple demo project available in the ``demoproj`` folder, have a look at that to see best practices.


Read the official logging docs
------------------------------
Read the `official docs <https://docs.djangoproject.com/en/dev/topics/logging/>`_ about logging.


Ask for help
------------
Still no luck? Create an `issue on GitHub <https://github.com/snok/django-guid/issues/new/choose>`_ and ask for help.