mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-28 02:15:56 +03:00
[GH-ISSUE #734] u'modoboa_admin' is not a registered namespace #671
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#671
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @workino on GitHub (May 29, 2015).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/734
Hello,
i'm trying to figure out how to solve this issue but no lucky.
/usr/local/lib/python2.7/dist-packages/modoboa/core/views/auth.py in dologin
nextlocation = request.POST.get("next", None)
if nextlocation is None or nextlocation == "None":
if user.group == "SimpleUsers":
nextlocation = reverse("topredirection")
else:
# FIXME
nextlocation = reverse("modoboa_admin:domain_list") ...
return HttpResponseRedirect(nextlocation)
error = _(
"Your username and password didn't match. Please try again.")
logger.warning(
"Failed connection attempt from '%(addr)s' as user '%(user)s'"
% {"addr": request.META["REMOTE_ADDR"],
@tonioo commented on GitHub (May 30, 2015):
Hi,
have you installed the modoboa-admin package ?
@stepps commented on GitHub (Jul 3, 2015):
I am having the same issue but I have installed modoboa-admin with pip
sudo pip install modoboa-admin
Requirement already satisfied (use --upgrade to upgrade): modoboa-admin in /usr/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): modoboa>=1.3.2 in /usr/lib/python2.7/site-packages (from modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): rfc6266 in /usr/lib/python2.7/site-packages (from modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): progressbar==2.3 in /usr/lib/python2.7/site-packages (from modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): django>=1.7,<1.8 in /usr/lib64/python2.7/site-packages (from modoboa>=1.3.2->modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): django-reversion==1.8.5 in /usr/lib/python2.7/site-packages (from modoboa>=1.3.2->modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): dj-database-url in /usr/lib/python2.7/site-packages (from modoboa>=1.3.2->modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): pycrypto in /usr/lib64/python2.7/site-packages (from modoboa>=1.3.2->modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7/site-packages (from modoboa>=1.3.2->modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): factory-boy>=2.4 in /usr/lib/python2.7/site-packages (from modoboa>=1.3.2->modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): passlib in /usr/lib/python2.7/site-packages (from modoboa>=1.3.2->modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): django-versionfield2>=0.3.3 in /usr/lib/python2.7/site-packages (from modoboa>=1.3.2->modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/site-packages (from modoboa>=1.3.2->modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): django-xforwardedfor-middleware in /usr/lib/python2.7/site-packages (from modoboa>=1.3.2->modoboa-admin)
Requirement already satisfied (use --upgrade to upgrade): LEPL in /usr/lib/python2.7/site-packages (from rfc6266->modoboa-admin)
Cleaning up...
@tonioo commented on GitHub (Jul 4, 2015):
A full python stacktrace would be helpful...
@thoastbrot commented on GitHub (Jul 7, 2015):
Same problem here, pip install'ed modoboa modoboa-webmail modoboa-admin:
Ran
python manage.py runserver 0.0.0.0:9090with debug enabled and pointed a browser to the url:Environment:
Request Method: GET
Request URL: http://my.configured.host:9090/
Django Version: 1.7.8
Python Version: 2.7.9
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',
'reversion',
'modoboa',
'modoboa.core',
'modoboa.lib')
Installed Middleware:
('x_forwarded_for.middleware.XForwardedForMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'modoboa.lib.middleware.AjaxLoginRedirect',
'modoboa.lib.middleware.CommonExceptionCatcher',
'modoboa.lib.middleware.RequestCatcherMiddleware')
Traceback:
File "/home/modoboa/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
Exception Type: NoReverseMatch at /
Exception Value: u'modoboa_admin' is not a registered namespace
@tonioo commented on GitHub (Jul 7, 2015):
Please make sure you installed modoboa > 1.3 :
$ pip install modoboa==1.3.3@stepps commented on GitHub (Jul 7, 2015):
I had modoboa 1.3 installed. The issue apparently is that I need to run modoboa as root. It has to do with the permissions of the pip modules installed. I am not very happy to run modoboa as root, but for testing purposes it is ok.
My target is deploy modoboa and all the pip modules by rpm, because it needs to be installed in a tightly controlled environment.
@tonioo commented on GitHub (Jul 7, 2015):
If you run modoboa into a virtualenv, no need to run as root.
@thoastbrot commented on GitHub (Jul 7, 2015):
I figured out that my problem were the missing extensions. Also, I installed modoboa-admin after creating the site folder (which hadn't worked anyway if I had selected to install extensions).
To do anything, I had to manually append core/ to the url after logging in.
To have a "ready-to-work" service, I had to add modoboa-admin to the list of extensions. Why is that so? Why is a required package (eg view on / ) an optional package, an extension?
I also would fancy a list of available extensions, either as fixed list on the documentation or a rendered list of installed modules in the help text.