aldryn / aldryn-blog

aldryn-blog IS DEPRECATED. PLEASE USE aldryn-newsblog!
Other
20 stars 35 forks source link

NoReverseMatch at /de/admin/r/46/2/ #51

Open sisihagen opened 10 years ago

sisihagen commented 10 years ago

Hello,

i has follow the instruction from readme to install the blog in Django CMS 3 (Django 1.6.) and when i run Archive or an article i become:

NoReverseMatch at /de/admin/r/46/2/ u'aldryn_blog' is not a registered namespace

The complete Error: http://pastebin.com/mLcDB4qH Installed Apps: http://pastebin.com/EppRgGZ0 Console: http://pastebin.com/ZwW2UVtX

Im not a Programmer i see Django CMS in Youtube and found intresting, but i not know what mean this mistake message.

jseidel commented 10 years ago

This is caused by the TEMPLATE_LOADERS setting being in an incorrect order. Order them like this to fix the issue: 'django.template.loaders.app_directories.Loader', 'django.template.loaders.filesystem.Loader',

Therefore this is probably not a aldryn-blog issue.

sisihagen commented 10 years ago

Thank you for information. Maybe is right but when i activate the blog in the settings.py i have problems with set link in editor window come the same msg. I like the CMS but without be a programmer the system can not use. Django CMS naked is for corporate pages ok but without Blog Engine and without programming expirence you have no chance to run this system.

corpulent commented 9 years ago

@jseidel I am having the same issue as @sisihagen here is a snapshot of the error. And you suggestion did not fix it for me. Ill dig through it some more this week, but just wanted to throw it out there and see if you have a some suggestions.

screen shot 2014-07-23 at 11 36 43 pm

sisihagen commented 9 years ago

Has you stop django? I stop, run syncdb and migrate and it work.

Silvio

corpulent commented 9 years ago

@sisihagen yep, I tried all that, everything is synced and migrated, still does not work. It happens when I try to edit a page http://33.33.33.30/en-us/?edit&language=en-us This is the traceback

Exception happened during processing of request from ('33.33.33.1', 64738)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 126, in __init__
    super(WSGIRequestHandler, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__
    self.finish()
  File "/usr/lib/python2.7/SocketServer.py", line 710, in finish
    self.wfile.close()
  File "/usr/lib/python2.7/socket.py", line 279, in close
    self.flush()
  File "/usr/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------
sisihagen commented 9 years ago

@corpulent - Hmm thats look as you has other problems with django. Can you run a new installation? Have you start django-cms with manage.py runserver, or runfcgi? I think there is missed a python package, because give socket error.

corpulent commented 9 years ago

@sisihagen I am still learning how to use the blog system, so in my case it looked like that namespace aldryn_blog was not defined in my page that i created and tried to add latest posts to one of the placeholders in the template. So i think it was because I missed some instruction on how to get the blog system working. I think it is this instruction:

"In order to display them, create a CMS page and install the app there (choose Blog from the Advanced Settings -> Application dropdown)."

So with this, it seems to be working. No errors, the page is still blank, but it is most likely me missing something again. So sorry...

dperetti commented 9 years ago

Same issue, fresh install of django-cms and aldryn blog...

creimers commented 9 years ago

I'm having the same issue. I tried to follow the steps in the djangocms-tutorial, which I think I accomplished, but:

  1. Nothing is added to the toolbar
  2. This nasty NoReverseMatch error shows when I try to add one of the blog's cms plugins to one of my pages.

Running python manage.py cms check yields:

...local/lib/python2.7/site-packages/cms/plugin_pool.py:175: DeprecationWarning: please rename the table "cmsplugin_latestentriesplugin" to "aldryn_blog_latestentriesplugin" in aldryn_blog
...local/lib/python2.7/site-packages/cms/plugin_pool.py:175:  DeprecationWarning: please rename the table "cmsplugin_authorsplugin" to "aldryn_blog_authorsplugin" in aldryn_blog
goanpeca commented 9 years ago

Same issue, fresh install of django-cms and aldryn blog...

evildmp commented 9 years ago

I'm hoping we can get to the bottom of this.

Various issues:

@creimers Don't worry about the deprecation warnings; also, I don't think that Blog will be added to the toolbar until the CMS Page is published (see https://github.com/divio/django-cms/issues/3588)

@sisihagen aldryn_blog is added automatically to the Application namespace field. Your Broken pipe problem is nothing to do with django CMS - it's a more general Django issue.

I simply can't reproduce the NoReverseMatch issue, sorry. I have followed the tutorial starting from http://docs.django-cms.org/en/support-3.0.x/

creimers commented 9 years ago

@evildmp I'll try to be as specific as I can.

Here's my steps:

Install djangocms

mkdir aldryn && cd aldryn
virtualenv .
. bin/activate
pip install djangocms-installer
djangocms -p . aldryn (defaults everywhere, language: de)

Install aldryn-blog

pip install aldryn-blog

Add to settings.py

INSTALLED_APPS = (
...

'aldryn_blog',
'aldryn_common',
'django_select2',
'djangocms_text_ckeditor',
'easy_thumbnails',
'filer',
'taggit',
'hvad',

...
)

SOUTH_MIGRATION_MODULES = {
    'easy_thumbnails': 'easy_thumbnails.south_migrations',
}

THUMBNAIL_PROCESSORS = (
    'easy_thumbnails.processors.colorspace',
    'easy_thumbnails.processors.autocrop',
    #'easy_thumbnails.processors.scale_and_crop',
    'filer.thumbnail_processors.scale_and_crop_with_subject_location',
    'easy_thumbnails.processors.filters',
)

Update database

python manage.py migrate

Start the server

python manage.py runserve

Inside djangocms

RESTART THE SERVER: SHE WORKS!

Hopefully this can be helpful to somebody.

evildmp commented 9 years ago

@creimers thanks for that detailed information. Unfortunately - I still can't replicate the issue, but I will run through your steps one final time.

evildmp commented 9 years ago

Nope, I can't reproduce it. My pip freeze:

Django==1.6.8
Django-Select2==4.2.2
Pillow==2.6.1
South==1.0.1
Unidecode==0.04.16
aldryn-blog==0.4.5
aldryn-common==0.0.6
argparse==1.2.2
dj-database-url==0.3.0
django-appconf==0.6
django-appdata==0.1.3
django-classy-tags==0.5.1
django-cms==3.0.6
django-filer==0.9.8
django-hvad==0.5.2
django-mptt==0.6.1
django-polymorphic==0.6
django-reversion==1.8.5
django-sekizai==0.7
django-taggit==0.11.2
djangocms-admin-style==0.2.2
djangocms-column==1.5
djangocms-file==0.1
djangocms-flash==0.1
djangocms-googlemap==0.2
djangocms-inherit==0.1
djangocms-installer==0.5.4
djangocms-link==1.5
djangocms-picture==0.1
djangocms-style==1.4
djangocms-teaser==0.1
djangocms-text-ckeditor==2.4.1
djangocms-video==0.1
easy-thumbnails==2.2
html5lib==0.999
pytz==2014.9
six==1.8.0
wsgiref==0.1.2

If you're able to join us on #django-cms on irc.freenode.net we might be able to look further into this mystery.

antonpirker commented 9 years ago

Hello! I have the same problem but i noticed something. If I only have one language installed "de" than the error does not occur, if I have multiple languages, then I get the error.

Maybe this hint helps solving this problem!