Have you looked through the deployment documentation yet?
(https://docs.djangoproject.com/en/1.8/howto/deployment/)

-A

On Wed, Apr 22, 2015 at 4:35 PM, john <jo...@jfcomputer.com> wrote:
> Hi,
> I have created a website that works well under "runserver".  But when I use
> nginx and uwsgi the basic website comes up but it is missing the static file
> information. I have run "manage.py collectstatic" but still no static files
> are used.
>
> Reading the Django doc's tells me that I need the webserver to serve the
> static files.  Ok I think I can do that (maybe).  But I don't understand
> completely.  In my templates I have links like:
> <link href = "{% static 'css/bootstrap.min.css' %}" rel="stylesheet">
>
> How does the nginx server understand to provide the css file for my html
> page from the code above?
>
> I read that I can add a 'location' in the nginx config file but don't
> understand how nginx would understand to provide it when my template is
> called.
>
> Thanks for the help in advance.
>
> Johnf
>
>
> --
> 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+unsubscr...@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/5538303D.2080202%40jfcomputer.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@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/CAEE%2BrGoERBV7%3DsQ2H%3DcDEKf01KkrBqcCKWrvoBx-SHqQR0B5nQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to