I failed to provide the following information in a similar post, and
it slowed down responses.
1) What web server are you using? If it is not the built in
development server, please provide the configuration for Django.
2) Check your application's settings.py file and make sure the
appropriate it
I found the answer. The problem was about the apache (httpd) configuration.
When i add the following to httpd config, the problem is solved:
AllowOverride None
Options None
Order allow,deny
Allow from all
Alias /media/ "Path-to-Python/Lib/site-packages/django/contrib/admin/medi
Hi,
Yesterday i moved my site to a linux solution. Everything is going
fine, except admin site. When i go to url example.com/admin, the
template doesnt work. When i look at the source, i see these:
But i dont have any urls or files on example.com/media/css/base.css
or
example.com/media/css/l
http://www.djangoproject.com/documentation/static_files/
On Mar 27, 9:28 pm, "Brian Armstrong" <[EMAIL PROTECTED]> wrote:
> Greg, check out settings.py. CSS counts as media -- it's a static
> file you want to serve up to the outside. The exact details of how
> this works depend on how the serv
Greg, check out settings.py. CSS counts as media -- it's a static
file you want to serve up to the outside. The exact details of how
this works depend on how the server you're on is set up, but
essentially you have two options. You go into settings.py and fill in
values for media_root and medi
Hello List!
Things clicked tonight! I visited with Jacob at PyCon and decided that it
was time to really learn Django. I have gone through most of the Django
book (online) and the Head First XHTML with CSS books. Tonight, everything
came together and I've written my first web pages using Django
Thank you Lazlo, today your my hero!
David
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, sen
On Mon, 12 Nov 2007 14:42:15 -
David <[EMAIL PROTECTED]> wrote:
Hi,
> On Nov 9, 7:16 pm, David <[EMAIL PROTECTED]> wrote:
> > I seem to have a similar (stupid) problem, which I just can't get:
> > (Though it's not the backslashes!)
> >
> > This is from my settings.py:
> > MEDIA_ROOT = 'C
Nobody that could help me?
Do you need further information?
On Nov 9, 7:16 pm, David <[EMAIL PROTECTED]> wrote:
> I seem to have a similar (stupid) problem, which I just can't get:
> (Though it's not the backslashes!)
>
> This is from my settings.py:
> MEDIA_ROOT = 'C:/django/myProject/src/medi
alert('x');
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
Fo
excuse me, can you explain this please?
On Nov 9, 7:25 pm, pepe <[EMAIL PROTECTED]> wrote:
> alert('x');
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
I seem to have a similar (stupid) problem, which I just can't get:
(Though it's not the backslashes!)
This is from my settings.py:
MEDIA_ROOT = 'C:/django/myProject/src/media/'
MEDIA_URL = 'http://localhost:8000/media/'
ADMIN_MEDIA_PREFIX = '/media/'
in my html-template:
in urls.py:
(r'
Solved:)
Really stupid mistake. I was using backslashes when i should have been using
forward slashes.(Iam on windows btw).
Thanks a lot for ur help.
Goutham
On 11/1/07, dunia <[EMAIL PROTECTED]> wrote:
>
>
> Goutham DL wrote:
> > Can some one please help me out here?
> >
> > On Nov 1, 7:03 pm,
Goutham DL wrote:
> Can some one please help me out here?
>
> On Nov 1, 7:03 pm, Goutham DL <[EMAIL PROTECTED]> wrote:
>
>> hi,
>> Its still not working. Iam actually using django 0.96.The code that
>> antoni gave is giving errors.
>> Can someone please explain why i need to configure media_url
The port is 8000 for Django, but I'll suppose is a typo.
Please check:
MEDIA_ROOT it should be your media folder and it must finist with /
MEDIA_URL = 'http://localhost:8000/media/
on urls.py
...
from django.con import settings
...
if settings.DEBUG:
urlpatterns += patterns('',
hi
Actually i did exactly what u have done in the trunk version. Let me be more
explicit.
I have a login.html file in which i have a link to login.css.
login.html is in templates directory
login.css is in media/css directory
both media and templates are in my project directory
now i configured med
2007/11/1, Goutham DL <[EMAIL PROTECTED]>:
>
> hi,
> Its still not working. Iam actually using django 0.96.The code that
> antoni gave is giving errors.
The code is prepared for the trunk version of Django, but if you take
a look at the settings file and the url.py file you'll see how it
deals wit
I think your problem is something more elementary!
You are not calling the CSS file from the right path. CSS files have to be
served by another server other than Django development server.
Why do not you try it with inline css first and see whether it works.
Ramdas S
On 11/1/07, Goutham DL <[E
Can some one please help me out here?
On Nov 1, 7:03 pm, Goutham DL <[EMAIL PROTECTED]> wrote:
> hi,
> Its still not working. Iam actually using django 0.96.The code that
> antoni gave is giving errors.
> Can someone please explain why i need to configure media_urls ?
> (media_root has been confi
hi,
Its still not working. Iam actually using django 0.96.The code that
antoni gave is giving errors.
Can someone please explain why i need to configure media_urls ?
(media_root has been configured to the appropriate directory). I just
want to link the css file with the html one.how will using
dja
El Thu, 01 Nov 2007 10:13:13 -
Goutham DL <[EMAIL PROTECTED]> escribió:
>
> Hi,
>
> Iam new to django. Iam having problems loading css files (and images)
> using the development server. Is it possible to load css files in the
> development server or should i use mod_python?
> (since iam a ne
2007/11/1, Goutham DL <[EMAIL PROTECTED]>:
>
> Hi,
Hi
> Iam new to django. Iam having problems loading css files (and images)
> using the development server. Is it possible to load css files in the
> development server or should i use mod_python?
> (since iam a newbie to mod_python also i prefer u
Sure :-)
http://www.djangoproject.com/documentation/static_files/
- Horst
On 11/1/07, Goutham DL <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Iam new to django. Iam having problems loading css files (and images)
> using the development server. Is it possible to load css files in the
> development serv
Hi,
Iam new to django. Iam having problems loading css files (and images)
using the development server. Is it possible to load css files in the
development server or should i use mod_python?
(since iam a newbie to mod_python also i prefer using the development
server for sometime)
Goutham
--~-
24 matches
Mail list logo