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 <amorza0...@gmail.com> schrieb am Fr., 24. Dez. 2021, 14:34:

> 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 (<
> sebastian.ju...@gmail.com>) escribió:
>
>> 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 <amorza0...@gmail.com> schrieb am Fr., 24. Dez. 2021, 13:11:
>>
>>> 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 field of the new table is
>>> not an integer and if it is, I put it as an integer and primary key and so
>>> on itself is reflected in the database.
>>> # Unable to inspect table 'tracking_visit'
>>> # The error was: sequence index must be integer, not 'slice'
>>>
>>> 1. My question is if you know any other method or application that
>>> allows me to generate the model from the database.
>>> 2. Is there any other way to include changes made from the database into
>>> the django model?
>>>
>>> Best regards
>>>
>>> --
>>> Amor Zamora
>>> Behind the distance,
>>> your mouth and mine hide,
>>> complices of a kiss, caresses, fantasies,
>>> distance as close as the sky and the sea,
>>> my piece is in your bed, in mine, is your love.
>>> Behind the distance hide love, memories,
>>> encounters, experiences, circumstances, pain and good times,
>>> it is after her, the distant ones,
>>> that we leave feelings,
>>> but if we really miss,
>>> distance,
>>> it is only your time.
>>>
>>> --
>>> 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/CAKMTbHUWN5QaAyrgrABL5GeKouU0qf2xoxkUqpg-x4WJZmocvg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAKMTbHUWN5QaAyrgrABL5GeKouU0qf2xoxkUqpg-x4WJZmocvg%40mail.gmail.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/CAKGT9myijdck4HQXjKntFrcr-EXDA5Py-By6kJOBkQx43e59Kg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKGT9myijdck4HQXjKntFrcr-EXDA5Py-By6kJOBkQx43e59Kg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Amor Zamora
> Behind the distance,
> your mouth and mine hide,
> complices of a kiss, caresses, fantasies,
> distance as close as the sky and the sea,
> my piece is in your bed, in mine, is your love.
> Behind the distance hide love, memories,
> encounters, experiences, circumstances, pain and good times,
> it is after her, the distant ones,
> that we leave feelings,
> but if we really miss,
> distance,
> it is only your time.
>
> --
> 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/CAKMTbHUdpw9pn96Se7Ko1aJMTuxphFjfCOZwrErXeuBwsjZJVA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKMTbHUdpw9pn96Se7Ko1aJMTuxphFjfCOZwrErXeuBwsjZJVA%40mail.gmail.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/CAKGT9mw_G331LHmcYB8-gEDmad7jaAKJ_R1ez5%3DUA2mvGUWefA%40mail.gmail.com.

Reply via email to