NoReverseMatch: u'admin' is not a registered name

540 views
Skip to first unread message

Stefanos Vizikidis

unread,
Apr 7, 2013, 10:25:18 AM4/7/13
to djangofi...@googlegroups.com

Hi!

I am new to django-filebrowser and i intend to use it in order to build a dropbox-like application.
I followed the guide in order to create my first project but when i try to access http://localhost:8000/admin/filebrowser/browse/ i get
NoReverseMatch at /admin/filebrowser/browse/
u'admin' is not a registered namespace

I have installed needed apps using pip ( versions are 3.5.2 for filebrowser and 2.4.4 for grappelli.

Let me know if i need to provide traceback.

patrick kranzlmueller

unread,
Apr 7, 2013, 10:26:55 AM4/7/13
to djangofi...@googlegroups.com
did you install django.contrib.admin and the admin urls?


2013/4/7 Stefanos Vizikidis <svizi...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Django FileBrowser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to djangofilebrow...@googlegroups.com.
To post to this group, send email to djangofi...@googlegroups.com.
Visit this group at http://groups.google.com/group/djangofilebrowser?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Stefanos Vizikidis

unread,
Apr 7, 2013, 10:39:38 AM4/7/13
to djangofi...@googlegroups.com
django.contrib.admin is in the installed_apps but i didin't uncomment the admin urls in urls.py.

Should i do it?

patrick kranzlmueller

unread,
Apr 7, 2013, 10:41:17 AM4/7/13
to djangofi...@googlegroups.com
you should try ... and you need to activate the filebrowser urls as well.


2013/4/7 Stefanos Vizikidis <svizi...@gmail.com>

Stefanos Vizikidis

unread,
Apr 7, 2013, 10:52:42 AM4/7/13
to djangofi...@googlegroups.com
If i uncomment the admin url i get

NameError at /admin/filebrowser/browse/


name 'admin' is not defined

Error comes form urls.py

Filebrowser url is activated.

patrick kranzlmueller

unread,
Apr 7, 2013, 10:55:20 AM4/7/13
to djangofi...@googlegroups.com

Stefanos Vizikidis

unread,
Apr 7, 2013, 11:37:46 AM4/7/13
to djangofi...@googlegroups.com
Thanks!

just needed to add

from django.contrib import admin

and grappelli login screen appeared.
Reply all
Reply to author
Forward
0 new messages