In Django 1.3:

STATIC_ROOT = os.path.join(os.path.dirname(__file__),
'static').replace('\\','/')

where the folder "static" is in the root of your project folder.


On Sun, Nov 27, 2011 at 2:23 PM, TANYA <[email protected]> wrote:

> I read it but after following all steps in it the error still remains.
>
>  '/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg',
>  '/usr/lib/python2.6',
>  '/usr/lib/python2.6/plat-linux2',
>
>  '/usr/lib/python2.6/lib-tk',
>  '/usr/lib/python2.6/lib-old',
>  '/usr/lib/python2.6/lib-dynload',
>  '/usr/local/lib/python2.6/dist-packages',
>  '/usr/lib/python2.6/dist-packages',
>
>  '/usr/lib/python2.6/dist-packages/PIL',
>  '/usr/lib/pymodules/python2.6',
>  '/usr/lib/pymodules/python2.6/gtk-2.0',
>  '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode'
>
> I did symlink to /usr/bin/local but still get path error. Please help.
>
>
>
> On Fri, Nov 25, 2011 at 4:44 AM, Timothy Makobu <
> [email protected]> wrote:
>
>> And this too http://www.djangobook.com/en/2.0/
>>
>>
>> On Fri, Nov 25, 2011 at 7:41 AM, Timothy Makobu <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> Please read this whole thing
>>> https://docs.djangoproject.com/en/dev/howto/static-files/
>>>
>>>
>>> On Fri, Nov 25, 2011 at 6:28 AM, TANYA <[email protected]> wrote:
>>>
>>>> # Absolute filesystem path to the directory that will hold
>>>> user-uploaded files.
>>>> # Example: "/home/media/media.lawrence.com/media/"
>>>> MEDIA_ROOT = ''
>>>>
>>>> I want to upload css files and images so must I put them in /home/media
>>>> or /home/my/media/path/ ? Should the filesystem path in settings.py be
>>>> changed or should MEDIA_ROOT be left empty?
>>>>
>>>> --
>>>> TANYA
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To post to this group, send email to [email protected].
>>>> 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.
>>>>
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to [email protected].
>> 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.
>>
>
>
>
> --
> TANYA
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> 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.
>

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