Re: Django 1.7: ImportError: No module named .models

2017-04-18 Thread Leonard Cohen
I WENT ALMOST CRAZY thanx a lot !!! ;) Τη Τρίτη, 12 Αυγούστου 2014 - 12:19:34 μ.μ. UTC+3, ο χρήστης ngangsia akumbo έγραψε: > > i have had this same erroe too but it happed that i include instead the > module class name in the settings.py file > > make sure u are having the name of the app in th

Re: Django 1.7: ImportError: No module named .models

2014-08-12 Thread ngangsia akumbo
i have had this same erroe too but it happed that i include instead the module class name in the settings.py file make sure u are having the name of the app in the settings.py file -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Django 1.7: ImportError: No module named .models

2014-08-11 Thread Malik Rumi
Ok, changing to .models seems to have fixed that error. On to the rest Thx! On Monday, August 11, 2014 12:40:48 PM UTC-5, Tyrel Souza wrote: > > .models is from PEP 328 http://legacy.python.org/dev/peps/pep-0328/ > It's checking for models.py in the current module and it's knowns as a > "rel

Re: Django 1.7: ImportError: No module named .models

2014-08-11 Thread Tyrel Souza
.models is from PEP 328 http://legacy.python.org/dev/peps/pep-0328/ It's checking for models.py in the current module and it's knowns as a "relative import" On Monday, August 11, 2014 1:35:50 PM UTC-4, Malik Rumi wrote: > > UPDATE > > What is “.models”, why and when do we import from it, and how

Re: Django 1.7: ImportError: No module named .models

2014-08-11 Thread Malik Rumi
UPDATE What is “.models”, why and when do we import from it, and how is it different from importing from “models”? I’ve never seen this .models before. I saw it the first time this morning in the documentation https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#django.contrib.admin.regist

Django 1.7: ImportError: No module named .models

2014-08-11 Thread Malik Rumi
#admin.py: from apps..models import Articles, Sections ImportError: No module named .models I have seen this error before, and it went away when I changed INSTALLED APPS from to apps. because I have all my apps in a folder called apps. Now I have changed even that to Config because