django-filebrowser 无法访问并抛出 404
找不到页面 (404) 请求方法: 获取请求网址: http://beta.mysite.com/admin/filebrowser/
请求的管理页面没有 存在。
django-filebrowser
要求:
- django 1.0+ (我有 1.1 )
- PIL (我安装了
python-imaging
) - Grappelli (我安装了最新的 svn trunk,确认它有效)
对于 filebrowser我:
- 检查了最新的svn,放入
- 通过媒体文件复制到静态主机的
- python路径,将文件浏览器添加到
settings.py
,确认它拿起它,因为它曾经抛出一个异常,在我安装之前没有安装PIL我 - 在 urls.py 中添加了确切的 url 行:
(r'^admin/filebrowser/', include('filebrowser.urls')),
有一点需要注意,我没有修改文件浏览器settings.py。
我的网站管理工作正常,grappelli 应用于管理,我尝试了带有尾部斜杠的 http://site.com/admin/filebrowser/
,我的网址有一个尾部斜杠,这是完整的网址。 py:
urlpatterns = patterns('',
(r'^$', 'django.views.generic.simple.direct_to_template', {'template':'homepage.html'}),
# Uncomment the next line to enable the admin:
(r'^admin/filebrowser/', include('filebrowser.urls')),
(r'^admin/', include(admin.site.urls)),
# add this or you'll get some error:
# Reverse for 'grp_bookmark_get' with arguments
(r'^grappelli/', include('grappelli.urls')),
(r'^search/$', 'site.search.views.search'),
(r'', include('django.contrib.flatpages.urls')),
)
Page not found (404) Request Method:
GET Request URL:
http://beta.mysite.com/admin/filebrowser/The requested admin page does not
exist.
django-filebrowser
requirements:
- django 1.0+ ( I have 1.1 )
- PIL ( I installed
python-imaging
) - Grappelli ( I installed the latest svn trunk, confirmed it works )
For filebrowser I:
- checked out latest svn, put in python path
- copied over media files to static host
- added filebrowser to
settings.py
, confirmed its picking it up because it once threw an Exception that PIL wasnt installed before I installed it - I added the exact url line to urls.py:
(r'^admin/filebrowser/', include('filebrowser.urls')),
One thing to note, I did not modify the filebrowser settings.py.
My site admin works, grappelli is applied to the admin, I tried http://site.com/admin/filebrowser/
with the trailing slash, my url has a trailing slash, heres the full urls.py:
urlpatterns = patterns('',
(r'^
, 'django.views.generic.simple.direct_to_template', {'template':'homepage.html'}),
# Uncomment the next line to enable the admin:
(r'^admin/filebrowser/', include('filebrowser.urls')),
(r'^admin/', include(admin.site.urls)),
# add this or you'll get some error:
# Reverse for 'grp_bookmark_get' with arguments
(r'^grappelli/', include('grappelli.urls')),
(r'^search/
, 'site.search.views.search'),
(r'', include('django.contrib.flatpages.urls')),
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
freenode/#django 上的 apollo13 解决了这个问题。我应该去
/admin/filebrowser/browse
。apollo13 on freenode/#django solved this one. I was supposed to go to
/admin/filebrowser/browse
.