Friday, September 27, 2013

Basic query regarding admin CSS

Hi,
I'm new to development and have just gone from some python and django tuts, on my way to developing my first app.
I've created a model and can view it under the /admin page, however the page does not use any of the pretty CSS you see in the tutorials because it can't find the files:

INFO:root:"GET /admin/ HTTP/1.1" 200 -
INFO:root:"GET /admin/admin/css/base.css HTTP/1.1" 404 -
INFO:root:"GET /admin/admin/css/dashboard.css HTTP/1.1" 404 -

I've got the css, img and js folders for the admin site in the following places:
[myproject]/admin/admin
[myproject]/templates/admin/admin

I tried to view one of the CSS files directly via the browser for more information and it displays the urls it searches.
I'd appreciate if someone could tell me what i'm missing.

Page not found (404)

Request Method:GET
Request URL:http://192.168.20.204:8080/admin/admin/css/dashboard.css

Using the URLconf defined in urls, Django tried these URL patterns, in this order:

  1. ^_ah/warmup$
  2. ^media/(?P<path>.*)$
  3. ^admin/ ^$ [name='index']
  4. ^admin/ ^logout/$ [name='logout']
  5. ^admin/ ^password_change/$ [name='password_change']
  6. ^admin/ ^password_change/done/$ [name='password_change_done']
  7. ^admin/ ^jsi18n/$ [name='jsi18n']
  8. ^admin/ ^r/(?P<content_type_id>\d+)/(?P<object_id>.+)/$
  9. ^admin/ ^(?P<app_label>\w+)/$ [name='app_list']
  10. ^admin/ ^blogtut/post/
  11. ^admin/ ^blogtut/comment/
  12. ^admin/ ^auth/user/
  13. ^admin/ ^blogtut/measurementtype/
  14. ^admin/ ^blogtut/measurementunits/
  15. ^$
  16. ^login/$
  17. ^logout/$
  18. ^posts/new/$
  19. ^posts/$
  20. ^$ [name='home']
  21. ^post/(?P<slug>[a-zA-Z0-9-]+)/$ [name='post']

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment