Thursday, October 23, 2014

Re: no module in error log django-1.3.7

Hello,

I think you have 3 options:
1. Migrate to the new (django 1.5+) project layout like this:
projectname
------manage.py
------projectname
----------__init__.py
----------settings.py
----------urls.py
------appname
----------__init__.py
----------admin.py
----------forms.py
----------models.py
----------views.py
----------tests.py

2. Configure your python path to include both projectname directory, and the directory containing projectname
https://www.pythonanywhere.com/wiki/DjangoTutorial#Existing_apps_.2F_manual_config

3. Reference everything using the projectname prefix:
'projectname.appname'  # INSTALLED_APPS
from projectname.appname.models import MyModel

Collin

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/315aa60a-0946-44b5-8a22-f30518e33947%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment