分类:
2008-11-09 16:01:37
This guide assumes you’ve already installed Eclipse, PyDev, Python and Django. It also assumes you’re using Eclipse 3.2, PyDev 1.2.4, Django 0.95 and Python 2.4.
django-admin.py startproject mysite
src
directory in it, and move the django generated source files hereProperties->PyDev – PYTHONPATH
, and add your src folder to the project source settingsThat
should be it. I still get red underlines on the Django source imports
even thought PyDev seems to know about them – to test this is working
properly, open up your urls.py
file and ctrl
click on the patterns
call – it should take you to defaults.py
.
Now you can go ahead and create your database & super user.
Open up manage.py
and hit F9
. This should print out the usage information for the server. To actually start the server, select Run->Run…
, and in the Arguments
tab for manage.py
enter runserver—noreload
. The noreload
argument gives you output.
Thanks go to PyDev creator Fabio Zadrozny for his guide which got me going.