Bastou adicionar a linha AddressFamily inet em /etc/ssh/sshd_config
Solução encontrada em https://bbs.archlinux.org/viewtopic.php?id=218584
| def get_actions(self, request): | |
| actions = super().get_actions(request) | |
| if 'delete_selected' in actions: | |
| del actions['delete_selected'] | |
| return actions |
| # Processa patentes | |
| def get_despachos_patentes_INPI(ip_type, Patent): | |
| if ip_type == 'Patente': | |
| ip_id = Patent.objects.values_list('patent_id', flat=True).filter(active=True) | |
| if ip_id: | |
| for despatch in doc.iterfind('despacho'): | |
| for process in despatch.iterfind('processo-patente'): | |
| number = process.findtext('numero') | |
| if number in ip_id: | |
| qtd_finded += 1 |
Bastou adicionar a linha AddressFamily inet em /etc/ssh/sshd_config
Solução encontrada em https://bbs.archlinux.org/viewtopic.php?id=218584
Requisitos que funcionaram comigo:
Caso seja necessário criar um aplicativo Django com vários subsites, django-tenant-schemas me pareceu a melhor opção. Funciona da seguinte forma, por exemplo:
| INSERT INTO config_icon(name, image_mdb) | |
| VALUES ('axis arrow info', 'mdi-axis-arrow-info'), | |
| ('baby buggy', 'mdi-baby-buggy'), | |
| ('beehive off outline', 'mdi-beehive-off-outline'), | |
| ('bell cancel', 'mdi-bell-cancel'), | |
| ('bell cancel outline', 'mdi-bell-cancel-outline'), | |
| ('bell minus', 'mdi-bell-minus'), | |
| ('bell minus outline', 'mdi-bell-minus-outline'), | |
| ('bell remove', 'mdi-bell-remove'), | |
| ('bell remove outline', 'mdi-bell-remove-outline'), |
| def get_symbol_default(): | |
| """ | |
| Busca pelo ícone padrão do sistema | |
| :return: retorna o valor default do | |
| """ | |
| try: | |
| default_icon = Default.objects.first().get('default_icon') | |
| except BaseException as error: | |
| raise BaseException(_('Register a default icon.')) from error | |
| return default_icon |
| def save(self, *args, **kwargs): | |
| # Detectando mudanças em alguns campos | |
| old = Notification.objects.filter(pk=getattr(self, 'pk', None)).first() | |
| if old: | |
| # Se o campo number tiver sido modificado, limpar os campos | |
| if old.number != self.number: | |
| self.file = None | |
| self.download_success = False | |
| self.download_date_time = None |
| class ArticleForm(forms.ModelForm): | |
| brief_summary = forms.CharField( | |
| widget=TinyMCE( | |
| attrs={ | |
| 'cols': 80, | |
| 'rows': 50 | |
| } | |
| ) | |
| ) |
| class ArticleForm(forms.ModelForm): | |
| brief_summary = forms.CharField( | |
| widget=TinyMCE( | |
| attrs={ | |
| 'cols': 80, | |
| 'rows': 50 | |
| } | |
| ) | |
| ) |
| def logged(level, name=None, message=None): | |
| def decorate(func): | |
| logname = name if name else func.__name__ | |
| log = logging.getLogger(logname) | |
| logmsg = message if message else func.__name__ | |
| @wraps(func) | |
| def wrapper(*args, **kwargs): | |
| log.log(level, logmsg) | |
| return func(*args, **kwargs) |