Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/django/apps/__pycache__/config.cpython-312.pyc

67 lines
9.0 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> i<>,<00><00>d<00>ddlZddlZddlmZddlmZddlmZddlm Z m
Z
dZ dZ Gd<08>d <09>Z y)
<EFBFBD>N)<01> import_module)<01>ImproperlyConfigured)<01>cached_property)<02> import_string<6E>module_has_submodule<6C>apps<70>modelsc<00>n<00>eZdZdZd<02>Zd<03>Zed<04><00>Zed<05><00>Z d<06>Z
e d<07><00>Z d d<08>Z dd <09>Zd
<EFBFBD>Zd <0B>Zy )<0F> AppConfigz>Class representing a Django application and its configuration.c<00><><00>||_||_d|_t|d<01>s|j d<02>d|_|j
j <00>std|j
z<00><00>t|d<05>s|j
j<00>|_ t|d<06>s|j|<02>|_ d|_ d|_ y)N<>label<65>.<2E>z4The app label '%s' is not a valid Python identifier.<2E> verbose_name<6D>path)<0E>name<6D>moduler<00>hasattr<74>
rpartitionr <00> isidentifierr<00>titler<00>_path_from_moduler<00> models_moduler )<03>self<6C>app_name<6D>
app_modules <20>AE:\Project\pygoedge\.venv\Lib\site-packages\django/apps/config.py<70>__init__zAppConfig.__init__s<><00><00><1C><04> <09>!<21><04> <0B><19><04> <09><17>t<EFBFBD>W<EFBFBD>%<25>!<21>,<2C>,<2C>S<EFBFBD>1<>!<21>4<>D<EFBFBD>J<EFBFBD><13>z<EFBFBD>z<EFBFBD>&<26>&<26>(<28>&<26>F<><14><1A><1A>S<><0E> <0E>
<17>t<EFBFBD>^<5E>,<2C> $<24>
<EFBFBD>
<EFBFBD> 0<> 0<> 2<>D<EFBFBD> <1D><17>t<EFBFBD>V<EFBFBD>$<24><1C>.<2E>.<2E>z<EFBFBD>:<3A>D<EFBFBD>I<EFBFBD>
"<22><04><1A><1B><04> <0B>c<00>P<00>d|jj<00>d|j<00>d<03>S)N<><z: <20>>)<03> __class__<5F>__name__r <00>rs r<00>__repr__zAppConfig.__repr__:s<00><00>!<21>^<5E>^<5E>4<>4<>d<EFBFBD>j<EFBFBD>j<EFBFBD>A<>Arc<00>&<00>ddlm}|jS)Nr)<01>settings)<03> django.confr(<00>DEFAULT_AUTO_FIELD)rr(s r<00>default_auto_fieldzAppConfig.default_auto_field=s<00><00>(<28><17>*<2A>*<2A>*rc<00>N<00>|jjtjuS)N)r#r+r r%s r<00>!_is_default_auto_field_overriddenz+AppConfig._is_default_auto_field_overriddenCs<00><00><13>~<7E>~<7E>0<>0<> <09>8T<38>8T<38>T<>Trc<00><<00>tt|dg<00><00>}t|<02>dk7rDt|dd<04>}|<03>!tjj |<03>g}ntt |<02><00>}t|<02>dkDrtd|<01>d|<02>d<07><05><00>|std|z<00><00>|d S)
z;Attempt to determine app's filesystem path from its module.<2E>__path__<5F><00>__file__NzThe app module z$ has multiple filesystem locations (zX); you must configure this app with an AppConfig subclass with a 'path' class attribute.z<>The app module %r has no filesystem location, you must configure this app with an AppConfig subclass with a 'path' class attribute.r)<08>list<73>getattr<74>len<65>osr<00>dirname<6D>setr)rr<00>paths<68>filenames rrzAppConfig._path_from_moduleGs<><00><00>
<15>W<EFBFBD>V<EFBFBD>Z<EFBFBD><12>4<>5<><05> <0E>u<EFBFBD>:<3A><11>?<3F><1E>v<EFBFBD>z<EFBFBD>4<EFBFBD>8<>H<EFBFBD><17>#<23><1B><17><17><1F><1F><18>2<>3<><05><1D>S<EFBFBD><15>Z<EFBFBD>(<28><05> <0E>u<EFBFBD>:<3A><01>><3E>&<26>5;<3B>E<EFBFBD>C<01><0E> <0E>
<17>&<26>1<>39<33>:<3A><0E> <0E>
<15>Q<EFBFBD>x<EFBFBD>rc
<00><><00>d}d}d} t|<01>}t|t<00><00>r|<01>dt<00><01>}t|<05>}tj|tj
<00>D<00><07>cgc]&\}}t ||<00>r||urt|dd<04>r||f<02><02>(} }}t| <09>dk(r | dd}n<>| D<00><07>cgc]\}}t|dd<07>r||f<02><02>} }}t| <09>dkDr=| D<00><07>
cgc]\}}
t|<07><00><02>} }}
t|<05>dd j| <0B><00>d<02><04><00>t| <09>dk(r| dd}|<02>|}|} |<02> t|<01>}|<04><>|<02><>|jd<02>\}}
} |r<>| dj<00>r<>t|<05>}tj|tj
<00>D<00><07>cgc] \}}t ||<00>r||ur t|<07><00><02>"} }}d
|<05>d | <0C>d <0C>} | r| d d j| <0B>zz } t!| <0A><00>t|<01>t |t"<00>st%d|z<00><00>|<03> |j&} t|<03>}|||<04>Scc}}wcc}}wcc}
}w#t$rY<00><01>.wxYw#t$rY<00><01>0wxYwcc}}w#t($rt%d|z<00><00>wxYw#t $r*t%d|<03>d|j*<00>d|j,<00>d<12><07><00>wxYw)zU
Factory that creates an app config from an entry in INSTALLED_APPS.
Nr<00>defaultTr0rFz+ declares more than one default AppConfig: z, zModule 'z' does not contain a 'z' class.z Choices are: %s.z#'%s' isn't a subclass of AppConfig.z"'%s' must supply a name attribute.zCannot import 'z'. Check that 'z.name' is correct.)rr<00>APPS_MODULE_NAME<4D>inspect<63>
getmembers<EFBFBD>isclass<73>
issubclassr3r4<00>repr<70> RuntimeError<6F>join<69> Exceptionrr<00>isupper<65> ImportErrorr rr<00>AttributeError<6F>
__module__<EFBFBD> __qualname__)<0E>cls<6C>entry<72>app_config_classrr<00>mod_path<74>modr<00> candidate<74> app_configs<67>_<>
candidates<EFBFBD>cls_name<6D>msgs r<00>createzAppConfig.createcsM<00><00>  <20><18><17><08><19>
<EFBFBD>/ !<21>&<26>u<EFBFBD>-<2D>J<EFBFBD>$<24>J<EFBFBD>0@<40>A<>&+<2B>-=<3D>><3E><08>#<23>H<EFBFBD>-<2D><03>
,3<>+=<3D>+=<3D>c<EFBFBD>7<EFBFBD>?<3F>?<3F>+S<><12>+S<><0F><04>i<EFBFBD>"<22>9<EFBFBD>c<EFBFBD>2<>%<25>S<EFBFBD>0<>#<23>I<EFBFBD>y<EFBFBD>$<24>?<3F> <1A>9<EFBFBD>%<25>+S<><1C><12><17>{<7B>#<23>q<EFBFBD>(<28>'2<>1<EFBFBD>~<7E>a<EFBFBD>'8<>$<24> 0;<3B>#<16>/:<3A>O<EFBFBD>D<EFBFBD>)<29>"<22>9<EFBFBD>i<EFBFBD><15>?<3F><1E>y<EFBFBD>)<29>/:<3A> <20>#<16>
<1B>;<3B>'<27>!<21>+<2B>@K<>%L<> <0B>W<EFBFBD>T<EFBFBD>1<EFBFBD>d<EFBFBD>4<EFBFBD>j<EFBFBD> <0B>
<EFBFBD>%L<>*<2A>%-<2D>t<EFBFBD>y<EFBFBD>y<EFBFBD><1A>/D<>F<01><1A><1A><1D>[<5B>)<29>Q<EFBFBD>.<2E>+6<>q<EFBFBD>><3E>!<21>+<<3C>(<28> <20>'<27>#&<26> <20> <20><08> <1C> #<23> <15>#0<><15>#7<> <20>
<16> <1D>"2<>":<3A>%*<2A>$4<>$4<>S<EFBFBD>$9<> !<21>H<EFBFBD>a<EFBFBD><18><17>H<EFBFBD>Q<EFBFBD>K<EFBFBD>/<2F>/<2F>1<> $<24>H<EFBFBD>-<2D><03>,3<>+=<3D>+=<3D>c<EFBFBD>7<EFBFBD>?<3F>?<3F>+S<><12>+S<><0F><04>i<EFBFBD>!<21>)<29>S<EFBFBD>1<>i<EFBFBD>s<EFBFBD>6J<36><19><14>J<EFBFBD>+S<><1B><12> <1D><1C><12><03><1E><17>.<2E><14><19><19>:<3A>1F<31>F<>F<>C<EFBFBD>!<21>#<23>&<26>&<26><1E>e<EFBFBD>$<24><1A>*<2A>I<EFBFBD>6<>&<26>'L<>u<EFBFBD>'T<>U<> U<> <14> <1B> Y<01>+<2B>0<>0<><08>
<0E>&<26>x<EFBFBD>0<>J<EFBFBD> <20><08>*<2A>5<>5<><35>A<12><>#<16><> &M<01><>E<19> <11> <10> <11><>f<1D> <15><14> <15><> <12><>4"<22> Y<01>*<2A>+O<>RW<52>+W<>X<>X<> Y<01><> <1B> <0E>&<26><1D>$<24>/<2F>/<2F>$<24>1<>1<> <12><0E> <0E> <0E>sS<00> I<00>!+I<06>+I<06>I <06>4 I#<00>%I3<06> I9<00>- J<00> I <03>I <03># I0<03>/I0<03>9J<03>3Kc<00><><00>|r|jj<00>n|jj<00> |j|j <00>S#t
$rt d|j<00>d|<01>d<03><05><00>wxYw)z<>
Return the model with the given case-insensitive model_name.
Raise LookupError if no model exists with this name.
zApp 'z' doesn't have a 'z' model.)r<00>check_models_ready<64>check_apps_readyr <00>lower<65>KeyError<6F> LookupErrorr )r<00>
model_name<EFBFBD> require_readys r<00> get_modelzAppConfig.get_model<65>sl<00><00> <19> <10>I<EFBFBD>I<EFBFBD> (<28> (<28> *<2A> <10>I<EFBFBD>I<EFBFBD> &<26> &<26> (<28> <0E><17>;<3B>;<3B>z<EFBFBD>/<2F>/<2F>1<>2<> 2<><32><17> <0E><1D>9=<3D><1A><1A>Z<EFBFBD>P<><0E> <0E> <0E>s <00>A<00>&A<c#<00><>K<00>|jj<00>|jj<00>D]8}|jj
r|s<01>|jj r|s<01>5|<03><01><00>:y<01>w)a<>
Return an iterable of models.
By default, the following models aren't included:
- auto-created models for many-to-many relations without
an explicit intermediate table,
- models that have been swapped out.
Set the corresponding keyword argument to True to include such models.
Keyword arguments aren't documented; they're a private API.
N)rrWr <00>values<65>_meta<74> auto_created<65>swapped)r<00>include_auto_created<65>include_swapped<65>models r<00>
get_modelszAppConfig.get_models<6C>sY<00><00><><00> <0A> <09> <09>$<24>$<24>&<26><19>[<5B>[<5B>'<27>'<27>)<29>E<EFBFBD><14>{<7B>{<7B>'<27>'<27>0D<30><18><14>{<7B>{<7B>"<22>"<22>?<3F><18><17>K<EFBFBD> *<2A>s<00>A1A3c<00><><00>|jj|j|_t |j
t <00>r&|j<00>dt <00><01>}t|<01>|_ yy)Nr)
r<00>
all_modelsr r rr<00>MODELS_MODULE_NAMErrr)r<00>models_module_names r<00> import_modelszAppConfig.import_modelssQ<00><00><1B>i<EFBFBD>i<EFBFBD>*<2A>*<2A>4<EFBFBD>:<3A>:<3A>6<><04> <0B> <1F><04> <0B> <0B>-?<3F> @<40>,0<>I<EFBFBD>I<EFBFBD>7I<37>!J<> <1E>!.<2E>/A<>!B<>D<EFBFBD> <1E> Arc<00><00>y)zT
Override this method in subclasses to run code when Django starts.
N<>r%s r<00>readyzAppConfig.readys<00>rN)T)FF)r$rHrI<00>__doc__rr&rr+<00>propertyr-r<00> classmethodrUr^rgrlrornrrr r sl<00><00>H<>(<1B>TB<01><15>+<2B><15>+<2B>
<0E>U<01><0E>U<01><18>8<11>z6<><11>z6<>x<0E>"<18>*C<01> rr )r=r5<00> importlibr<00>django.core.exceptionsr<00>django.utils.functionalr<00>django.utils.module_loadingrrr<rjr rnrr<00><module>rws/<00><01><0E> <09>#<23>7<>3<>K<><19><10><1D><12>E <0C>E r