ModelAdmin media definitions


/ Published in: Django
Save to your folder(s)



Copy this code and paste it in your HTML
  1. class ArticleAdmin(admin.ModelAdmin):
  2. class Media:
  3. css = {
  4. "all": ("my_styles.css",)
  5. }
  6. js = ("my_code.js",)

URL: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-media-definitions

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.