First time here? Check out the FAQ!
2

askbot as part of a larger website
 

I'm testing the water on a website which uses Django but to which I wanted to add a forum. As I've only been testing the water and don't have much content it seemed easier to setup an askbot project and add my simple templates and views to my askbot project. That seems difficult as Askbot's settings.py states that templates aren't used, and you have to use the skins system. That at first sight means that all templates are centralised in one location. I was going to be working on a number of apps and keeping them logically separate would seem like a tried and tested paradigm.

Askbot seems geared to a single purpose website. I'm already using the Django user authentication system to gain access to various website features. If I have two separate domains then I have duplicated logins one to a django site with views, templates and apps and one solely for the askbot forum.

Is this really how it is or have I missed something. I'd appreciate any pointers.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
jwhitomre's avatar
21
jwhitomre
asked 12 years ago
todofixthis's avatar
1.3k
todofixthis
updated 12 years ago

Comments

see more comments

1 Answer

1

Should not be a problem unless your project has clashing template names with askbot. In your project you can configure a number of template loaders, and you should still be able to use other templating systems.

In fact askbot cooperates well with the django admin site which uses standard django templates.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

Hmmm that might well be the case but when I try to use my original templates in the project I'm getting an error in django:/usr/lib/python2.7/site-packages/django/template/loader_tags.py in render, line 116 'Template' object has no attribute 'nodelist'

jwhitomre's avatar jwhitomre (12 years ago)

Hmmm that might well be the case but when I try to use my original templates in the project I'm getting an error in django:

jwhitomre's avatar jwhitomre (12 years ago)
see more comments