Don't you sometimes have housekeeping chores that are done by scripts?
Often those scripts want to access the ORM such as to update something
in the database.

I'm aware of notion of creating custom ./manage.py commands but
a standalone scripts seems easier no?

cs


On Monday, June 6, 2022 at 3:17:29 PM UTC-5 Jason wrote:

> Why?  what's the purpose behind this?
>
> On Monday, June 6, 2022 at 12:27:58 PM UTC-4 [email protected] wrote:
>
>> How replace "./manage.py < some_code.py" with "./some_code.py" for 
>> website scripts?
>>
>> There seem to be a number of imports needed to make the 2nd version work.
>>
>> cs
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8051edeb-698e-44d4-9ff8-ddd9a6472bf7n%40googlegroups.com.

Reply via email to