Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

216
Visualizações
Output the values of the variables of django rest framework

hello i have project on django rest framework and angularjs often need for debugging output some variable of backend, Is there simple a way output the values of the variables ?

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

Try to use debug tool bar

django-debug-toolbar

over 4 years ago · Santiago Trujillo Relatório

0

These are the ways with which you can easily debug in Django :

  • Simple print statements while the django development server is running. A simple print statement will output the variable verbatim on your terminal. This is the easiest way to get your problem sorted (well, it's not the ideal way and is only good if you need to debug less often), Sometimes, you would also feel need to prettify your console output for which you can always use Data Pretty Printer pprint documentation

  • Django also leverages django-debug-toolbar. According to me, this will qualify as the ideal way to debug Django applications. Here is the documentation for the same.

  • Now, since you have DRF already installed and are already working with it, you must be familiar that django-rest-framework APIView is the base class for all the Browsable APIs on the DRF Docs page. You can also visit the API page (URL is configurable) and can simulate API calls from the panel. You can debug through this by returning values that you want to debug as Response data for specific API.

over 4 years ago · Santiago Trujillo Relatório

0

Have you tried visiting your API urls in the browser? DRF provides a Browseable API so you can see lists and object details in the browser.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda