Either you have a wrong directory pointed to, in your settings.py file for
static media; or you haven't configured django to serve them.

You need to define MEDIA_ROOT and MEDIA_URL in the settings.py
appropriately. Once you have done that, you can setup django to serve those
during development, by using the following pattern in the urls.py.

    urlpatterns += patterns('django.views.static',
        (r'^app/(?P<path>.*)$', 'serve', { 'document_root':
settings.DIRNAME,
                                        'show_indexes': True }),
    )


On Tue, Jul 14, 2009 at 11:22 AM, djangonoob <ye.eug...@gmail.com> wrote:

>
> Hi, I have developed a simple application on my desktop computer
> successfully using django 1.02, Ubuntu 9.04, python version 2.6.2
>
> I copied my files over to my laptop computer and did the following:
> 1) ran the django-admin.py startproject projectName
> 2) cd to projectName folder, and ran the python manage.py startapp
> appName.
>
> After which i copied my application folder over to appName with the
> same name.
>
> Than i ran python manage.py runserver on my laptop
>
> My application works, but than the css style sheet is not working; my
> application has no style.
>
> But upon inspecting the source code of the generated page, the <link
> rel="stylesheet" href="/media_user/css/style.css" type="text/css" />
> url and others are correct.
>
> But the style simply does not show.
>
> Anyone faced this problem before and solve it?
>
> best Regards.
>
> >
>


-- 
Regards,
Lakshman
http://uswaretech.com/

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