Finally, I understood the solution is
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()
Thanks,
keeran
On Friday, August 17, 2012 3:13:00 PM UTC+5:30, keeran wrote:
> On the Django development server, django app works fine. But
I did following changes now., I still see the same observation - I suspect
the img folder contents are not taken by webserver for some reason related
to template tags not properly linked. any suggestion welcome (otherwise
I think i need to go with apache + wsgi)
Am referring this link: *
Your Static Dir is not defined in the Server (Nginx) configuration. So
as Melvin said you'll need to create an alias for your static dir in
your server configuration file.
On Sat, Aug 18, 2012 at 7:40 PM, Melvyn Sopacua wrote:
> On 17-8-2012 11:43, keeran wrote:
>>
>>
>>
On 17-8-2012 11:43, keeran wrote:
>
>
> On the Django development server, django app works fine. But once I setup
> the production test run, I get only the text contents, where template views
> are not shown as intended. What am I going wrong?
>
> I have django 1.5 latest.
>
> Nginx -
Yes, looks like something went wrong due to static file access; I find
http/1.1 404 not found error under web console of firefox
Status Code:
HTTP/1.1 404 NOT FOUND
I tried option from link
https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/#static-file-development-view
still
Are you sure it's a views/templates issue? You're getting content that
looks correct in structure so I'd say the views + templates are fine.
Looks like a CSS issue to me.
If you're using firefox then install firebug and check the NET tab for
404s to your CSS files.
Paul
On Fri, 2012-08-17 at
On the Django development server, django app works fine. But once I setup
the production test run, I get only the text contents, where template views
are not shown as intended. What am I going wrong?
I have django 1.5 latest.
Nginx - 0.8.54
uWSGI - 1.2.5
Also tried FAPWS3.0 similar
7 matches
Mail list logo