DjangoBB

Django based forum engine

  • You are not logged in.

#1 July 19, 2011 15:28:05

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

Installation Tutorial

python-openid installed?

Offline

#2 July 19, 2011 17:46:02

Jony
From: Ukraine / Cherkasy
Registered: 2011-07-18
Posts: 4
Reputation: +  0  -
Profile   Send e-mail  

Installation Tutorial

nop, it requires some specific connection, but my network not allowing it.
I'v tried to disable it's module in setting.py by commenting it, that's no enough?

Offline

#3 July 19, 2011 20:43:43

Jony
From: Ukraine / Cherkasy
Registered: 2011-07-18
Posts: 4
Reputation: +  0  -
Profile   Send e-mail  

Installation Tutorial

ok, now on my personal server with all installed prerq. I get this:

/var/www/djangobb$ ./manage.py syncdb
Traceback (most recent call last):
File “./manage.py”, line 11, in <module>
execute_manager(settings)
File “/usr/lib/pymodules/python2.6/django/core/management/__init__.py”, line 436, in execute_manager
setup_environ(settings_mod)
File “/usr/lib/pymodules/python2.6/django/core/management/__init__.py”, line 419, in setup_environ
project_module = import_module(project_name)
File “/usr/lib/pymodules/python2.6/django/utils/importlib.py”, line 35, in import_module
__import__(name)
ImportError: No module named djangobb

Offline

#4 July 20, 2011 23:49:50

findhorn
Registered: 2011-06-26
Posts: 14
Reputation: +  0  -
Profile   Send e-mail  

Installation Tutorial

Jony
ImportError: No module named djangobb

I noticed in your previous post that you were using Python2.7 but in the post above 2.6. Probably you have Django installed in one Python but Djangobb in the other.

I just installed Djongobb using a virtualenv as described by slav0nic - works beautifully! Everything is self-contained and doesn't interfere with other Django installs.

Offline

#5 July 23, 2011 01:50:43

Jony
From: Ukraine / Cherkasy
Registered: 2011-07-18
Posts: 4
Reputation: +  0  -
Profile   Send e-mail  

Installation Tutorial

well that was 2 different servers.
on work I have 2.7, and at home 2.6…
problem remains

Offline

#6 July 29, 2011 14:59:52

findhorn
Registered: 2011-06-26
Posts: 14
Reputation: +  0  -
Profile   Send e-mail  

Installation Tutorial

Jony
problem remains

It is probably some Python path problems or packages not being installed in the expected place. If you just want to test Djangobb try it inside a virtaulenv - it really is easy. Here is a quick copy'n'paste guide (comments prefixed by #):

  1. mkdir ~/djangobb
    cd ~/djangobb

    mkdir venv
    cd venv
  • # We will need the package requirements later.
    # Requirements files are in the extras/ directory,
    # so, as a matter of convenience I copied them up one directory
    cd extras
    cp requirements.txt optional-requirements.txt dev-requirements.txt ../
    cd ..
  • # activate the virtualenv
    virtualenv –no-site-packages .
    source bin/activate
    # Your command prompt should now look something like this
    (venv)user@mylaptop:~/djangobb/venv$
  • # Install the requirements mentioned earlier
    pip install -r requirements.txt
    pip install -r optional-requirements.txt
    pip install -r dev-requirements.txt
  • # Edit djangobb/settings.py to suit your requirements
    # For simplicity I used
    sqlite3 database located at ~/djangobb/venv/djangobb.sqlite
    sqlite3 should be specified in the form django.db.backends.sqlite3
    admin = admin, password = password for superuser
  • # Sync the new database
    cd djangobb
    manage.py syncdb –all
  • # Populate the database
    manage.py migrate djangobb_forum –fake
  • # Run the dev server
    # I run this on my dev server and access from my laptop
    # hence the 0.0.0.0
    manage.py runserver 0.0.0.0:9080
    iceweasel http://myserver:9080/forum/ [myserver]

Don't use this for a production server - this is only for testing.
I often use this method for testing Django packages as each one can operate in it's own environment without breaking any others. If something goes wrong you can, as a last resort, remove the directory and start again.

Edited findhorn (July 29, 2011 18:03:31)

Offline

#7 Aug. 17, 2011 17:26:15

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

Installation Tutorial

now i splitted (not fully ) djangobb to 2 projects: app and basic project

https://bitbucket.org/slav0nic/djangobb_project [bitbucket.org]

also set as subrepo projects on main djangobb repo

Offline

#8 Aug. 17, 2011 17:26:33

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

Installation Tutorial

also added basic setup.py

Offline

#9 Aug. 18, 2011 12:32:22

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

Installation Tutorial

Offline

#10 Aug. 18, 2011 19:51:54

findhorn
Registered: 2011-06-26
Posts: 14
Reputation: +  0  -
Profile   Send e-mail  

Installation Tutorial

slav0nic
http://djangobb.org/wiki/QuickInstall [djangobb.org]

Hello slav0nic,

just trying out the new installation method and noticed some typos:

source .env/bin/activate
Is that correct?

# ./setup.py develop will be ok too if your planing upgrade dajngobb from hg
should be
# ./setup.py develop will be ok too if you are planning to upgrade djangobb from hg

pip install requirements.txt

pip install ../requirements.txt (duplicate)
should be
pip install -r ../requirements.txt

I noticed that the static/forum/attachments directory doesn't get created automatically.

I also noticed (and I don't know why yet) that the user list (/forum/users/) only displays the superuser and user search doesn't work.

Regards,
findhorn.


Edited findhorn (Aug. 18, 2011 20:09:00)

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version