Thanx - You were right - comma missed :)
Everything is ok now :P
--~--~-~--~~~---~--~~
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 unsubscrib
Spock,
Can you post your urls.py here ? Probably you're just missing a comma.
Graham.
Spock wrote:
> Thant for advice but it doesn't help much..
> Now I'm getting (Web page):
>
> TypeError at /media/dupa.txt
> 'tuple' object is not callable
> Request Method: GET
> Request URL: htt
Thant for advice but it doesn't help much..
Now I'm getting (Web page):
TypeError at /media/dupa.txt
'tuple' object is not callable
Request Method: GET
Request URL:http://localhost:8000/media/dupa.txt
Exception Type: TypeError
Exception Value:'tuple' object is not call
If you are using the development server, you need something like this
in your urls.py:
(r'^media/(?P.*)$', 'django.views.static.serve', {'document_root':
r'/home/spock/python/iwywiad/media/'})
Spock wrote:
> Hello, I'm trying to setup MEDIA_ROOT for test application.
> Here are reults :)
>
Hello, I'm trying to setup MEDIA_ROOT for test application.
Here are reults :)
settings.py
MEDIA_ROOT = '/home/spock/python/iwywiad/media/'
MEDIA_URL = '/media'
ADMIN_MEDIA_PREFIX = '/media/admin/
[EMAIL PROTECTED] iwywiad]$ ls -l /home/spock/py/iwywiad/media/
razem 24
lrwxrwxrwx 1 spock spock
Hello, I'm trying to setup MEDIA_ROOT for test application.
Here are reults :)
settings.py
MEDIA_ROOT = '/home/spock/python/iwywiad/media/'
MEDIA_URL = '/media'
ADMIN_MEDIA_PREFIX = '/media/admin/
[EMAIL PROTECTED] iwywiad]$ ls -l /home/spock/py/iwywiad/media/
razem 24
lrwxrwxrwx 1 spock spock
Hello, I'm trying to setup MEDIA_ROOT for test application.
Here are reults :)
settings.py
MEDIA_ROOT = '/home/spock/python/iwywiad/media/'
MEDIA_URL = '/media'
ADMIN_MEDIA_PREFIX = '/media/admin/
[EMAIL PROTECTED] iwywiad]$ ls -l /home/spock/py/iwywiad/media/
razem 24
lrwxrwxrwx 1 spock spock
Hello, I'm trying to setup MEDIA_ROOT for test application.
Here are reults :)
settings.py
MEDIA_ROOT = '/home/spock/python/iwywiad/media/'
MEDIA_URL = '/media'
ADMIN_MEDIA_PREFIX = '/media/admin/
[EMAIL PROTECTED] iwywiad]$ ls -l /home/spock/py/iwywiad/media/
razem 24
lrwxrwxrwx 1 spock spock
8 matches
Mail list logo