About 6,370,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 - 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: …

  4. Django MEDIA_URL and MEDIA_ROOT - Stack Overflow

    Mar 29, 2017 · Learn how to configure Django's MEDIA_URL and MEDIA_ROOT settings for managing media files effectively in your project.

  5. Django - show loading message during long processing

    Here is another explanation on how to get a loading message for long loading Django views Views that do a lot of processing (e.g. complex queries with many objects, accessing 3rd party …

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

    Jun 28, 2012 · When I read Django code sometimes, I see in some templates reverse(). I am not quite sure what this is but it is used together with HttpResponseRedirect. How and when is this …

  7. No module named django but it is installed - Stack Overflow

    2 Try updating the Django. I was getting the same issue because I had an older version of Django installed. I installed the latest version of Django instead and it fixed my issue.

  8. Django: Country drop down list? - Stack Overflow

    Jun 3, 2010 · UPDATE (Django >=4.0) Using pytz.country_names was convenient in older Django versions, as described below, but Django >=4.0 uses zoneinfo instead of pytz. Details in the …

  9. Creating a JSON response using Django and Python

    592 I'm trying to convert a server side Ajax response script into a Django HttpResponse, but apparently it's not working. This is the server-side script:

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