DjangoBB

Django based forum engine

  • You are not logged in.

#1 Dec. 5, 2016 17:29:42

AlexSmith
Registered: 2016-12-04
Posts: 1
Reputation: +  0  -
Profile   Send e-mail  

Installation Tutorial

Пытаюсь развернуть сие чудо как апку в пустой проект для дальнейшей интеграции со своим, постоянно упираюсь в:
python manage.py runserver или при python manage.py migrate djangobb_forum –fake
Performing system checks…

Unhandled exception in thread started by <function wrapper at 0x7fd28c2386e0>
Traceback (most recent call last):
File “/home/kuzia/Env/djangobb/local/lib/python2.7/site-packages/django/utils/autoreload.py”, line 226, in wrapper
fn(*args, **kwargs)
File “/home/kuzia/Env/djangobb/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py”, line 116, in inner_run
self.check(display_num_errors=True)
File “/home/kuzia/Env/djangobb/local/lib/python2.7/site-packages/django/core/management/base.py”, line 426, in check
include_deployment_checks=include_deployment_checks,
File “/home/kuzia/Env/djangobb/local/lib/python2.7/site-packages/django/core/checks/registry.py”, line 75, in run_checks
new_errors = check(app_configs=app_configs)
File “/home/kuzia/Env/djangobb/local/lib/python2.7/site-packages/django/core/checks/urls.py”, line 10, in check_url_config
return check_resolver(resolver)
File “/home/kuzia/Env/djangobb/local/lib/python2.7/site-packages/django/core/checks/urls.py”, line 19, in check_resolver
for pattern in resolver.url_patterns:
File “/home/kuzia/Env/djangobb/local/lib/python2.7/site-packages/django/utils/functional.py”, line 33, in __get__
res = instance.__dict__ = self.func(instance)
File “/home/kuzia/Env/djangobb/local/lib/python2.7/site-packages/django/core/urlresolvers.py”, line 417, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”, self.urlconf_module)
File “/home/kuzia/Env/djangobb/local/lib/python2.7/site-packages/django/utils/functional.py”, line 33, in __get__
res = instance.__dict__ = self.func(instance)
File “/home/kuzia/Env/djangobb/local/lib/python2.7/site-packages/django/core/urlresolvers.py”, line 410, in urlconf_module
return import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/__init__.py”, line 37, in import_module
__import__(name)
ImportError: No module named urls

Полная история того что я творю:
mkdir djangobb-test
cd djangobb-test
mkvirtualenv djangobb
pip install Django==1.8 mysql-python whoosh django-nocaptcha-recaptcha
django-admin startproject sample
hg clone https://bitbucket.org/slav0nic/djangobb#stable djangobb
cd sample
wget https://bitbucket.org/slav0nic/djangobb/get/stable.tar.gz
tar zxvf stable.tar.gz
cd slav0nic-djangobb-5ea37996e34e
python setup.py develop
cd ..
python manage.py runserver
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
cd ..
mv sample/slav0nic-djangobb-5ea37996e34e/djangobb_forum sample/
rm -r sample/slav0nic-djangobb-5ea37996e34e
rm -r sample/stable.tar.gz
wget https://bitbucket.org/slav0nic/djangobb_project/get/tip.tar.gz
tar zxvf tip.tar.gz
cd slav0nic-djangobb_project-8087a7e42207
pip install -r requirements.txt
cd ..
mv slav0nic-djangobb_project-8087a7e42207/basic_project/* sample/sample
cd sample
python manage.py makemigrations

ЧЯДНТ?

Edited AlexSmith (Dec. 5, 2016 17:33:43)

Offline

#2 Dec. 14, 2016 22:01:23

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

Installation Tutorial

после `mv sample/slav0nic-djangobb-5ea37996e34e/djangobb_forum sample/` удаляется ccылка на сам форум, который выше поставили через setup.py develop

Edited slav0nic (Dec. 14, 2016 22:01:35)

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version