Yes! I've done it = ) I added a STATIC_PATH variable to my settings.py
which pointed to /static/leaguemanager so that in my templates I can
use static/css/style.css to reference a stylesheet. I added this to my
urls.py in my leaguemanager directory:
from django.conf.settings import STATIC_PATH
fr
Have you followed the Django tutorial? Up to page 2? I suggest you do
that and see if that helps. I imagine you've just got an incorrect
pointer to a directory. That's quite scary that you're at Leeds too!
I'm still getting a 404 error now when trying to locate my CSS file = (
this has taken me at
thebubblejungle wrote:
> You might be able to fix that by using myapp/BaseOrAnotherTemplate. I
> managed to get that part working! Also, if you have a setup like
> /templates/myapp/ this is why it maybe can't find the file.
my directory structure is exactly that way. But it still doesnt accept
i
You might be able to fix that by using myapp/BaseOrAnotherTemplate. I
managed to get that part working! Also, if you have a setup like
/templates/myapp/ this is why it maybe can't find the file.
My urls.py file is:
from django.conf.urls.defaults import *
urlpatterns = patterns('ourproject.leagu
I am trying to solve the same problem
I have read another comment on the main django page, about
{{% extends "BaseOrAnotherTemplate"%}}
and I get the message:
cannot be extended because BaseOrAnotherTemplate" does not exist!
please help!
--~--~-~--~~~---~--~~
BrandonC wrote:
> (r'^media/(?P.*)$', 'django.views.static.serve',
> {'document_root': 'path/to/document/root/media', 'show_indexes':
> True}),
>
> As a temporary measure you can add a line like this to your urls.py in
> order to serve media when developing, replacing the path line with an
> absol
(r'^media/(?P.*)$', 'django.views.static.serve',
{'document_root': 'path/to/document/root/media', 'show_indexes':
True}),
As a temporary measure you can add a line like this to your urls.py in
order to serve media when developing, replacing the path line with an
absolute path to your media. Idea
error when run manager.py init
log show below
C:\djangosite>python mytest01\manage.py init
Error: Your action, 'init', was invalid.
Run "mytest01\manage.py --help" for help.
then i try manager.py --help
in action list really have no init option! I use the remove magic version.
Does anyone kno
Cheers,
So if I upload my files to a directory (media) on my Linux server,
www.foo.com say, I need to add:
/public_html/media/www.foo.com/ to the MEDIA_ROOT
and http://www.foo.com/ to MEDIA_URL to settings.py
In my base template, can I just use style.css or do I need to point to
the absolute re
I meant to say "that's just for development, NOT production".
On 3/4/06, Wilson Miner <[EMAIL PROTECTED]> wrote:
> Django doesn't serve media (images, css, etc.). The development server
> handles the media necessary for the admin interface, but that's just
> for production. You'll need a regular
Django doesn't serve media (images, css, etc.). The development server
handles the media necessary for the admin interface, but that's just
for production. You'll need a regular web server (Apache, lighttpd,
etc.) to serve your media. Once you've got that going, you'll need to
update the MEDIA_ROO
Hi,
I'm fairly new to Django and have a project at University where I am
creating a league table manager with a web interface. I'm having
problems viewing CSS in my templates online i.e.
http://localhost:8000/leaguemanager/ shows an index page which links to
style.css, but in the server window I'
12 matches
Mail list logo