This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
class AdminChangelistMixin(admin.ModelAdmin): | |
change_list_template = "grappelli-overrides/change_list_filter_sidebar.html" | |
change_list_filter_template = "grappelli-overrides/filter.html" | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Originally from marc-w.com | |
# Built and tested on Django 1.6 | |
# NOTE: this is not bulletproof for sql injection, but works with INSERT .. SELECT FROM queries. | |
# thats why you should wrap strings into "" on your own. | |
from django.db import connection, transaction | |
class BulkInsertManager(models.Manager): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
• Autodiscover posts request to https://domain.com/Autodiscover/Autodiscover.xml. | |
where the domain.com is the email domain part of the email address used in account settings. | |
• Autodiscover posts request to https://autodiscover.domain.com/Autodiscover/Autodiscover.xml. | |
Autodiscover performs the following redirect check: GET http://autodiscover.domain.com/Autodiscover/Autodiscover.xml | |
where the domain.com is the email domain part of the email address used in account settings. | |
• Autodiscover uses DNS SRV lookup for _autodiscover._tcp.domain.com, if it exists, the "mail.domain.com" is returned. | |
where the email domain in _autodiscover._tcp.domain.com request is email domain name and the email domain name in mail.domain.com response is DNS name of the Kerio Connect server. | |
Autodiscover posts request to https://mail.domain.com/autodiscover/autodiscover.xml. | |
Configuration server at ISP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Speed up your webapp click response using jQuery.. | |
/* | |
Use case: Lets suppose we are using XMLHttpRequest Ajax calls for page content change - expecting html return to just redraw page container, not whole layout | |
Solution: Use mousedown instead of click if possible. Don't forget to bypass if any function key or other than left click pressed. | |
*/ | |
$(document).on("mousedown","a[href^='/']",basicAjaxEvent); | |
$(document).on("click","a[href^='/']",basicAjaxEvent); | |
function basicAjaxEvent(e){ |