Gerard Petersen wrote:
> Hi all,
> 
> This might be somewhat off topic, but I'm moving my django project into 
> another directory (svn branch).
> 
> It was here: /home/gerard/files/python/djapp/(myapp)
> 
> I want it here: /home/gerard/files/python/djapp/branches/0.1/(myapp)
> 
> When the project dir is named 0.1 instead of djapp I get a trace (see below) 
> that it has no module 0.1. Where and why does django look at the name of the 
> parent (project) dir?
> 
> Thanx a lot!
> 
> Regards,
> 
> Gerard.
> 
> Traceback (most recent call last):
>   File "manage.py", line 11, in <module>
>     execute_manager(settings)
>   File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", 
> line 338, in execute_manager
>     setup_environ(settings_mod)
>   File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", 
> line 316, in setup_environ
>     project_module = __import__(project_name, {}, {}, [''])
> ImportError: No module named 0.1
> 
Well, firstly 0.1 isn't technically a valid Python name, though it's
possible that Django's specific import methods will be able to cope with
things that would be syntactically illegal in the import statement.

I suspect the real problem is the dot in the name: Django will be
looking fpr a package, 0, with a submodule called 1.

regards
 Steve

-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/
[p

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to