hovel / pybbm

Django forum solution. Tested, documented, shipped with example project.
BSD 2-Clause "Simplified" License
225 stars 151 forks source link

Issue in url #144

Open kartikdanidhariya opened 9 years ago

kartikdanidhariya commented 9 years ago

repeat language prefix many times so give invalid URL error i am to use pybbm in django-cms my django-cms version in 2.4.3 Django version is 1.5.1, django-hvad==0.3 for multilingual also use django multilingual english and french language prefix are en,fr But after configure pybbm , language prefix is en-us an repeated many times.

like http://127.0.0.1:8000/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/en-us/admin/

it give error "The page isn't redirecting properly"

Also registration and login link also not work i installed django-registration ==1.0 it display "page not found error" in that also same URL problem.

Most important when i open admin in french language so it shows "Page not found error"

so what reason behind that, Pls help, Thanks in advance!!!

GeyseR commented 9 years ago

Hi Are you sure that problem in pybbm app and not in project setup or configuration? What happening when you remove pybbm from project (installed_apps, middleware, etc)?

kartikdanidhariya commented 9 years ago

After removing pybbm from project and middleware everything is fine, problem occurs only when i add pybbm in install app and middleware .

GeyseR commented 9 years ago

One place where pybbm can affect other pages on site - middleware. Can you try to exclude only middleware from your MIDDLEWARE_CLASSES, and leave pybbm installed?

kartikdanidhariya commented 9 years ago

After remove from MIDDLEWARE it works , thank you so much for reply!!! but emoji not insert properly in message box see in image theme also not proper, emoji

GeyseR commented 9 years ago

Can you post there your project's language specific settings? It will help to fix problem with middleware

GeyseR commented 9 years ago

You can check https://github.com/hovel/pybbm_org repository with simplest pybbm setup

kartikdanidhariya commented 9 years ago

my language specific settings is, LANGUAGECODE = 'en-us' LANGUAGES = [ ('en', ('English')), ('fr', _('French')), ]

GeyseR commented 9 years ago

I can't reproduce your error on my local installation. Notice that without PybbMiddleware django won't respect user profile's language. Can you compare your settings with pybbm.org settings and file distinction there? I'm interesting to fix your problem in pybbm core

kartikdanidhariya commented 9 years ago

i compare all settings are same , now there are two issue 1)emoji not insert properly in message text boxes i am describe that in previous post with image 2)Second issue is after edit image in profile defaule avatar image is not change so how can i solve these problems.