Check official documentation -
https://docs.djangoproject.com/en/2.1/howto/static-files/
--
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
Hello everyone,
I recently completed the Django first app tutorial and am decently happy
with what I have.
I would like to continue adding to the site by making small improvements
here and there. Anyways I found a cool cube clock on freefrontend.com but I
can't seem
to figure out how to add it
This problem has troubled me also.
In the DJANGO PROJECT website, they said " we want you to put static files
on web server instead of using local directories "
So,why not?
Just drop it on the web server, and then use the http url to load images or
css.
在 2015年12月23日星期三 UTC+8下午7:50:52,Dan
So, I'm curious.
How to serve a static file with django?
I sense that
This URL is leaving out a step or maybe I read it wrong:
https://docs.djangoproject.com/en/1.9/howto/static-files/
??
I am running this django:
>>> import django
>>> print(django.get_version())
1.9
>>>
I guess the URL would be something like this
127.0.0.1:8000/static/my_app/hello.html
(without the first "my_app")
assuming your STATIC_URL is '/static/'
On Wed, Dec 23, 2015 at 1:57 AM, Dan Bikle wrote:
> *Hi List,*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
*Hi List,*
*I am new to django.I read
this:https://docs.djangoproject.com/en/1.9/howto/static-files/I did this:cd
~django-admin startproject mysiteI see this in
~/mysite/mysite/settings.pyINSTALLED_APPS = ['django.contrib.admin',
6 matches
Mail list logo