Re: On django model.

2021-12-26 Thread Gabriel Araya Garcia
I make the changes in database table manually. The most important is the keep the amount of fields in the model and the type (varchar,integer, text, ..etc.) That is part of Django flexibility. Gabriel Araya Garcia GMI - Desarrollo de Sistemas Informáticos El vie, 24 dic 2021 a las 9:11, Amor Z

Re: On django model.

2021-12-24 Thread Bernard Mallala
Inspectdb is generating an error because your table 's schema is causing a conflict. To solve this, you will need to post the exact error here and the schema of your table here for analysis. This is a longer process for analysis in case it is not immediately obvious. My recommendation is for yo

Re: On django model.

2021-12-24 Thread Amor Zamora
I have done this but inspectdb generates an error and not the model. When I do the migration it doesn't give me an error but it doesn't create the new log in the database. El vie, 24 dic 2021 a las 14:03, Sebastian Jung () escribió: > Hello, > > Insectdb is not to generate/update database. Pleas

Re: On django model.

2021-12-24 Thread Bernard Mallala
You can achieve this in two ways: 1. python manage.py inspectdb --help Introspects the database tables in the given database and outputs a Django model module. Your id field should be a sequenced integer and primary key so must include these two lines if viewing the CREATE SQL sta

Re: On django model.

2021-12-24 Thread Rafael Matos Borges
Falar brasileiro? Em sex., 24 de dez. de 2021 10:03, Sebastian Jung escreveu: > Hello, > > Insectdb is not to generate/update database. Please make it with python > manage.py makemigrations and after that python manage.py migrate > > Please read a tutorial https://tutorial.djangogirls.org/de/ >

Re: On django model.

2021-12-24 Thread Muhammad Juwaini Abdul Rahman
Have you checked the content of that table using dbshell? I have suspicion that the ID in your table is not a mere bigint. According to your error message, it is 'slice' (I don't know what it is), so you need to investigate what kind of data stored before you can move forward from this issue. On

Re: On django model.

2021-12-24 Thread Sebastian Jung
Sorry i don't understand nothing what do you say... Please write us a example what yoz want to do. Normal case is that you define your model in model.py and after this you make makemigrations ans after that migrate... Amor Zamora schrieb am Fr., 24. Dez. 2021, 14:34: > I think he did not underst

Re: On django model.

2021-12-24 Thread Amor Zamora
I think he did not understand the situation, because with migrations I don't resolve to convert the database into the model. The process that I need is the other way around. I needs for a table created in the database to be included in the model. El vie, 24 dic 2021 a las 14:03, Sebastian Jung ()

Re: On django model.

2021-12-24 Thread Muhammad Juwaini Abdul Rahman
I think you're the one who don't fully understand Amor's email. On Fri, 24 Dec 2021 at 21:03, Sebastian Jung wrote: > Hello, > > Insectdb is not to generate/update database. Please make it with python > manage.py makemigrations and after that python manage.py migrate > > Please read a tutorial h

Re: On django model.

2021-12-24 Thread Sebastian Jung
Hello, Insectdb is not to generate/update database. Please make it with python manage.py makemigrations and after that python manage.py migrate Please read a tutorial https://tutorial.djangogirls.org/de/ Regards Amor Zamora schrieb am Fr., 24. Dez. 2021, 13:11: > Hi guys. > I have an applicat

On django model.

2021-12-24 Thread Amor Zamora
Hi guys. I have an application in Django that has a database in postgresql. But a new table was added to that database. I have tried using the inspectdb (python3 manage.py inspectdb tracking_visit) command, to add that table to the DJango model, but it gives me an exception, it tells me that the ID

How to set daily Update limit on Django model

2021-01-04 Thread Shailesh Yadav
I'm new to Django. I have created one Django App where users can update their Shift Timing(Morning/Evening/General) and based on this Shift Timing I am taking real-time data from Django Model and running Linux script which will be evaluating

Re: New Add-On: Django Model Lifecycle Hooks

2018-04-03 Thread Robert Singer
Hello, Thanks to Jani Tiainen, the library now supports Django 1.8 and up, and has more robust testing using tox. On Sunday, April 1, 2018 at 3:49:04 AM UTC-5, Jani Tiainen wrote: > > Hi, > > Quite interesting feature have to say. You should use tox to run tests > against different versions o

Re: New Add-On: Django Model Lifecycle Hooks

2018-04-01 Thread Jani Tiainen
Hi, Quite interesting feature have to say. You should use tox to run tests against different versions of Django/Python to make it easier to make it compatible easier. I would like to see compatibilities with 1.11 and 2.0 since 1.11 is LTS and 2.0 is latest supported. But it's a great start. On

Re: New Add-On: Django Model Lifecycle Hooks

2018-03-31 Thread Robert Singer
Thanks! Yup, should be compatible with Django 1.11. It is *only compatible* with Python 3.4 and up, though. There is no binding technical reason for this - it's just what my organization uses and I've been in habit of using type annotations. So if there is demand for Python 2.7 compatibility

Re: New Add-On: Django Model Lifecycle Hooks

2018-03-31 Thread acheraime
Very interesting! Good job. Is this module supported in 1.11? Sent from my iPhone > On Mar 31, 2018, at 3:18 PM, George Silva wrote: > > From Reading the readme this looks promising. > > Congrats! > > I might use this soon. > > Em sáb, 31 de mar de 2018 15:50, Robert Singer > escreveu: >

Re: New Add-On: Django Model Lifecycle Hooks

2018-03-31 Thread George Silva
>From Reading the readme this looks promising. Congrats! I might use this soon. Em sáb, 31 de mar de 2018 15:50, Robert Singer escreveu: > Hey there - > > I just wanted to let community know about a small add-on I wrote in order > to add Rails-style hooks/callbacks to Django models. > https://

New Add-On: Django Model Lifecycle Hooks

2018-03-31 Thread Robert Singer
Hey there - I just wanted to let community know about a small add-on I wrote in order to add Rails-style hooks/callbacks to Django models. https://github.com/rsinger86/django-lifecycle Feedback welcome and appreciated :) Cheers. -- You received this message because you are subscribed to th