dull look after install on ubuntu

2011-08-09 Thread Peter Kovgan
django 1.3
on python 2.7.1
ubuntu 11.04
looking through firefox 4

Dull look, like all javascript has been removed
On windows looks nice, but here all works, but no colors, no styles,
nothing...

What could it be?

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



Re: dull look after install on ubuntu

2011-08-09 Thread Peter Kovgan
Thank you guys.

I use development server of django(manage.py runserver).

I created an app. from the official site of the django, this one of the
first tutorial.

I did it on windows installation.

Then I came home, installed the same app on ubuntu.

Now my conf is:
> django 1.3
> on python 2.7.1
> ubuntu 11.04
> looking through firefox 4

and it stopped show "stattic content"

HERE IS COLLECTSTATIC::

peter@peter-big:~/work/django/projects/src/mysite$ python manage.py
collectstatic
Traceback (most recent call last):
  File "manage.py", line 14, in 
execute_manager(settings)
  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 438, in execute_manager
utility.execute()
  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 68, in load_command_class
return module.Command()
  File
"/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
line 41, in __init__
self.storage = get_storage_class(settings.STATICFILES_STORAGE)()
  File
"/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/storage.py",
line 23, in __init__
raise ImproperlyConfigured("You're using the staticfiles app "
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles
app without having set the STATIC_ROOT setting.

I tried to resolve it myself, but nothing has worked.

I used answers to another threads, but probably my installation is somehow
different.

What exactly I specify in MEDIA_ROOT = ''" ?

Thank you.







On 10 August 2011 00:29, Gelonida N  wrote:

> On 08/09/2011 09:58 PM, Peter Kovgan wrote:
> > django 1.3
> > on python 2.7.1
> > ubuntu 11.04
> > looking through firefox 4
> >
> > Dull look, like all javascript has been removed
> > On windows looks nice, but here all works, but no colors, no styles,
> > nothing...
> >
> > What could it be?
>
>
> Well you don't really give a lot of info, so my guess might be
> completely wrong.
>
>
> Do you use the django development server (  manage.py runserver) or do
> you run with apache / some existing server?
>
> Did you run the command "manage.py collectstatic"?
>
>
>
> --
> 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.
>
>

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



Re: dull look after install on ubuntu

2011-08-10 Thread Peter Kovgan
o enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)

# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error.
# See http://docs.djangoproject.com/en/dev/topics/logging for
# more details on how to customize your logging configuration.
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}


On 10 August 2011 09:41, Praveen Krishna R wrote:

> *please dump your *settings.py ?!
>
>  On Wed, Aug 10, 2011 at 5:53 AM, Peter Kovgan wrote:
>
>>  Thank you guys.
>>
>> I use development server of django(manage.py runserver).
>>
>> I created an app. from the official site of the django, this one of the
>> first tutorial.
>>
>> I did it on windows installation.
>>
>> Then I came home, installed the same app on ubuntu.
>>
>> Now my conf is:
>>
>> > django 1.3
>> > on python 2.7.1
>> > ubuntu 11.04
>> > looking through firefox 4
>>
>> and it stopped show "stattic content"
>>
>> HERE IS COLLECTSTATIC::
>>
>> peter@peter-big:~/work/django/projects/src/mysite$ python manage.py
>> collectstatic
>> Traceback (most recent call last):
>>   File "manage.py", line 14, in 
>> execute_manager(settings)
>>   File
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
>> line 438, in execute_manager
>> utility.execute()
>>   File
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
>> line 379, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
>> line 261, in fetch_command
>> klass = load_command_class(app_name, subcommand)
>>   File
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
>> line 68, in load_command_class
>> return module.Command()
>>   File
>> "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
>> line 41, in __init__
>> self.storage = get_storage_class(settings.STATICFILES_STORAGE)()
>>   File
>> "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/storage.py",
>> line 23, in __init__
>> raise ImproperlyConfigured("You're using the staticfiles app "
>> django.core.exceptions.ImproperlyConfigured: You're using the staticfiles
>> app without having set the STATIC_ROOT setting.
>>
>> I tried to resolve it myself, but nothing has worked.
>>
>> I used answers to another threads, but probably my installation is somehow
>> different.
>>
>> What exactly I specify in MEDIA_ROOT = ''" ?
>>
>> Thank you.
>>
>>
>>
>>
>>
>>
>>
>>
>> On 10 August 2011 00:29, Gelonida N  wrote:
>>
>>> On 08/09/2011 09:58 PM, Peter Kovgan wrote:
>>> > django 1.3
>>> > on python 2.7.1
>>> > ubuntu 11.04
>>> > looking through firefox 4
>>> >
>>> > Dull look, like all javascript has been removed
>>> > On windows looks nice, but here all works, but no colors, no styles,
>>> > nothing...
>>> >
>>> > What could it be?
>>>
>>>
>>> Well you don't really give a lot of info, so my guess might be
>>> completely wrong.
>>>
>>>
>>> Do you use the django development server (  manage.py runserver) or do
>>> you run with apache / some existing server?
>>>
>>> Did you run the command "manage.py collectstatic"?
>>>
>>>
>>>
>>> --
>>> 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.
>>>
>>>
>>  --
>> 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.
>>
>
>
>
> --
> Thanks and Regards,
> *Praveen Krishna R*
>
>  --
> 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.
>

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



Re: dull look after install on ubuntu

2011-08-10 Thread Peter Kovgan
Gelonida N:

"Very probably an error in settings.py"

ok..

"
STATIC_ROOT has to be an absolut path name using '/' and not '\'
characters pointing to a directory, that is empty (collectstatic will
store files there)
"

ok...


"STATICFILES_DIRS should point to the directory, where you put your
static files."

My static files?

I had no static files.

It's django admin stuff Where they keep their default static files?

What exactly I write here? STATICFILES_DIRS

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



Re: dull look after install on ubuntu

2011-08-10 Thread Peter Kovgan
I seriously tried.
you did not get, that I do not see statics of the ADMIN directory,
not of my own creations.
EVEN ADMIN does not work.
So basically, python does not see admin's preinstalled static files.
To be sure: I'm a beginner, I go through my first tutorial.

I ran the same application on windows installation and it worked.
Now on linux it refuses to work.
crossplatform is not a hot django goal, as far as I see.
I edited path to templates - that was all difference that I've done after I
moved to linux.

I'm thinking, that may be my django installation went wrong...
Now I'm going to reinstall everything from scratch.
Thank you for help.




On 10 August 2011 16:24, Tom Evans  wrote:

> On Wed, Aug 10, 2011 at 3:53 AM, Peter Kovgan 
> wrote:
> > Thank you guys.
> >
> >
> "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/storage.py",
> > line 23, in __init__
> > raise ImproperlyConfigured("You're using the staticfiles app "
> > django.core.exceptions.ImproperlyConfigured: You're using the staticfiles
> > app without having set the STATIC_ROOT setting.
> >
> > I tried to resolve it myself, but nothing has worked.
> >
>
> Seriously? Is there something unclear about the instructions in that
> error message?
>
> Did you try setting STATIC_ROOT and reading the fine documentation
> about STATIC_ROOT?
>
> Cheers
>
> Tom
>
> --
> 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.
>
>

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



Re: dull look after install on ubuntu

2011-08-10 Thread Peter Kovgan
I resolved it, setting DEBUG = True, it was False for some reason, and it
worked so on windows.

I have some doubts, that static files should become unavailable when you set
debug=false.

What do you think?


On 10 August 2011 21:46, Peter Kovgan  wrote:

> I seriously tried.
> you did not get, that I do not see statics of the ADMIN directory,
> not of my own creations.
> EVEN ADMIN does not work.
> So basically, python does not see admin's preinstalled static files.
> To be sure: I'm a beginner, I go through my first tutorial.
>
> I ran the same application on windows installation and it worked.
> Now on linux it refuses to work.
> crossplatform is not a hot django goal, as far as I see.
> I edited path to templates - that was all difference that I've done after I
> moved to linux.
>
> I'm thinking, that may be my django installation went wrong...
> Now I'm going to reinstall everything from scratch.
> Thank you for help.
>
>
>
>
> On 10 August 2011 16:24, Tom Evans  wrote:
>
>> On Wed, Aug 10, 2011 at 3:53 AM, Peter Kovgan 
>> wrote:
>> > Thank you guys.
>> >
>> >
>> "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/storage.py",
>> > line 23, in __init__
>> > raise ImproperlyConfigured("You're using the staticfiles app "
>> > django.core.exceptions.ImproperlyConfigured: You're using the
>> staticfiles
>> > app without having set the STATIC_ROOT setting.
>> >
>> > I tried to resolve it myself, but nothing has worked.
>> >
>>
>> Seriously? Is there something unclear about the instructions in that
>> error message?
>>
>> Did you try setting STATIC_ROOT and reading the fine documentation
>> about STATIC_ROOT?
>>
>> Cheers
>>
>> Tom
>>
>> --
>> 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.
>>
>>
>

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



Re: dull look after install on ubuntu

2011-08-10 Thread Peter Kovgan
Ok, Ok, I've got it, read docs.

"
The static files tools are mostly designed to help with getting static files
successfully deployed into production. This usually means a separate,
dedicated static file server, which is a lot of overhead to mess with when
developing locally. Thus, the staticfiles app ships with a *quick and dirty
helper view* that you can use to serve files locally in development.

"

But why It must be so complex?
Why default admin statics become unavailable, if you use another server and
not that of development: "runner"?

Should it mean, that I must find elsewhere my admin statics, copy-paste them
to some place and poin to this place from settings.py?

OK
I do not like this burden.






On 10 August 2011 21:52, Peter Kovgan  wrote:

> I resolved it, setting DEBUG = True, it was False for some reason, and it
> worked so on windows.
>
> I have some doubts, that static files should become unavailable when you
> set debug=false.
>
> What do you think?
>
>
>
> On 10 August 2011 21:46, Peter Kovgan  wrote:
>
>> I seriously tried.
>> you did not get, that I do not see statics of the ADMIN directory,
>> not of my own creations.
>> EVEN ADMIN does not work.
>> So basically, python does not see admin's preinstalled static files.
>> To be sure: I'm a beginner, I go through my first tutorial.
>>
>> I ran the same application on windows installation and it worked.
>> Now on linux it refuses to work.
>> crossplatform is not a hot django goal, as far as I see.
>> I edited path to templates - that was all difference that I've done after
>> I moved to linux.
>>
>> I'm thinking, that may be my django installation went wrong...
>> Now I'm going to reinstall everything from scratch.
>> Thank you for help.
>>
>>
>>
>>
>> On 10 August 2011 16:24, Tom Evans  wrote:
>>
>>> On Wed, Aug 10, 2011 at 3:53 AM, Peter Kovgan 
>>> wrote:
>>> > Thank you guys.
>>> >
>>> >
>>> "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/storage.py",
>>> > line 23, in __init__
>>> > raise ImproperlyConfigured("You're using the staticfiles app "
>>> > django.core.exceptions.ImproperlyConfigured: You're using the
>>> staticfiles
>>> > app without having set the STATIC_ROOT setting.
>>> >
>>> > I tried to resolve it myself, but nothing has worked.
>>> >
>>>
>>> Seriously? Is there something unclear about the instructions in that
>>> error message?
>>>
>>> Did you try setting STATIC_ROOT and reading the fine documentation
>>> about STATIC_ROOT?
>>>
>>> Cheers
>>>
>>> Tom
>>>
>>> --
>>> 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.
>>>
>>>
>>
>

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



Re: dull look after install on ubuntu

2011-08-10 Thread Peter Kovgan
on windows it also was 1.3

I collected statics as you said, but it brought also many not static files
Actually all my sources went there.




On 10 August 2011 22:49, Gelonida N  wrote:

> On 08/10/2011 09:01 PM, Peter Kovgan wrote:
> > Ok, Ok, I've got it, read docs.
> >
> > But why It must be so complex?
> > Why default admin statics become unavailable, if you use another server
> > and not that of development: "runner"?
> >
> > Should it mean, that I must find elsewhere my admin statics, copy-paste
> > them to some place and poin to this place from settings.py?
> >
> > OK
> > I do not like this burden.
> >
> The burden is not really a big burden.
>
> Set STATIC_ROOT in config.py  to a directory, which is empty and where
> you have write permissions to.
>
>
> run afterwards ./manage.py  collectstatic
>
>
> This should collect all static files (also the ones from standard django
> modules) into the STATIC_ROOT directory.
>
> If your STATIC_ROOT directory does NOT contain the files that aren't
> served, then this is strange.
>
>
>
> Just one more question:
>
> Did you also use Django 1.3 on your windows host or was it a different
> version???
>
>
>
> --
> 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.
>
>

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



Re: dull look after install on ubuntu

2011-08-10 Thread Peter Kovgan
on_changelink.gif'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/img/admin/tool-left.gif'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/img/admin/tooltag-add_over.gif'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/img/admin/chooser-bg.gif'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/img/admin/selector-addall.gif'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/css/base.css'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/css/login.css'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/css/widgets.css'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/css/changelists.css'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/css/forms.css'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/css/dashboard.css'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/css/ie.css'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/css/rtl.css'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/jquery.init.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/inlines.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/urlify.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/calendar.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/SelectBox.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/inlines.min.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/actions.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/SelectFilter2.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/actions.min.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/timeparse.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/collapse.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/compress.py'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/jquery.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/prepopulate.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/dateparse.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/prepopulate.min.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/collapse.min.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/jquery.min.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/LICENSE-JQUERY.txt'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/getElementsBySelector.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/core.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/admin/DateTimeShortcuts.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/admin/RelatedObjectLookups.js'
Copying
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/js/admin/ordering.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'
Copying '/home/peter/work/django/projects/src/mysite/manage.py'
Copying '/home/peter/work/django/projects/src/mysite/urls.pyc'
Copying '/home/peter/work/django/projects/src/mysite/__init__.py'
Copying '/home/peter/work/django/projects/src/mysite/settings.pyc'
Copying '/home/peter/work/django/projects/src/mysite/polls/admin.pyc'
Copying '/home/peter/work/django/projects/src/mysite/polls/urls.py.bak'
Copying '/home/peter/work/django/projects/src/mysite/polls/views.py.bak'
Copying '/home/peter/work/django/projects/src/mysite/polls/views.py'
Copying '/home/peter/work/django/projects/src/mysite/polls/urls.py'
Copying '/home/peter/work/django/projects/src/mysite/polls/__init__.pyc'
Copying '/home/peter/work/django/proj

Re: dull look after install on ubuntu

2011-08-11 Thread Peter Kovgan
Gelonida N, thanks.

I believe you , I'm just unlucky programmer :)

I should reinstall my linux django from scratch.

Thank you for the explanation! It was very helpful.

Peter.






On 11 August 2011 12:21, Gelonida N  wrote:

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

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