DjangoBB

Django based forum engine

  • You are not logged in.
  • Root
  • » Bugs
  • » djangobb and satchmo parallel breaks MEDIA_ROOT location [RSS Feed]

#1 Dec. 21, 2010 21:45:23

scrapper
Registered: 2010-12-20
Posts: 44
Reputation: +  1  -
Profile   Send e-mail  

djangobb and satchmo parallel breaks MEDIA_ROOT location

hello djangobb friend,

i am running Djangobb parallel to Satchmo.
if i do run Satchmo alone, MEDIA_ROOT = os.path.join(DIRNAME, 'static/') is just fine. But if i do install Djangobb my Satchmo App is always trying to look for static e.g. CSS-files in /partofurl/css/style.css
but its located in /static/css/style.css.

how does Djangobb change my MEDIA_ROOT for Satchmo?
If i use Djangobb forum it looks up static content correctly at /static/forum/...
If i use Satchmo stand alone its looking up at /static/css/style.css etc. as well. perfectly!
Only when i do use Djangobb parallel to Satchmo, Satchmo is not finding its static files.

MEDIA_ROOT in settings.py is correctly set to MEDIA_ROOT = os.path.join(DIRNAME, 'static/')
i have no idea what could cause that annoying problem.
I have investigated already 2 days in that issue.

Appreciate your response
best greetings and thank you
scrapper

ps.: i have attached my settings.py file which at the end includes local_settings.py as well.

Attachments:
attachment settings.py (10.1 KB)

Offline

#2 Dec. 22, 2010 13:58:20

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

djangobb and satchmo parallel breaks MEDIA_ROOT location

hm, check MEDIA_URL variable at templates
you tested at dev server?

Edited slav0nic (Dec. 22, 2010 13:58:38)

Offline

#3 Dec. 22, 2010 14:01:39

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

djangobb and satchmo parallel breaks MEDIA_ROOT location

ah, you have two TEMPLATE_CONTEXT_PROCESSORS at config, merge them )
+if not hasattr(globals(), 'SECRET_KEY'): section not necessarily

Edited slav0nic (Dec. 22, 2010 14:03:49)

Offline

#4 Dec. 23, 2010 09:21:48

scrapper
Registered: 2010-12-20
Posts: 44
Reputation: +  1  -
Profile   Send e-mail  

djangobb and satchmo parallel breaks MEDIA_ROOT location

slav0nic
ah, you have two TEMPLATE_CONTEXT_PROCESSORS at config, merge them )
+if not hasattr(globals(), 'SECRET_KEY'): section not necessarily


That solved the problem: (merging the TEMPLATE_CONTEXT_PROCESSORS into one).
I was stuck on that problem for 4 days or more i guess. And now its working like a charm.

Thank you so much slav0nic!
best greetings
scrapper

Offline

#5 Oct. 4, 2018 11:35:08

XRumerTest
Registered: 2018-09-22
Posts: 131
Reputation: +  0  -
Profile   Send e-mail  

djangobb and satchmo parallel breaks MEDIA_ROOT location

Hello. And Bye.

Offline

  • Root
  • » Bugs
  • » djangobb and satchmo parallel breaks MEDIA_ROOT location[RSS Feed]

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version