About 50 results
Open links in new tab
  1. How to do an OR filter in a Django query? - Stack Overflow

    item.creator = owner or item.moderated = False How would I do this in Django? (preferably with a filter or queryset).

  2. Running Django server on localhost - Stack Overflow

    Dec 11, 2017 · I would like to run a Django server locally using a local IP. I have localhost mapped here: $ head -n 1 /etc/hosts 127.0.0.1 localhost I have this chunk of code in my settings.py: import os

  3. python - What is the difference between Django and Django Rest ...

    Django is the web development framework in python whereas the Django Rest Framework is the library used in Django to build Rest APIs. Django Rest Framework is especially designed to make the …

  4. Django: How to manage development and production settings?

    May 19, 2012 · The DJANGO_SETTINGS_MODULE environment variable controls which settings file Django will load. You therefore create separate configuration files for your respective environments …

  5. Using django-admin on windows powershell - Stack Overflow

    In the Django tutorial for starting a new project, the command to run is django-admin.py startproject mysite However, when I run this, I always encounter the following error: django-admin : The ...

  6. python - Django optional URL parameters - Stack Overflow

    Jan 16, 2013 · 72 Django > 2.0 version: The approach is essentially identical with the one given in Yuji 'Tomita' Tomita's Answer. Affected, however, is the syntax:

  7. Django - makemigrations - No changes detected - Stack Overflow

    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 …

  8. How to use if/else condition on Django Templates?

    How to use if/else condition on Django Templates? Asked 13 years, 6 months ago Modified 3 years ago Viewed 256k times

  9. 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 APIs) can take …

  10. Newest 'django' Questions - Stack Overflow

    Django is an open-source server-side web application framework written in Python. It is designed to reduce the effort required to create complex data-driven websites and web applications.