Yes but it is completely OK to have a directory called models to store your models in. That's the way we do it for our project. However you can't have both a directory AND a models.py file.
If you choose to go with the models module (a directory called models), you need to have the __init__.py file and separate files for each model, which you then import in the __init__.py file - like I said earlier. Hope everything works for you now! Regards, Andréas Den fre 7 sep. 2018 kl 17:10 skrev Benjamin SOULAS < benjamin.soula...@gmail.com>: > Ok ... Shame ... i found, One day I created a "models" directory to store > my models ... So because of this, it didn't make any migrations ... > > Sorry for the inconvenience, but now I know I have to take care about my > folder naming convention ... > > 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 django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > 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/2833a84d-296b-4669-ac94-d1a83a293c7d%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/2833a84d-296b-4669-ac94-d1a83a293c7d%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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. 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/CAK4qSCcXgHPKeDw9exZMoDxnP7xR-5r9Jc8tJL4ML2OkdG5C4g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.