About 6,290,000 results
Open links in new tab
  1. How to change the Django default runserver port? - Stack Overflow

    70 As of Django 1.9, the simplest solution I have found (based on Quentin Stafford-Fraser's solution) is to add a few lines to manage.py which dynamically modify the default port number …

  2. How do I do a not equal in Django queryset filtering?

    Feb 22, 2017 · 174 the field=value syntax in queries is a shorthand for field__exact=value. That is to say that Django puts query operators on query fields in the identifiers. Django supports the …

  3. python - How to check Django version - Stack Overflow

    Jun 24, 2011 · 815 Django 1.5 supports Python 2.6.5 and later. If you're under Linux and want to check the Python version you're using, run python -V from the command line. If you want to …

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

  5. 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: …

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

  7. How to override and extend basic Django admin templates?

    Jul 5, 2011 · To take complete control of which app a template is loaded from, there is django-apptemplates and django-app-namespace-template-loader, which are both still relevant if you …

  8. How to access the local Django webserver from outside world

    I realize the Django webserver is not a production server, but it's important for me for testing purposes to be able to access it from the outside world -- i.e. not from a web browser on the …

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

  10. ImportError: Couldn't import Django - Stack Overflow

    E:\video course\Python\code\web_worker\MxOnline>python manage.py runserver Traceback (most recent call last): File "manage.py", line 17, in <module> "Couldn't import Django. Are …