Thursday, December 11, 2014

Re: Issue with website migration

> Den 11/12/2014 kl. 13.13 skrev edalb1979 <eugene@inx.co.za>:
>
> Good day.
>
> I have been requested to move a site for someone from there current hosting company to our hosting company.
>
> I have gotten so far that the site is up and running but none of the stylesheets or images are showing up.
> I have had a look at the source code of the site and I do see that it is not showing up right.
>
> <link href="/static/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen,projection" />
> <link href="/static/css/bootstrap-non-responsive.css" rel="stylesheet" type="text/css" media="screen,projection" />
> <link href="/static/css/main.css"

/static/foo is shorthand for http(s)://your.website.tld/static/foo

Your new web server should be serving http(s)://your.website.tld/static/foo URLs but isn't. You need to find out why. Probably the old website has rules to serve static files directly from the filesystem, which you need to migrate to the new server, or the rules are in place but the static files are missing from where the web server expected to find them.

Erik

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9DF82B5B-48E6-4710-82BE-1424F31064A0%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment