About 57,100 results
Open links in new tab
  1. python - How to change the Django default runserver port

    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 before …

  2. python - Django - makemigrations - No changes detected - Stack …

    Mar 22, 2016 · When adding new models to the django api application and running the python manage.py makemigrations the tool did not detect any new models. The strange thing was …

  3. python - How to properly use the "choices" field option in Django ...

    10 I would suggest to use django-model-utils instead of Django built-in solution. The main advantage of this solution is the lack of string declaration duplication. All choice items are …

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

  5. python - How to properly use multiprocessing module with …

    Aug 29, 2022 · 3 I'm having a python 3.8+ program using Django and Postgresql which requires multiple threads or processes. I cannot use threads since the GLI will restrict them to a single …

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

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

    Related, for mixing querysets from the same model, or for similar fields from a few models, starting with Django 1.11 a QuerySet.union() method is also available: union() …

  8. How to execute a Python script from the Django shell?

    The django shell is the good way to execute a python module with the django environment, but it is not always easy and tiresome to import modules and execute functions manually especially …

  9. python - How do I do a not equal in Django queryset filtering?

    Feb 22, 2017 · The Django issue tracker has the remarkable entry #5763, titled "Queryset doesn't have a "not equal" filter operator". It is remarkable because (as of April 2016) it was "opened 9 …

  10. python - How do I call a Django function on button click ... - Stack ...

    I am trying to write a Django application and I am stuck at how I can call a view function when a button is clicked. In my template, I have a link button as below, when clicked it takes you to a