Sorry for the incomplete message.
This what the structure looks like now
mysite/
media /
css /
file1
js/
js1
img/
img1
Settings.py
MEDIA_ROOT = ''
MEDIA_URL = ''
All,
I copied the media directory from django project into my site project. This
is what it looks like now
mysite/
--
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
If the slugs are something you're really concerned with... I would say
customize the change form to work the way you want.
Personally, I would rather the computer error on the side of not
breaking...instead of trying to anticipate what I want it to do this
time...vs next time vs a year from now.
Yeah that makes sense. I guess we just need to be more careful when
adding live posts. Maybe it wouldn't be a bad idea to add the
functionality on change if a post is anything but live. This way the
slug stays relevant to the title for drafts if the editor feels like
experimenting with different
Nick,
I can answer you first question...but not really the second...hopefully
someone else will come and explain that one to you...
re slugs: The prepopulated_fields are working as intended.
The reason being, say you've written a blog post. You've send that link out
to thousands and millions of
Hello,
I'm running django 1.2.3 on a local server and am still quite new to
django. I was working with the "practical django projects second
edition" book and implemented the prepopulated_fields option to auto
populate slugs from titles.
It works when I add a new post but it does not work when I
Thanks for you help everyone I finally figured it out. I created
another virtual host to serve my media and it worked.
Looks like this:
ServerAdmin [EMAIL PROTECTED]
ServerName media.abc.net
DocumentRoot /srv/django_site/media/
Options None
AllowOverride None
Ok I tried the sym link method and that doesn't seem to work. Grady,
what are you referencing from the documentation? Are you referring to
the tags? If so I have those tossed within the virtualhost
tag. Should I make those global and not within a virtual host tag?
On Jan 7, 4:51 am, Collin
As zodman is getting at, django does not map your media for you - you
have to do that.
http://www.djangoproject.com/documentation/modpython/#serving-media-files
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
define as /srv/ your documentroot on apache virtualhost.
change 755 permission to your /srv/abc/media dir
put a symbolic link on /srv/media --> /srv/abc/media/
rember when the navegator search on django.abc.com/media/
search /media dir for /media/ location on your documentroot
William
define as /srv/ your documentroot on apache virtualhost.
change 755 permission to your /srv/abc/media dir
put a symbolic link on /srv/media --> /srv/abc/media/
rember when the navegator search on django.abc.com/media/
search /media dir for /media/ location on your documentroot
William
bah, nevermind, I should try reading more carefully, as you're not
using the test server. :)
Sorry.
Might be a conflict with using /media/ for both admin and static files?
-Bill
On Jan 6, 2008, at 9:12 PM, pacman wrote:
Hi, I have a strange issue with my css not loading. CSS and Images
Have you tried this yet?
http://www.djangoproject.com/documentation/static_files/
-Bill
On Jan 6, 2008, at 9:12 PM, pacman wrote:
Hi, I have a strange issue with my css not loading. CSS and Images
seem to work fine for the admin portion of the site but when I try to
add my own CSS it
Hi, I have a strange issue with my css not loading. CSS and Images
seem to work fine for the admin portion of the site but when I try to
add my own CSS it can't seem to find it.
my variables look as such:
MEDIA_ROOT = '/srv/abc/media/'
MEDIA_URL = 'http://www.abc.net/media/'
ADMIN_MEDIA_PREFIX
I'm brand new to Django. And, I was having a problem getting my CSS
working. I searched the archives here and I saw lots of references
from people having the same problems with CSS and some debates on how
to go about making it work. But, I never saw anyone spell out exactly
how they got it
Great, works a treat!
Thanks so much
Tom
--~--~-~--~~~---~--~~
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,
On 03/09/06 11:47, tomass wrote:
> Hi Folks,
>
> I've copied the admin css to be used for my views, but I've added in
> this custom section which is a modified version of the FILTER COLUMN
> from changelist.css:
>
> /* FILTER COLUMN (CUSTOM VERSION) */
>
> #changelist-filter-custom
Hi Folks,
I've copied the admin css to be used for my views, but I've added in
this custom section which is a modified version of the FILTER COLUMN
from changelist.css:
/* FILTER COLUMN (CUSTOM VERSION) */
#changelist-filter-custom {position:absolute; top:0; right:0;
width:180px;
18 matches
Mail list logo