Hi,

I would like to compress my DJANGO project into one zip file (all
*.pyo files) and then do basic testing and deploy. Now I found PROJ/
manage.py in zip file can not be invoked.

It seems it is caused by imp.find_module() failed to find the
'settings' module. The code looks like this,

>>> import sys
>>> sys.path.insert(0, 'bin/proj.zip')
>>> import imp
>>> imp.find_module('proj.settings')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named proj.settings
>>> imp.find_module('settings')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named settings

By comment out the lines about sanity checking on 'settings' file,
everything works fine. I can invoke 'runserver', 'shell' parameters
after adding proj.zip to sys.path.


Thanks,
Robert

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to