|
46 | 46 | # Application definition
|
47 | 47 |
|
48 | 48 | INSTALLED_APPS = [
|
| 49 | + 'jazzmin', |
49 | 50 | 'django.contrib.admin',
|
50 | 51 | 'django.contrib.auth',
|
51 | 52 | 'django.contrib.contenttypes',
|
|
55 | 56 | 'apps.core',
|
56 | 57 | 'apps.project',
|
57 | 58 | 'apps.event',
|
| 59 | + 'meta', |
| 60 | + 'template_data', |
58 | 61 | ]
|
59 | 62 |
|
60 | 63 | MIDDLEWARE = [
|
|
80 | 83 | 'django.template.context_processors.request',
|
81 | 84 | 'django.contrib.auth.context_processors.auth',
|
82 | 85 | 'django.contrib.messages.context_processors.messages',
|
| 86 | + 'template_data.processors.load_data', |
83 | 87 | ],
|
84 | 88 | },
|
85 | 89 | },
|
|
105 | 109 | DATABASES = {
|
106 | 110 | 'default': {
|
107 | 111 | 'ENGINE': 'django.db.backends.sqlite3',
|
108 |
| - 'NAME': BASE_DIR / 'db.sqlite3', |
| 112 | + 'NAME': str(BASE_DIR / 'db.sqlite3'), |
109 | 113 | }
|
110 | 114 | }
|
111 | 115 |
|
|
166 | 170 | # EMAIL_HOST_PASSWORD =""
|
167 | 171 | # EMAIL_USE_TLS =False
|
168 | 172 | # EMAIL_USE_SSL =False
|
| 173 | + |
| 174 | +# Meta settings |
| 175 | +META_SITE_PROTOCOL = "https" |
| 176 | +META_SITE_DOMAIN = "pythoncm.org" |
| 177 | +META_SITE_NAME = "Python Cameroon" |
| 178 | +META_INCLUDE_KEYWORDS = ["pycm", "pythoncm", "python cameroon", 'python cameroun'] |
| 179 | +META_USE_OG_PROPERTIES = True |
| 180 | +META_USE_TWITTER_PROPERTIES = True |
| 181 | +META_USE_GOOGLEPLUS_PROPERTIES = True |
| 182 | +META_OG_SECURE_URL_ITEMS = [] |
| 183 | + |
| 184 | + |
| 185 | +JAZZMIN_SETTINGS = { |
| 186 | + # title of the window |
| 187 | + "site_title": "Python Cameroon Admin", |
| 188 | + |
| 189 | + # Title on the brand, and the login screen (19 chars max) |
| 190 | + "site_header": "Python Cameroon", |
| 191 | + |
| 192 | + # square logo to use for your site, must be present in static files, used for favicon and brand on top left |
| 193 | + #"site_logo": "books/img/logo.png", |
| 194 | + |
| 195 | + # Welcome text on the login screen |
| 196 | + "welcome_sign": "Welcome to Python Cameroon", |
| 197 | + |
| 198 | + # Copyright on the footer |
| 199 | + "copyright": "PyCM", |
| 200 | + |
| 201 | + # The model admin to search from the search bar, search bar omitted if excluded |
| 202 | + #"search_model": "auth.User", |
| 203 | + |
| 204 | + # Field name on user model that contains avatar image |
| 205 | + #"user_avatar": None, |
| 206 | + |
| 207 | + ############ |
| 208 | + # Top Menu # |
| 209 | + ############ |
| 210 | + |
| 211 | + # Links to put along the top menu |
| 212 | + #"topmenu_links": [ |
| 213 | + |
| 214 | + ## Url that gets reversed (Permissions can be added) |
| 215 | + #{"name": "Home", "url": "admin:index", "permissions": ["auth.view_user"]}, |
| 216 | + |
| 217 | + ## external url that opens in a new window (Permissions can be added) |
| 218 | + #{"name": "Support", "url": "https://github.com/farridav/django-jazzmin/issues", "new_window": True}, |
| 219 | + |
| 220 | + ## model admin to link to (Permissions checked against model) |
| 221 | + #{"model": "auth.User"}, |
| 222 | + |
| 223 | + ## App with dropdown menu to all its models pages (Permissions checked against models) |
| 224 | + #{"app": "books"}, |
| 225 | + #], |
| 226 | + |
| 227 | + ############## |
| 228 | + ## User Menu # |
| 229 | + ############## |
| 230 | + |
| 231 | + ## Additional links to include in the user menu on the top right ("app" url type is not allowed) |
| 232 | + #"usermenu_links": [ |
| 233 | + #{"name": "Support", "url": "https://github.com/farridav/django-jazzmin/issues", "new_window": True}, |
| 234 | + #{"model": "auth.user"} |
| 235 | + #], |
| 236 | + |
| 237 | + ############# |
| 238 | + # Side Menu # |
| 239 | + ############# |
| 240 | + |
| 241 | + # Whether to display the side menu |
| 242 | + "show_sidebar": True, |
| 243 | + |
| 244 | + # Whether to aut expand the menu |
| 245 | + "navigation_expanded": True, |
| 246 | + |
| 247 | + ## Hide these apps when generating side menu e.g (auth) |
| 248 | + #"hide_apps": [], |
| 249 | + |
| 250 | + ## Hide these models when generating side menu (e.g auth.user) |
| 251 | + #"hide_models": [], |
| 252 | + |
| 253 | + ## List of apps (and/or models) to base side menu ordering off of (does not need to contain all apps/models) |
| 254 | + #"order_with_respect_to": ["auth", "books", "books.author", "books.book"], |
| 255 | + |
| 256 | + ## Custom links to append to app groups, keyed on app name |
| 257 | + #"custom_links": { |
| 258 | + #"books": [{ |
| 259 | + #"name": "Make Messages", |
| 260 | + #"url": "make_messages", |
| 261 | + #"icon": "fas fa-comments", |
| 262 | + #"permissions": ["books.view_book"] |
| 263 | + #}] |
| 264 | + #}, |
| 265 | + |
| 266 | + # Custom icons for side menu apps/models See https://fontawesome.com/icons?d=gallery&m=free |
| 267 | + # for a list of icon classes |
| 268 | + #"icons": { |
| 269 | + #"auth": "fas fa-users-cog", |
| 270 | + #"auth.user": "fas fa-user", |
| 271 | + #"auth.Group": "fas fa-users", |
| 272 | + #}, |
| 273 | + ## Icons that are used when one is not manually specified |
| 274 | + #"default_icon_parents": "fas fa-chevron-circle-right", |
| 275 | + #"default_icon_children": "fas fa-circle", |
| 276 | + |
| 277 | + ################## |
| 278 | + ## Related Modal # |
| 279 | + ################## |
| 280 | + ## Use modals instead of popups |
| 281 | + #"related_modal_active": False, |
| 282 | + |
| 283 | + ############## |
| 284 | + ## UI Tweaks # |
| 285 | + ############## |
| 286 | + ## Relative paths to custom CSS/JS scripts (must be present in static files) |
| 287 | + #"custom_css": None, |
| 288 | + #"custom_js": None, |
| 289 | + ## Whether to show the UI customizer on the sidebar |
| 290 | + #"show_ui_builder": False, |
| 291 | + |
| 292 | + ################ |
| 293 | + ## Change view # |
| 294 | + ################ |
| 295 | + ## Render out the change view as a single form, or in tabs, current options are |
| 296 | + ## - single |
| 297 | + ## - horizontal_tabs (default) |
| 298 | + ## - vertical_tabs |
| 299 | + ## - collapsible |
| 300 | + ## - carousel |
| 301 | + #"changeform_format": "horizontal_tabs", |
| 302 | + ## override change forms on a per modeladmin basis |
| 303 | + #"changeform_format_overrides": {"auth.user": "collapsible", "auth.group": "vertical_tabs"}, |
| 304 | + ## Add a language dropdown into the admin |
| 305 | + #"language_chooser": True, |
| 306 | +} |
0 commit comments