Ok, but importing external scripts (but still in the project) should work?

Even adding my model code inside models.py, no migration happens.

Le vendredi 7 septembre 2018 16:18:47 UTC+2, Gerald Brown a écrit :
>
> There should be a models.py file under each of your applications.
>
> On Friday, 07 September, 2018 10:06 PM, Benjamin SOULAS wrote:
>
> Hi everyone, 
>
> Quick question I do not find the answer: does models have to located into 
> *models.py* script? It believe not, If I got a project composed of 100 
> tables, it's weird to me that all models should be located here ...
>
> I tried, in this file, to import a model located somewhere else, but when 
> i run *python manage.py makemigrations*, nothing happens, any idea?
>
> Kind regards
>
> Benjamin
> -- 
> 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 [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/a4da5a12-9c9b-42b6-b295-5492658cb046%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/a4da5a12-9c9b-42b6-b295-5492658cb046%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/60797bc7-1410-48a9-b029-133b4bd41185%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to