|
List Info
Thread: admin on "/" unable to find media
|
|
| admin on "/" unable to find
media |

|
2006-02-15 02:41:00 |
On 2/15/06, Kenneth Gonsalves <lawgon thenilgiris.com> wrote:
>
> On Tuesday 14 Feb 2006 6:37 pm, coulix wrote:
> > can i see your url.py, cause i had to take off the
leading '^' to
> > be able to recognize the admin part
> > at /mysite/admin.
>
> (r'^admin/',
include('django.contrib.admin.urls.admin')),
>
Which version do you use? It seems that the syntax is for
0.91. If you
are using 0.92, the above should be:
(r'^admin/', include('django.contrib.admin.urls')),
--
I like python!
My Blog: http://www.donews.net/l
imodou
NewEdit Maillist: http://groups.
google.com/group/NewEdit
|
|
| admin on "/" unable to find
media |

|
2006-02-15 02:50:57 |
On Wednesday 15 Feb 2006 8:11 am, limodou wrote:
> > (r'^admin/',
include('django.contrib.admin.urls.admin')),
>
> Which version do you use? It seems that the syntax is
for 0.91.
> If you are using 0.92, the above should be:
>
> (r'^admin/',
include('django.contrib.admin.urls')),
am using latest svn
--
regards
kg
http://www.li
vejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
|
|
| admin on "/" unable to find
media |

|
2006-02-15 03:06:17 |
On 2/15/06, Kenneth Gonsalves <lawgon thenilgiris.com> wrote:
>
> On Wednesday 15 Feb 2006 8:11 am, limodou wrote:
> > > (r'^admin/',
include('django.contrib.admin.urls.admin')),
> >
> > Which version do you use? It seems that the syntax
is for 0.91.
> > If you are using 0.92, the above should be:
> >
> > (r'^admin/',
include('django.contrib.admin.urls')),
>
> am using latest svn
>
So you should change the urls.py just like what I shown you
above. And
try again.
--
I like python!
My Blog: http://www.donews.net/l
imodou
NewEdit Maillist: http://groups.
google.com/group/NewEdit
|
|
| admin on "/" unable to find
media |

|
2006-02-15 03:46:37 |
On Wednesday 15 Feb 2006 8:36 am, limodou wrote:
> > > > (r'^admin/',
include('django.contrib.admin.urls.admin')),
> > >
> > > Which version do you use? It seems that the
syntax is for
> > > 0.91. If you are using 0.92, the above should
be:
> > >
> > > (r'^admin/',
include('django.contrib.admin.urls')),
> >
> > am using latest svn
>
> So you should change the urls.py just like what I shown
you
> above. And try again.
what i put was automatically generated by startproject. If i
use
your pattern - i dont even get admin. My only problem is
getting
the css as admin works with my url
--
regards
kg
http://www.li
vejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
|
|
| admin on "/" unable to find
media |

|
2006-02-15 03:51:38 |
On 2/15/06, Kenneth Gonsalves <lawgon thenilgiris.com> wrote:
>
> On Wednesday 15 Feb 2006 8:36 am, limodou wrote:
> > > > > (r'^admin/',
include('django.contrib.admin.urls.admin')),
> > > >
> > > > Which version do you use? It seems that
the syntax is for
> > > > 0.91. If you are using 0.92, the above
should be:
> > > >
> > > > (r'^admin/',
include('django.contrib.admin.urls')),
> > >
> > > am using latest svn
> >
> > So you should change the urls.py just like what I
shown you
> > above. And try again.
>
> what i put was automatically generated by startproject.
If i use
> your pattern - i dont even get admin. My only problem
is getting
> the css as admin works with my url
>
Oh, I'm sorry for my wrong reply. But my project urls.py is
:
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
# (r'^pppp/', include('pppp.apps.foo.urls.foo')),
# Uncomment this for admin:
# (r'^admin/',
include('django.contrib.admin.urls')),
)
If you are using the lastest svn, why your output is not the
same as me?
Does you use apache?
--
I like python!
My Blog: http://www.donews.net/l
imodou
NewEdit Maillist: http://groups.
google.com/group/NewEdit
|
|
| admin on "/" unable to find
media |

|
2006-02-15 05:10:01 |
On Wednesday 15 Feb 2006 9:21 am, limodou wrote:
> If you are using the lastest svn, why your output is
not the same
> as me?
no idea
>
> Does you use apache?
yes
--
regards
kg
http://www.li
vejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
|
|
| admin on "/" unable to find
media |

|
2006-02-15 05:18:06 |
On 2/15/06, Kenneth Gonsalves <lawgon thenilgiris.com> wrote:
>
> On Wednesday 15 Feb 2006 9:21 am, limodou wrote:
> > If you are using the lastest svn, why your output
is not the same
> > as me?
>
> no idea
> >
> > Does you use apache?
>
> yes
>
Oops, maybe you should change httpd.conf just like these:
Alias /media
C:/Python24/Lib/site-packages/Django-0.91-py2.4.egg/django/c
ontrib/admin/media
<Location "/media">
SetHandler None
</Location>
If the DEBUG option in settings.py is set to False, static
files will
be servered by web server, and will not come from django
server again.
You should read http://www.djangoproject.com/documentation/modpython/
for more details.
--
I like python!
My Blog: http://www.donews.net/l
imodou
NewEdit Maillist: http://groups.
google.com/group/NewEdit
|
|
| admin on "/" unable to find
media |

|
2006-02-15 15:04:59 |
limodou wrote:
>If you are using the lastest svn, why your output is not
the same as me?
>
>
Because 0.92 is a magic-removal branch, not the trunk which
'latest svn' is.
|
|
[1-8]
|
|