Archive for December, 2007

Django Simplified

1. Download django trunk

2. Run:

#django_admin. py startproject projectname

# cd projectname

# python manage.py startapp appname

dont give too much though about project and app. At the the end of the they are just a python package

# Add the following lines in your projectname/url.conf for image files. Its required only for development.

(r’^resource/(?P<path>.*)$’, ‘django.views.static.serve’, {‘document_root’: ‘/home/aaaa/django/django-trunk/projectname/media/’}),
Dont use “media” as pattern here. It was already consumed by admin site.

Leave a Comment

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Comments (1)