I'm trying to include some CSS and JS files into the change form of an object like specified in the doc. Here are me files:
admin.py
#...
class ScribPartAdmin(admin.ModelAdmin):
class Media:
css = {
'all': ('mymarkup.css',)
}
js = ('mymarkup.js',)
admin.site.register(ScribPart, ScribPartAdmin)
#...
models.py
class ScribPart(models.Model):
part = models.IntegerField()
sequence = models.IntegerField()
file = models.FileField(upload_to='audio/')
text = models.TextField()
#...
My 2 media files are included in the change_list
template but not in the change_form
one.
The question is: Why ?