I have a Django project, where, for the most part, users need to be logged
in to see or do anything.
If an unauthenticated user guesses a page name in my project, they would
get redirected to the login page, with an error message, as they should.
The project's static and media files o
Hi Julio!
Thank u so much!
Jonathan
Diretor de Tecnologia
+55(12)98864-1594
Sent from my iPhone
> On Mar 30, 2014, at 13:49, Julio Molina Soler wrote:
>
> Hi Jonathan,
>
> the cleanest way I found:
>
> at the beginning of your settings.py add
>
> import os
> BASE_PROJECT = os.path.dirname(
Hi Jonathan,
the cleanest way I found:
at the beginning of your settings.py add
import os
BASE_PROJECT = os.path.dirname(__file__)
then when the section comes
MEDIA_ROOT = os.path.join(BASE_PROJECT,'media')
MEDIA_URL = '/media/'
STATIC_ROOT = os.path.join(BASE_PROJECT,'static')
STATIC_URL =
Guys
What is the best way to configure and make accessible via URL the STATIC and
the MEDIA uri?
I can`t seem to find a good way, and get so many errors for the both being
equal.
Can someone send me an example of this configs?
Thanks!
--
You received this message because you are subscribed
Hi dj-konst!
Static files in production are generally served by web server - Nginx
or Apache or something else. And it's safer to place static files dir
outside of your project dir and use 'collectstatic' command to grab
static files there.
Here are some examples of Nginx config with static files
Hi, I'm new in django
I use FreeBSD9+wsgi+django (unique host) but meet problems with static
files...
There are sections in Django Documentation 1.5 ( 4.13.4 Serving static
files in production )...
but there is no enough details for me. Where to read about serving static
files in more detals (
6 matches
Mail list logo