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

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

  2. How change default from Python 3.9 to Python 3.12 So I can Install ...

    Nov 27, 2024 · How change default from Python 3.9 to Python 3.12 So I can Install Django 5.0.0 Using Django Getting Started ZacAmata November 27, 2024, 2:16pm

  3. How do I properly set PYTHONPATH when invoking the Django Python …

    Oct 3, 2023 · 2 I'm using Python 3.9.9 for a Django 3 project. I would like to invoke my Python shell, via "python3 manage.py shell", so I have set these variables ...

  4. python - How to access the local Django webserver from outside world ...

    I followed the instructions here to run Django using the built-in webserver and was able to successfully run it using python manage.py runserver. If I access 127.0.0.1:port locally from the webserver, I get …

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

    Mar 22, 2016 · I was trying to create migrations within an existing app using the makemigrations command but it outputs "No changes detected". Usually I create new apps using the …

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

    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 …

  7. python - How do I include image files in Django templates ... - Stack ...

    May 23, 2009 · For about how to serve and where to place your static files, check out this document. Basicly, if you're using django's development server, you want to show him the place where your …

  8. python - Django values_list vs values - Stack Overflow

    May 13, 2016 · The best place to understand the difference is at the official documentation on values / values_list. It has many useful examples and explains it very clearly. The django docs are very user …

  9. python - Format numbers in django templates - Stack Overflow

    Dec 7, 2008 · The string format (the python) way because you cannot use this directly in templates - you would have to put this in a template tag (which is a fine answer), but just throwing this out is of little …

  10. 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 declared exactly once. …