Categorized: Django
Installing Django Basic Blog
Somewhere inside a folder that’s on your PYTHONPATH:
svn checkout http://django-basic-apps.googlecode.com/svn/trunk/ basic
Under INSTALLED_APPS in settings.py.:
'tagging',
'basic.blog',
'basic.inlines',
'django.contrib.comments',
'django.contrib.markup',
Be sure you have django-tagging installed.
In your main urls.py:
(r'^blog/', include('basic.blog.urls')),
(r'^comments/', include('django.contrib.comments.urls')),
Now if you want, you can override the app’s own templates by copying them into your own templates/blog folder.
Comments
Works great! thanks..
You re forgot to mension that project moved to github Although, found the idea of relationships app very useful for me.
Hi,
I did the following:
“django-admin.py startproject blog”
Then did exactly step by step what you told (also installed django-tagging).
After this I wanted to do a syncdb, I got this error, could you help me out?
Regards, Laszlo
Traceback (most recent call last): File “manage.py”, line 11, in execute_manager(settings) File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\c ore\management\__init__.py”, line 362, in execute_manager utility.execute() File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\c ore\management\__init__.py”, line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\c ore\management\base.py”, line 195, in run_from_argv self.execute(args, *options.__dict__) File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\c ore\management\base.py”, line 221, in execute self.validate() File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\c ore\management\base.py”, line 249, in validate num_errors = get_validation_errors(s, app) File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\c ore\management\validation.py”, line 28, in get_validation_errors for (app_name, error) in get_app_errors().items(): File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\d b\models\loading.py”, line 131, in get_app_errors self._populate() File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\d b\models\loading.py”, line 58, in populate self.load_app(app_name, True) File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\d b\models\loading.py”, line 74, in load_app models = import_module(‘.models’, app_name) File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\u tils\importlib.py”, line 35, in import_module __import__(name) File “E:\django\repo\blog\basic\blog\models.py”, line 11, in class Category(models.Model): File “E:\django\repo\blog\basic\blog\models.py”, line 14, in Category slug = models.SlugField(_(’slug’), prepopulate_from=(‘title’,), uniqu e=True) File “E:\Kft\django\Python26\Lib\site-packages\django-1.1.1-py2.6.egg\django\d b\models\fields\__init__.py”, line 795, in __init_ super(SlugField, self).__init__(args, *kwargs) TypeError: __init__() got an unexpected keyword argument ‘prepopulate_from’
@Laszlo What version of Django are you using?
Python26, is it possible that something is missing from my installation?
That’s Python, what version of Django?
What do you think about that?