Top "Django-admin" questions

Django's built-in, automatic admin interface (django.

Django auto_now and auto_now_add

For Django 1.1. I have this in my models.py: class User(models.Model): created = models.DateTimeField(auto_now_add=True) …

python django datetime django-models django-admin
How to override and extend basic Django admin templates?

How do I override an admin template (e.g. admin/index.html) while at the same time extending it (see …

python django django-admin
Default value for field in Django model

Suppose I have a model: class SomeModel(models.Model): id = models.AutoField(primary_key=True) a = models.CharField(max_length=10) …

python django django-models django-admin
Can "list_display" in a Django ModelAdmin display attributes of ForeignKey fields?

I have a Person model that has a foreign key relationship to Book, which has a number of fields, but …

python django django-models django-admin modeladmin
Django: TemplateSyntaxError: Could not parse the remainder

I am getting this issue when I type localhost:8000/admin/. `TemplateSyntaxError: Could not parse the remainder: ':password_change' from …

django django-admin django-facebook
Getting Django admin url for an object

Before Django 1.0 there was an easy way to get the admin url of an object, and I had written a …

django django-admin django-urls
coercing to Unicode: need string or buffer, NoneType found when rendering in django admin

I have this error since a long time but can't figure it out : Caught TypeError while rendering: coercing to Unicode: …

python django django-admin
Django Admin - change header 'Django administration' text

How does one change the 'Django administration' text in the django admin header? It doesn't seem to be covered in …

python django django-admin
How to drop all tables from the database with manage.py CLI in Django?

How can I drop all tables from a database using manage.py and command line? Is there any way to …

mysql django django-admin
Override a form in Django admin

In Django admin I want to override and implement my own form for a model (e.g. Invoice model). I …

python django django-models django-admin django-views