Re: run terminal code inside project

2020-11-05 Thread David Nugent
Hint: as Andréas implied, it is always a good idea to state the problem you're trying to solve instead of posing a question about what you think the solution is. :-) Ends up saving a bunch of time. Short answer for your solution: manage.py can be run as a subprocess

Re: run terminal code inside project

2020-11-05 Thread Andréas Kühne
I would say that that's even worse? Django doesn't like changing the database when you are running. I think you need to rethink how you want to use django - because this isn't a usecase I think is even possible. What you would need to do is first create the models.py file, update the database and

Re: run terminal code inside project

2020-11-05 Thread Mory Sam
hi Andréas I want to save the models generated by the ogrinspect command in a new file and be able to automatically create a table in the database using this saved model and then import my vector data automatically into the created table To. ؟Now my problem is how can I introduce the newly cr

Re: run terminal code inside project

2020-11-05 Thread Andréas Kühne
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 o

Re: run terminal code inside project

2020-11-04 Thread Abdul Madebari
Python manage.py shell On Wed, 4 Nov 2020, 17:55 Mory Sam, wrote: > 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

run terminal code inside project

2020-11-04 Thread Mory Sam
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

run terminal code inside project

2020-11-04 Thread Mory Sam
hi all How to use Digingo 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 rece