Re: Wrapping dbshell and invoking procedures and such

2021-10-22 Thread Dan Davis
Never mind - os.pipe, os.fork, and os.dup2 work quite well. The only thing I needed was to open the output as a Python IO object, and to be careful about semicolons. And I didn't want to go back to perl... See the code at https://gist.github.com/danizen/de40b4e6bfa713fc76d6fe2cfaa236cc This

Wrapping dbshell and invoking procedures and such

2021-10-22 Thread Dan Davis
I've succeeded over the last few years in creating a Django app that everyone likes that uses a "tip of the iceberg" out of a 20 year old database. Now I've inherited the SQL development as well, and I want to cleanup and move towards more Django. There are lots of small, non-DRY scripts run

Re: The Django app does not recognize a file that is in the folder for me

2021-10-22 Thread ตี๋ ยกซด
จัดการมันทันทีเลย ในวันที่ ศ. 22 ต.ค. 2021 20:32 น. Steven Mapes เขียนว่า: > It'll most likely be because you are executing a file with a relative path > and the Django is probably running in another folder so your best bet is to > import BASE_DIR from settings.py then append the path to the

Re: The Django app does not recognize a file that is in the folder for me

2021-10-22 Thread Steven Mapes
It'll most likely be because you are executing a file with a relative path and the Django is probably running in another folder so your best bet is to import BASE_DIR from settings.py then append the path to the app from your project root so /app.py On Thursday, 21 October 2021 at 17:26:36

Re: django.db.utils.OperationalError: no such table abc

2021-10-22 Thread Lakshyaraj Dash X-D 25
Bro, you will need the initial migration in order to make another migration. On Fri, Oct 22, 2021, 18:37 MR INDIA wrote: > > After deleting the migration to make it again just Try Running the > makemigrations command. > On Friday, 22 October 2021 at 06:58:12 UTC+5:30 dashlaksh...@gmail.com >

Re: django.db.utils.OperationalError: no such table abc

2021-10-22 Thread MR INDIA
After deleting the migration to make it again just Try Running the makemigrations command. On Friday, 22 October 2021 at 06:58:12 UTC+5:30 dashlaksh...@gmail.com wrote: > Just search for it in the recycle bin , if you have not permanently > deleted the migration, else give me the code in my