You can't do that really.

What is it you want to accomplish?

You can call management commands from inside django - but it doesn't really
make any sense to do so. Especially the migrate command?

So what is it you want to do? Then perhaps we can help you with a solution?

Regards,

Andréas


Den ons 4 nov. 2020 kl 15:56 skrev Mory Sam <morysa...@gmail.com>:

> hi all
>
> How to use django terminal codes inside your project code
>
>
> example : " python manage.py migrate " code run inside views.py , not terminal
>
> thanks
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/08797f34-a4c5-422b-9548-9902c20d2bf3n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/08797f34-a4c5-422b-9548-9902c20d2bf3n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCdWvrMpVJyMxQ6DOVTVXt_QzAfWYK3qPdxfKUHYKAk0nA%40mail.gmail.com.

Reply via email to