Fresh installation - what are the right ingredients?

4 views
Skip to first unread message

WooYek

unread,
Dec 4, 2008, 12:53:53 PM12/4/08
to Django Basic Apps
What is the right combination of components needed to get basic apps
to work?
I have tried unsuccessfully with trunk versions of django, django-
basic-apps and django-tagging.

All I get is:

>manage.py runserver
Validating models...
Unhandled exception in thread started by <function inner_run at
0x02894D70>
Traceback (most recent call last):
File "D:\usr\py\Python25\lib\site-packages\django\core\management
\commands\runserver.py", line 48, in inner_run
self.validate(display_num_errors=True)
File "D:\usr\py\Python25\lib\site-packages\django\core\management
\base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
File "D:\usr\py\Python25\lib\site-packages\django\core\management
\validation.py", line 28, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "D:\usr\py\Python25\lib\site-packages\django\db\models
\loading.py", line 128, in get_app_errors
self._populate()
File "D:\usr\py\Python25\lib\site-packages\django\db\models
\loading.py", line 57, in _populate
self.load_app(app_name, True)
File "D:\usr\py\Python25\lib\site-packages\django\db\models
\loading.py", line 72, in load_app
mod = __import__(app_name, {}, {}, ['models'])
File "D:\projekty\wooyek\skonieczny.pl\test\blog\basic\blog
\models.py", line 11, in <module>
class Category(models.Model):
File "D:\projekty\wooyek\skonieczny.pl\test\blog\basic\blog
\models.py", line 14, in Category
slug = models.SlugField(_('slug'), prepopulate_from=
('title',), unique=True)
File "D:\usr\py\Python25\lib\site-packages\django\db\models\fields
\__init__.py", line 768, in __init__
super(SlugField, self).__init__(*args, **kwargs)

Myles Braithwaite

unread,
Dec 4, 2008, 2:41:58 PM12/4/08
to django-b...@googlegroups.com
What version of Django Basic Apps are you running? The error below is with a incompatibility between of Django 0.9x and Django 1.x.

---
Myles Braithwaite

Please consider the trees before print this email.

WooYek

unread,
Dec 5, 2008, 6:18:04 AM12/5/08
to Django Basic Apps
On 4 Gru, 20:41, Myles Braithwaite <m...@mylesbraithwaite.com> wrote:
> What version of Django Basic Apps are you running? The error below is  
> with a incompatibility between of Django 0.9x and Django 1.x.

Sorry, Django Basic Apps was not trunk version.

Corrected the mistake, now I have:
d:\usr\py\Python25\Lib\site-packages\basic\ -- checkout trunk version
d:\usr\py\Python25\Lib\site-packages\django\ -- setup install, from a
trunk version
d:\usr\py\Python25\Lib\site-packages\tagging\ -- checkout trunk
version
d:\usr\py\Python25\Lib\site-packages\BeautifulSoup.py -- Beautiful
Soup version 3.0.7a

I have created an quickstart test project (http://code.google.com/p/
django-basic-apps-quickstart/source/browse/trunk/quickstart/?r=2)
When I try to add a post to through the admin site
http://127.0.0.1:8000/admin/blog/post/add/ , I get:

In template d:\usr\py\python25\lib\site-packages\basic\blog\templates
\admin\blog\post\change_form.html, error at line 4
'inlines' is not a valid tag library: Could not load template library
from django.templatetags.inlines, No module named inlines

What am I missing?

Myles Braithwaite

unread,
Dec 5, 2008, 8:25:07 AM12/5/08
to django-b...@googlegroups.com
You have to add 'basic.inlines' to your installed apps.

Sent from my mobile device.

WooYek

unread,
Dec 5, 2008, 9:22:47 AM12/5/08
to Django Basic Apps
On 5 Gru, 14:25, Myles Braithwaite <m...@mylesbraithwaite.com> wrote:
> You have to add 'basic.inlines' to your installed apps.
No... is was looking for "inlines" in django, not in the django basic
apps :(

Thx, the tip got me going.

To get the blog part is up and runnig, I had to resolve an issue with
django. Apparently setup.py install didnt do a goot job refreshing
django version in [...]\Python25\Lib\site-packages\django, I had to
checkout http://code.djangoproject.com/svn/django/trunk/django there
to get rid of some django.contrib.comments version hickups.

Thx, again for the help.
Reply all
Reply to author
Forward
0 new messages