Hi Rishi, STATIC_ROOT, STATIC_URL, etc. are somewhat new additions to Django. I have troubles with the documentation myself because the new ones describing them are in English :). But I think everything that they considered static - javascript, css, img, and other media were to be inside a directory tree defined by the MEDIA* variable.
Recently, they separated that into both MEDIA and STATIC variables. I may be wrong, but I think now they encourage MEDIA to be things like user-uploaded files, such as music, video, etc. files, and STATIC now should point to js, css, and img. I have seen documentations referring to usage of STATIC variables, but I read two paragraphs and fall asleep :) As for the alias directive not working. Can you try issuing: http://mysite.com/static/admin/js/base.css You should see a css file on your browser. If you get an error, it means that the web server is not able to find the file, which is required to render the admin pages correctly (along with the required js, and img directories as well). Even though you type: http://mysite.com/admin/ to get to your admin panel. The subsequent pages will (through the definitions I suggested above in the settings file) try to locate the necessary js,css,img files using the '/static/admin/' prefix. Good luck! Eiji On Fri, Jun 24, 2011 at 7:11 AM, Rishi <[email protected]> wrote: > Thanks for trying to help me out, Eiji. > I tried adding the Alias in the apache configuration file and changing > settings.py, but to no avail. I still get the same error. What happens, > specifically, is that when I go to the django project page, everything seems > to work, I get the same light blue launch screen that I am supposed to get. > When I go to /admin/, however, I get one of two pages. > 1. The same launch page (this is the more common result), > 2. If I am lucky, I see the admin page, but with no styles associated with > it. As soon as I refresh this page, it goes back to the same light blue > launch page. > > I'm going through the tutorial on the Django official website, but I don't > see any instructions pertaining to STATIC_URL in settings.py. Am I perhaps > reading something wrong? > > Thanks again, > Rishi > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/2Qrt67V_5o8J. > > 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.

