← Back
Editing: base.cpython-311.pyc
� �|�e�X � �x � d Z ddlZddlZddlZddlmZmZ ddlmZ ddl Z ddl mZ ddlm Z ddlmZmZ ddlmZmZ dd lmZ d Z G d� de� � Z G d � de� � Z G d� de� � Zd� Zd� Z G d� de� � Z G d� de� � Z G d� d� � Z G d� de� � Z G d� de� � Z!dS )z� Base classes for writing management commands (named commands which can be executed through ``django-admin`` or ``manage.py``). � N)�ArgumentParser� HelpFormatter)� TextIOBase)�checks)�ImproperlyConfigured)�color_style�no_style)�DEFAULT_DB_ALIAS�connections)�RemovedInDjango41Warning�__all__c �( � � e Zd ZdZdd�� fd� Z� xZS )�CommandErrora� Exception class indicating a problem while executing a management command. If this exception is raised during the execution of a management command, it will be caught and turned into a nicely-printed error message to the appropriate output stream (i.e., stderr); as a result, raising this exception (with a sensible description of the error) is the preferred way to indicate that something has gone wrong in the execution of a command. � )� returncodec �H �� || _ t � � j |i |�� d S �N)r �super�__init__)�selfr �args�kwargs� __class__s ��=/usr/lib/python3/dist-packages/django/core/management/base.pyr zCommandError.__init__! s, �� �$��������$�)�&�)�)�)�)�)� )�__name__� __module__�__qualname__�__doc__r � __classcell__�r s @r r r sQ �� � � � � � � � *+� *� *� *� *� *� *� *� *� *� *� *r r c � � e Zd ZdZdS )�SystemCheckErrorzC The system check framework detected unrecoverable errors. N)r r r r � r r r# r# &