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

    How would I do this in Django? (preferably with a filter or queryset).

  2. How to change site title, site header and index title in Django Admin?

    May 26, 2023 · As of Django 1.7 you don't need to override templates. You can now implement site_header, site_title, and index_title attributes on a custom AdminSite in order to easily change the …

  3. AbstractUser vs AbstractBaseUser in Django? - Stack Overflow

    Jul 20, 2023 · The use of AbstractUser and AbstractBaseUser looks quite similar. from django.contrib.auth.models import AbstractUser, AbstractBaseUser What is the difference between …

  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: TemplateDoesNotExist at …

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

  6. OneToOneField() vs ForeignKey() in Django - Stack Overflow

    May 3, 2011 · Differences between OneToOneField(SomeModel) and ForeignKey(SomeModel, unique=True) as stated in The Definitive Guide to Django: OneToOneField A one-to-one relationship. …

  7. How do I set up Jupyter/IPython Notebook for Django?

    With a recent upgrade to Jupyter Notebook this setup is now broken for me. I am able to run Django code in the Jupyter notebook by adding a similar bit of code to the first cell of the notebook. …

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

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

  10. ImportError: cannot import name 'six' from 'django.utils'

    Dec 5, 2019 · Recently, I upgraded the version of Django framework from 2.0.6 to 3.0 and suddenly after calling python manage.py shell command, I got this exception: ImportError: cannot import name 'six' …