Static Files on IIS install

923 views
Skip to first unread message

Mark Lybrand

unread,
Apr 11, 2013, 10:56:23 PM4/11/13
to django...@googlegroups.com
I have managed to get a Django app installed on IIS7.  It is not finding the static files for the admin section.  Can someone give me some pointers on the steps I need to take to get static files to work in general, as well as specifically how to make my Django app pull the appropriate static files from the core django package? What information do you need from me to be able to answer this question?

Thanks in advance.

--
Mark :)

Mike Dewhirst

unread,
Apr 12, 2013, 1:21:06 AM4/12/13
to django...@googlegroups.com
On 12/04/2013 12:56pm, Mark Lybrand wrote:
> I have managed to get a Django app installed on IIS7. It is not finding
> the static files for the admin section. Can someone give me some
> pointers on the steps I need to take to get static files to work in
> general,

https://docs.djangoproject.com/en/1.4/howto/static-files/

This assumes you are using Django 1.4

as well as specifically how to make my Django app pull the
> appropriate static files from the core django package?

https://docs.djangoproject.com/en/1.4/howto/static-files/#deploying-static-files-in-a-nutshell

What information
> do you need from me to be able to answer this question?

Specific error messages if something fails. Django version. Python version.

If it isn't finding static files there won't necessarily be error
messages - you will probably just see raw html. View page source to
discover where it is looking for static files and compare what you see
with STATIC_URL. IIS has to look in STATIC_ROOT for those.

hth

Mike

>
> Thanks in advance.
>
> --
> Mark :)
>
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Mark Lybrand

unread,
Apr 12, 2013, 1:36:33 AM4/12/13
to django...@googlegroups.com


On Thu, Apr 11, 2013 at 10:21 PM, Mike Dewhirst <mi...@dewhirst.com.au> wrote:
On 12/04/2013 12:56pm, Mark Lybrand wrote:
I have managed to get a Django app installed on IIS7.  It is not finding
the static files for the admin section.  Can someone give me some
pointers on the steps I need to take to get static files to work in
general,

https://docs.djangoproject.com/en/1.4/howto/static-files/

This assumes you are using Django 1.4


 as well as specifically how to make my Django app pull the
appropriate static files from the core django package?

https://docs.djangoproject.com/en/1.4/howto/static-files/#deploying-static-files-in-a-nutshell


What information
do you need from me to be able to answer this question?

Specific error messages if something fails. Django version. Python version.

If it isn't finding static files there won't necessarily be error messages - you will probably just see raw html. View page source to discover where it is looking for static files and compare what you see with STATIC_URL. IIS has to look in STATIC_ROOT for those.

hth

Mike


Thanks in advance.

--
Mark :)

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

To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


--
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...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.





--
Mark :)

Mike Dewhirst

unread,
Apr 12, 2013, 5:54:05 AM4/12/13
to django...@googlegroups.com
You need to make IIS serve the static files from a given location.

1. Run collectstatic and note where it puts the files (STATIC_ROOT).

2. Tweak IIS so it connects STATIC_URL to STATIC_ROOT.

I can't help there because I have never used it. I could help if it was Apache.

Good luck

Mike

Connected by Motorola
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages