About 6,350,000 results
Open links in new tab
  1. django - CSRF Failed: CSRF token missing or incorrect - Stack …

    Django REST Framework enforces this, only for SessionAuthentication, so you must pass the CSRF token in the X-CSRFToken header. The Django documentation provides more …

  2. python - Django | Missing Positional Arguments - Stack Overflow

    Oct 25, 2024 · So Django is currently under the impression that I am missing positional arguments when I'm putting together a help section for a website. This includes help articles which are …

  3. django - What is reverse ()? - Stack Overflow

    Jun 28, 2012 · Given a url pattern, Django uses url () to pick the right view and generate a page. That is, url--> view name. But sometimes, like when redirecting, you need to go in the reverse …

  4. Django: how to count SQL queries from a unit test?

    Django's unit test framework actually sets DEBUG to False when it runs, so no matter what you have in settings.py, you will not have anything populated in connection.queries in your unit test …

  5. django_debug_toolbar and Docker - Stack Overflow

    Nov 13, 2014 · So I got docker and Django to work locally, first by building an image from a Dockerfile, then using Fig to get postgres image, link it to the base image, and run the …

  6. django - Select distinct values from a table field - Stack Overflow

    Mar 18, 2010 · I'm struggling getting my head around the Django's ORM. What I want to do is get a list of distinct values within a field on my table .... the equivalent of one of the following: …

  7. Running Django server on localhost - Stack Overflow

    Dec 11, 2017 · I would like to run a Django server locally using a local IP. I have localhost mapped here: $ head -n 1 /etc/hosts 127.0.0.1 localhost I have this chunk of code in my …

  8. python - Uninstall Django completely - Stack Overflow

    Jan 3, 2014 · I uninstalled django on my machine using pip uninstall Django. It says successfully uninstalled whereas when I see django version in python shell, it still gives the older version I …

  9. Django: Safely Remove Old Migrations? - Stack Overflow

    Sep 18, 2019 · Django stores the newest migrations information in the database. Thus if you remove now all of the current migrations and create new one (0001_initial.py), once you run …

  10. django - What is a NoReverseMatch error, and how do I fix it?

    Jul 15, 2016 · 2 With django-extensions you can make sure your route in the list of routes: ./manage.py show_urls | grep path_or_name If the route is missing you probably have not …