I agree with Marty: your static URL pattern is never being used. And
the log file snippet you gave had the big clue in it:
[09/Feb/2008 11:58:42] "GET / HTTP/1.1" 200 39
[09/Feb/2008 11:58:42] "GET /site_media/my_image.jpg HTTP/1.1" 200 39
The key thing here is the "39". That's the number of by
On Feb 9, 2008 2:29 PM, Marty Alchin <[EMAIL PROTECTED]> wrote:
>
> On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> > Any way, here is my current urls.py document:
> >
> > from django.conf.urls.defaults import *
> > from django.conf import settings
> > from btaylor_design.views import home
YOU, MY FRIEND, ARE THE MAN.
I can't thank you enough. A tear almost ran down my cheek.
Kindest regards,
Brandon
On Feb 9, 1:29 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
> > Any way, here is my current urls.py document:
>
> > from dja
On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Any way, here is my current urls.py document:
>
> from django.conf.urls.defaults import *
> from django.conf import settings
> from btaylor_design.views import home
>
> urlpatterns = patterns('',
> (r'', home),
> )
Don't bother reading an
BTW,
I moved the images directory into the root of the website instead of
at 'btaylor_Design/public/images', now it's just 'btaylor_design/
images' to eliminate a path.
I reinstalled Python 2.5.1 and upgrade Django to 0.97. I can import
Django from the command line in Python, and it appears to b
Hello Ian,
I have set permissions for all groups and users to read/write for the
entire project folder, including all enclosed items.
Thanks,
Brandon
On Feb 9, 12:48 pm, "Ian Lawrence" <[EMAIL PROTECTED]> wrote:
> Ola
> what are the permissions on the image file?
> regards
> ian
>
> --
> always
Ola
what are the permissions on the image file?
regards
ian
--
always code as if the person who ends up maintaining it will be a
violent psychopath who knows where you live.
http://ianlawrence.info
--~--~-~--~~~---~--~~
You received this message because you are s
Yes, here is my settings file:
- - -
import os.path
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', '[EMAIL PROTECTED]'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql',
'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = ''
Do you have DEBUG set to True in your settings.py?
I don't understand why it would return a status code of 200 (OK) if it
didn't fetch and serve the file.
Have you tried a different image?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hi Michael,
Believe me, I've read the documentation, and I had already tried
specifying the images folder as path to media instead of the parent of
images, public.
Any way, here is my current urls.py document:
from django.conf.urls.defaults import *
from django.conf import settings
from btaylor
Brandon Taylor wrote:
> Hi everyone,
>
> I'm just about to give up on Django. I can't even get it to load a
> simple jpeg using the built-in server.
>
> Here is my directory structure:
>
> '/Users/bt/django_projects' is where all of my Django projects exist
>
> /btaylor_design
> settings.py, e
Brandon-
I believe that the reason it's not serving the file is because your
url pattern does not give a name to the string that you're capturing
(the .* in your pattern). Django expects this to be given the name
"path," and in Python regular expressions, you do that with the
syntax:
(?P.*)
Tr
12 matches
Mail list logo