https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib/python2.7/site-packages/south/management/commands/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python2.7/site-packages/south/management/commands/convert_to_south.pyc
�
(��Pc@s�dZddlmZddlmZddlZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZdd
lmZddlmZddlmZdd
lmZdefd��YZdS(s"
Quick conversion command module.
i����(tprint_function(tmake_optionN(tBaseCommand(tno_style(tsettings(tmodels(t
management(tImproperlyConfigured(t
Migrations(thacks(tNoMigrationstCommandcBs�eZejZdgejD]Zej�^qkrzeedddddddddd	d
ddgdd
�f7Zneeddddddedd�eddddddedd�f7ZdZdd�Z
RS(s--verbositytactiontstoretdestt	verbositytdefaultt1ttypetchoicetchoicest0t2thelps@Verbosity level; 0=minimal output, 1=normal output, 2=all outputs--delete-ghost-migrationst
store_truet
delete_ghostssTTells South to delete any 'ghost' migrations (ones in the database but not on disk).s--ignore-ghost-migrationst
ignore_ghostssyTells South to ignore any 'ghost' migrations (ones in the database but not on disk) and continue to apply new migrations.sTQuickly converts the named application to use South if it is currently using syncdb.cOs�|std�dS|jd�d}ytj|�}Wn tk
r\td|�dSXtj|�}|s�td�td|�dSyt|�Wntk
r�nXtd�dSt|j	dd	��}t
jd
|dtd|�t
j�t
j�tj�t
jd|d
dtd|d|j	dt�d|j	dt��t�td|�td|�td�dS(Ns!Please specify an app to convert.t.i����s.There is no enabled application matching '%s'.scThis application has no models; this command is for applications that already have models syncdb'd.sPMake some models, and then use ./manage.py schemamigration %s --initial instead.s-This application is already managed by South.Ritschemamigrationtinitialtmigratet0001tfakeRRsYApp '%s' converted. Note that South assumed the application's models matched the databasesa(i.e. you haven't changed it since last syncdb); if you have, you should delete the %s/migrationssFdirectory, revert models.py so it matches the database, and try again.(tprinttsplitRtget_appRt
get_modelsRR
tinttgetRtcall_commandtTrueR	tclear_app_cachetrepopulate_app_cachet_clear_cachetFalse(tselftapptargstoptionst
app_modulet
model_listR((sN/usr/lib/python2.7/site-packages/south/management/commands/convert_to_south.pythandle'sJ







N(t__name__t
__module__Rtoption_listtopttget_opt_stringRR,RtNoneR3(((sN/usr/lib/python2.7/site-packages/south/management/commands/convert_to_south.pyRs	(
(t__doc__t
__future__RtoptparseRtsystdjango.core.management.baseRtdjango.core.management.colorRtdjango.confRt	django.dbRtdjango.coreRtdjango.core.exceptionsRtsouth.migrationRtsouth.hacksR	tsouth.exceptionsR
R(((sN/usr/lib/python2.7/site-packages/south/management/commands/convert_to_south.pyt<module>s

https://t.me/AnonymousX5 - 2025