Hi Peter,

On 08/11/2011 06:40 AM, Peter Kovgan wrote:
> Why , for example, collectstatic copied not static content?
> 
> 
> example, /home/peter/work/django/projects/src/mysite/polls/ - it's all
> new project file, there were no statics yet
> 
> 
> See there:
> 
> 
> Copying
> '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/img/gis/move_vertex_off.png'
> Copying
> '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/img/gis/move_vertex_on.png'
n/media/js/prepopulate.min.js'
> Copying '/home/peter/work/django/projects/src/mysite/urls.py.bak'
> Copying '/home/peter/work/django/projects/src/mysite/settings.py'
> Copying '/home/peter/work/django/projects/src/mysite/urls.py'
> Copying '/home/peter/work/django/projects/src/mysite/__init__.pyc'
> Copying '/home/peter/work/django/projects/src/mysite/settings.py.bak'


I agree the files from /home/peter/work/django/projects/src/mysite
should not be copied.(except if you specifically added this directory to
STATICFILES_DIRS)

This looks like a config issue or your django install is really broken.

Normally

STATICFILES_DIRS should contain for example
'/home/peter/work/django/projects/src/mysit/my_static'
(In this directory you can add static contents specific to your site)

and STATIC_ROOT should for example be set to
/home/peter/work/django/projects/src/mysit/my_collected_static

This is where collectstatic should copy all standard and your custom
files, such, that if you use django behind a web server uou can easily
configure your server to fetch any static file from this directory.
initially this directory will be empty it will only be populated by
'collectstatic' and everything in this directory might be deleted.


Perhaps you could post once more your config file?
I never had issues between django on windows and djongo on linux
In my case both behave perfectly well and identically.

-- 
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