Hi, 
This is fixed, I think it was as I was missing one of the entries below:
 37 MIDDLEWARE_CLASSES = (
 38     # This loads the index definitions, so it has to come first
 39     'autoload.middleware.AutoloadMiddleware',
 40
 41     'django.middleware.common.CommonMiddleware',
 42     'django.contrib.sessions.middleware.SessionMiddleware',
 43     'django.contrib.messages.middleware.MessageMiddleware',
 44     'django.contrib.auth.middleware.AuthenticationMiddleware',
 45 )
 46
 47 TEMPLATE_CONTEXT_PROCESSORS = (
 48     'django.contrib.auth.context_processors.auth',
 49     'django.core.context_processors.request',
 50     'django.core.context_processors.media',
 51     'django.core.context_processors.static'
 52 )

On Friday, 27 September 2013 19:54:21 UTC-10, Jason S wrote:
>
> 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.
>
> http://192.168.20.204:8080/admin/admin/css/dashboard.css
> Page not found (404)Request Method:GETRequest 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to