Ok - I think you need first of all to decide if you want to use the models
module or a models.py file. You are now using both - which won't work. The
import that you have written in the __init__.py file shouldn't work either
because you are using a relative import to get an absolute file.

First try to delete the models module and start without that.
Also looking at your layout of your code - the project seems a bit strange
(the amount of subdirectories in the api project). This is a rather "ok"
way to do it:
https://www.revsys.com/tidbits/recommended-django-project-layout/

And then add the models module if required.

Regards,

Andréas


Den fre 7 sep. 2018 kl 16:55 skrev Benjamin SOULAS <
benjamin.soula...@gmail.com>:

> I agree it should, but it doesn't, better, it does not find my model:
>
> [image: project_structure.png]
>
>
> [image: issue__init__.png]
>
>
>
>
>
> --
> 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/869963f4-81c9-42aa-9fbf-618291e3b2f2%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/869963f4-81c9-42aa-9fbf-618291e3b2f2%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/CAK4qSCfABxjpjQAQeFhig-2z%2B08ioA8A_oDMKu__M1aKMmiryg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to