I've tried to install django-lfs on window 7using the Quickstart but no luck. The problem is some process has failed but I don't want to spend my time fixing the problem (fix the buildbot, install git, mercurial) so I manually process by look at each dependency in the buildbot.cfg.
Note that I have TortoiseGIT, TortoiseHG installed in my machine and I simply donwload source code from github.
Get all dependencies
[buildout]
parts =
PIL
sqlite
django
svn_ext
svn_lfs
pagination
paypal
[PIL]
recipe = zc.recipe.egg:custom
egg = PIL
find-links = http://dist.repoze.org/
[sqlite]
recipe = zc.recipe.egg:custom
egg = pysqlite
find-links = http://dist.repoze.org/
[svn_lfs]
recipe = iw.recipe.subversion
urls =
http://django-lfs.googlecode.com/svn/lfs/trunk lfs
http://django-lfs.googlecode.com/svn/lfstheme/trunk lfstheme
[svn_ext]
recipe = iw.recipe.subversion
urls =
http://django-contact-form.googlecode.com/svn/trunk/contact_form contact_form
http://django-portlets.googlecode.com/svn/trunk/portlets portlets
http://django-lfs.googlecode.com/svn/addons/reviews/trunk reviews
http://django-tagging.googlecode.com/svn/trunk/tagging tagging
[pagination]
recipe = gocept.download
url = http://django-pagination.googlecode.com/files/django-pagination-1.0.5.tar.gz
md5sum = 7c5d5d017c83685065d864565089cc35
[paypal]
recipe=zerokspot.recipe.git
repository=git://github.com/mthornhill/django-paypal.git
rev=cc78e4b808a734fbe9043e35b297471a945d9ca2
[django]
recipe = djangorecipe
version = 1.0.2
eggs =
PIL
pysqlite
project = lfs_project
settings=settings
extra-paths =
${buildout:directory}/lfs_project
${pagination:location}
${svn_ext:location}
${svn_lfs:location}
${buildout:directory}/parts
urls = lfs_project/urls
From above script, you need to have following python package available,
PIL (if you don't have it)
PySQLite (If you use Python 2.4 or lower)
svn co http://django-lfs.googlecode.com/svn/lfs/trunk/
svn co http://django-lfs.googlecode.com/svn/lfstheme/trunk/
svn co http://django-lfs.googlecode.com/svn/addons/reviews/trunk/
svn co http://django-portlets.googlecode.com/svn/trunk/portlets/
svn co http://django-tagging.googlecode.com/svn/trunk/tagging
svn co http://django-pagination.googlecode.com/svn/trunk/
git://github.com/mthornhill/django-paypal.git
hg clone http://bitbucket.org/ubernostrum/django-contact-form/
Django, I use Django 1.1
Get example project
- svn co http://django-lfs.googlecode.com/svn/buildouts/quickstart/lfs_project/
Add static files
With default setup, lfs has symbolic of static location to media directory but this doesn't work on Window. I simply copy the source into the directory. Below are directory to be copied,
- lfs/static/ to media/lfs
- /lfstheme/static to medai/
Create the database
Go to your lfs_project and execute python manage.py syncdb. You probably see some error message about cannot import some module. If that is the case, go look at the url in buildbot.cfg and get the source and install it in your python path.
For my settings, I place the lfs-related application at the project directory.
Add fixtures
- python manage.py loaddata lfs/core/fixtures/lfs_initial.xml
You can load more data (lfs-shop, lfs-user).
Start and see your test server
Execute python manage.py runserver and open http://127.0.0.1:8000
Get the source
Get my source code here. Please note that some django applications is installed in my machine so that there is not include in my source.
Comments
# mike stephens Aug 27th, 2009
Thank you. Do you have tips for Apache mod_wsgi configuration since LFS doesn't seem to fall into the traditional Django directory structure install.
Thank you for your contribution.
# meledictas Aug 28th, 2009
@mike I don't think there is special thing for Apache configuration. All you need to do is make sure that you have all dependencies available.
If you want to customize the Python path, please see Multiple Python Library Management for Django
# james dykemann Sep 23rd, 2009
I agree with Mike. It seems LFS is very robust in the dev environment and lacks the adequate documentation particularly during the installation and configuration in a production environment. The instructions do not provide a clear implementation guidelines of all dependencies e.g. settings.py. However, I do appreciate the effort being made by the LFS developers making the source code available to community.
# common Texas holdem mistakes Jan 11th, 2010
Wow! i agree! i’ve been searching for so long for a site where i could find everything that i want, and i’ve just found it!! really, i’ve visited your blog, and it’s amazing, i will keep visiting