About 6,320,000 results
Open links in new tab
  1. python - How to check Django version - Stack Overflow

    Jun 24, 2011 · I have to use Python and Django for our application. So, I have two versions of Python, 2.6 and 2.7. Now I have installed Django. I could run the sample application for testing …

  2. python - Django TemplateDoesNotExist? - Stack Overflow

    Dec 18, 2009 · My local machine is running Python 2.5 and Nginx on Ubuntu 8.10, with Django builded from latest development trunk. For every URL I request, it throws: …

  3. 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 …

  4. How can I list urlpatterns (endpoints) on Django?

    How can I see the current urlpatterns that "reverse" is looking in? I'm calling reverse in a view with an argument that I think should work, but doesn't. Any way I can check what's there and why my

  5. django abstract models versus regular inheritance - Stack Overflow

    Besides the syntax, what's the difference between using a django abstract model and using plain Python inheritance with django models? Pros and cons? UPDATE: I think my question was …

  6. How to properly use the "choices" field option in Django

    You should seriously consider namespacing variables you use for choices in Django model fields; it should be apparent that the variable is related to a specific field in order to avoid confusing …

  7. How to combine multiple QuerySets in Django? - Stack Overflow

    9 Requirements: Django==2.0.2, django-querysetsequence==0.8 In case you want to combine querysets and still come out with a QuerySet, you might want to check out django-queryset …

  8. How to debug in Django, the good way? - Stack Overflow

    Jul 13, 2009 · Just click to the left of a line and hit the debug button. It works well for Django source code too if you want to get a better understanding of how the internal code works. It …

  9. How to get all fields for a Django model? - Stack Overflow

    Given a Django model, I'm trying to list all of its fields. I've seen some examples of doing this using the _meta model attribute, but doesn't the underscore in front of meta indicate that the …

  10. Django: how to raise a validation error exception in a model's save ...

    Mar 19, 2019 · It's not my own class. The User model is defined by Django. I had to do this monkey patch to modify methods on Django's built in user model because after you have …