My django version is 1.7, with Python 2.7. I'm new in this interesting world of Django. Thanks for your help, and time.
Regards, Juan
Serdar Dalgic
unread,
Oct 22, 2014, 7:53:06 AM10/22/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hi Juan,
I believe you might have a problem while importing "example". Can you
check the line you're importing example and where did you put this
"exsite.example" module?
So that you can import exsite.example in your another_module.py like:
from exsite.example import AnyClassYouWantToImport
I hope this helps.
p.s. mind the "__init__.py"s on the modules you want to import. There
must be one in your "exsite" dir.
p.s.2. Instead of an example.py file under exsite dir, you may have
written it under __init__.py file as
mysite/
...
mysite/
__init__.py
...
in this __init__.py, you may have
class Example(object):
...
...