jazzmin_settings.py 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. JAZZMIN_SETTINGS = {
  2. # title of the window (Will default to current_admin_site.site_title if absent or None)
  3. "site_title": "ShariX Admin",
  4. # Title on the login screen (19 chars max) (defaults to current_admin_site.site_header if absent or None)
  5. "site_header": "ShariX Platform",
  6. # Title on the brand (19 chars max) (defaults to current_admin_site.site_header if absent or None)
  7. "site_brand": "ShariX Platform",
  8. # Logo to use for your site, must be present in static files, used for brand on top left
  9. "site_logo": "SharixAdmin/img/logo.svg",
  10. # Logo to use for your site, must be present in static files, used for login form logo (defaults to site_logo)
  11. "login_logo": None,
  12. # Logo to use for login form in dark themes (defaults to login_logo)
  13. "login_logo_dark": None,
  14. # CSS classes that are applied to the logo above
  15. "site_logo_classes": "img-circle",
  16. # Relative path to a favicon for your site, will default to site_logo if absent (ideally 32x32 px)
  17. "site_icon": None,
  18. # Welcome text on the login screen
  19. "welcome_sign": "Welcome to the ShariX Admin",
  20. # Copyright on the footer
  21. "copyright": "Acme Library Ltd",
  22. # List of model admins to search from the search bar, search bar omitted if excluded
  23. # If you want to use a single search field you dont need to use a list, you can use a simple string
  24. "search_model": ["SharixAdmin.SharixUser", "auth.Group"],
  25. # Field name on user model that contains avatar ImageField/URLField/Charfield or a callable that receives the user
  26. "user_avatar": None,
  27. ############
  28. # Top Menu #
  29. ############
  30. # Links to put along the top menu
  31. "topmenu_links": [
  32. # Url that gets reversed (Permissions can be added)
  33. {"name": "Home", "url": "admin:index", "permissions": ["auth.view_user"]},
  34. # external url that opens in a new window (Permissions can be added)
  35. #{"name": "Support", "url": "https://github.com/farridav/django-jazzmin/issues", "new_window": True},
  36. # model admin to link to (Permissions checked against model)
  37. {"model": "SharixAdmin.SharixUser"},
  38. # App with dropdown menu to all its models pages (Permissions checked against models)
  39. {"app": "books"},
  40. ],
  41. #############
  42. # User Menu #
  43. #############
  44. # Additional links to include in the user menu on the top right ("app" url type is not allowed)
  45. # "usermenu_links": [
  46. # {"name": "Support", "url": "https://github.com/farridav/django-jazzmin/issues", "new_window": True},
  47. # {"model": "SharixAdmin.SharixUser"}
  48. # ],
  49. # #############
  50. # # Side Menu #
  51. # #############
  52. # # Whether to display the side menu
  53. # "show_sidebar": True,
  54. # # Whether to aut expand the menu
  55. # "navigation_expanded": True,
  56. # # Hide these apps when generating side menu e.g (auth)
  57. # "hide_apps": [],
  58. # # Hide these models when generating side menu (e.g auth.user)
  59. # "hide_models": [],
  60. # # List of apps (and/or models) to base side menu ordering off of (does not need to contain all apps/models)
  61. # #"order_with_respect_to": ["auth", "books", "books.author", "books.book"],
  62. # # Custom links to append to app groups, keyed on app name
  63. # # "custom_links": {
  64. # # "books": [{
  65. # # "name": "Make Messages",
  66. # # "url": "make_messages",
  67. # # "icon": "fas fa-comments",
  68. # # "permissions": ["books.view_book"]
  69. # # }]
  70. # # },
  71. # # Custom icons for side menu apps/models See https://fontawesome.com/icons?d=gallery&m=free&v=5.0.0,5.0.1,5.0.10,5.0.11,5.0.12,5.0.13,5.0.2,5.0.3,5.0.4,5.0.5,5.0.6,5.0.7,5.0.8,5.0.9,5.1.0,5.1.1,5.2.0,5.3.0,5.3.1,5.4.0,5.4.1,5.4.2,5.13.0,5.12.0,5.11.2,5.11.1,5.10.0,5.9.0,5.8.2,5.8.1,5.7.2,5.7.1,5.7.0,5.6.3,5.5.0,5.4.2
  72. # # for the full list of 5.13.0 free icon classes
  73. # # "icons": {
  74. # # "auth": "fas fa-users-cog",
  75. # # "auth.user": "fas fa-user",
  76. # # "auth.Group": "fas fa-users",
  77. # # },
  78. # # Icons that are used when one is not manually specified
  79. # # "default_icon_parents": "fas fa-chevron-circle-right",
  80. # # "default_icon_children": "fas fa-circle",
  81. # #################
  82. # # Related Modal #
  83. # #################
  84. # # Use modals instead of popups
  85. # "related_modal_active": False,
  86. # #############
  87. # # UI Tweaks #
  88. # #############
  89. # # Relative paths to custom CSS/JS scripts (must be present in static files)
  90. # "custom_css": None,
  91. # "custom_js": None,
  92. # # Whether to link font from fonts.googleapis.com (use custom_css to supply font otherwise)
  93. # "use_google_fonts_cdn": True,
  94. # # Whether to show the UI customizer on the sidebar
  95. # "show_ui_builder": False,
  96. ###############
  97. # Change view #
  98. ###############
  99. # Render out the change view as a single form, or in tabs, current options are
  100. # - single
  101. # - horizontal_tabs (default)
  102. # - vertical_tabs
  103. # - collapsible
  104. # - carousel
  105. #"changeform_format": "horizontal_tabs",
  106. # override change forms on a per modeladmin basis
  107. #"changeform_format_overrides": {"SharixAdmin.SharixUser": "collapsible", "auth.group": "vertical_tabs"},
  108. # Add a language dropdown into the admin
  109. #"language_chooser": True,
  110. }