I might be missing something here but I thought that the manage.py
commands were looked for in the "management/commands" subdirectories of
INSTALLED_APPS.

According to your email, the loaddata command lives in maintenance/commands.

Is your set up accounting for this non-default behavior?

Take care.

On 1/19/10 10:38 AM, MauroCam wrote:
> Hi,
> 
> Please forgive the possibly daft question, but as an Ubuntu newbie I
> am going crazy with the following problem.
> 
> I am seeing unexpected behaviour on our live production server,
> running Ubuntu, when I execute manage.py
> 
> The site hosts two sites, the LIVE site and a mirror TEST site that we
> use for final testing. The structure of the two sites is as follows
> 
> \home\project\src\projectfiles
> 
> \home\test-project\src\projectfiles
> 
> The \projectfiles directory contains settings.py
> 
> In both sites there is also a subdirectory
> 
>  \projectfiles\maintenance\commands\loaddata.py
> 
> which contains a python file we use to load test data into the
> database. This file used to execute by calling
> 
> ...\projectfiles\python manage.py loaddata
> 
> and worked for both LIVE and TEST.
> 
> Recently I had to upload significant changes to the LIVE so, I copied
> the src folder, deleted the original and created a brand new src from
> SVN. The structure is now
> 
> \home\project\src\projectfiles
> \home\project\src\src_old\projectfiles
> 
> \home\test-project\src\projectfiles
> 
> When I now run
> 
> \home\project\src\projectfiles\python manage.py loaddata,
> 
> the file which actually executes the loaddata.py is the one in TEST
> 
> I have confirmed this by deleting
> 
> \test-project\maintenance\commands\loaddata.py.
> 
> and then re-executing the loaddata for the LIVE server. But this gave
> an "Unknow command: loaddata" error.
> 
> Any advice on how to resolve this would be greatly appreciated.
> 
> P.S. I run through a test of the above on my PC running XP, and all
> continues to work fine. So it looks like some Ubuntu/Linux issue.....
> 
> Thanks
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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