Re: Static Files on IIS install
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
Mark Lybrand <mlybrand@gmail.com> wrote:
I will read those links as soon as I get a chance.
As for the particulars:
Errors:
On Thu, Apr 11, 2013 at 10:21 PM, Mike Dewhirst <miked@dewhirst.com.au> wrote:
On 12/04/2013 12:56pm, Mark Lybrand wrote:https://docs.djangoproject.com/en/1.4/howto/static-files/
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,
This assumes you are using Django 1.4https://docs.djangoproject.com/en/1.4/howto/static-files/#deploying-static-files-in-a-nutshell
as well as specifically how to make my Django app pull the
appropriate static files from the core django package?
Specific error messages if something fails. Django version. Python version.
What information
do you need from me to be able to answer this question?
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+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?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-users@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 :)
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?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-users@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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home