I'm using django 1.4, after i created the project using django-admin
, I create an app, add it to settings.py
in INSTALLED_APPS
but then when I do manage.py runserver
I get Error: no module named myapp
Does anyone know why?
Asked
Active
Viewed 608 times
0

user1548722
- 1
- 1
-
2Please update your question with your directory layout, and your `INSTALLED_APPS` setting. – Alasdair Jul 24 '12 at 13:02
-
How did you create myapp ? By using ./manage.py ? – Jonas Geiregat Jul 24 '12 at 13:13
1 Answers
0
Make sure you have two things:
- correct path. You should be able to do ./manage.py shell and then import 'myapp' if not try 'myproject.myapp'
- models.py in your app folder and
__init__.py

Jure C.
- 3,013
- 28
- 33