I actually just got python and django running on my Windows XP box no problem. I kept notes of my setup, here they are, hopefully you find them helpful.
1. Install Python 2.4 http://www.python.org/ftp/python/2.4.3/python-2.4.3.msi I put it in the default location of c:\Python24. If you don't do that, you will have to adjust for that accordingly. 2. Add Python to your path. In windows to do this you right-click on My Computer and choose "Properties", then go to the Advanced Tab, then press the "Environment Variables" button. Add "C:\Python24;" to the front of the PATH entry. Then, start a new command window and verify that these command works: C:\>python -V Python 2.4.3 3. Install the Python bindings for sqlite http://initd.org/pub/software/pysqlite/releases/2.3/2.3.2/pysqlite-2.3.2.win32-py2.4.exe Sqlite, if you don't know, is a database that doesn't require a server daemon. The whole database is stored in a file. Apparently you don't even have to install the sqlite program or library (http://www.sqlite.org) to be able to use this library. You just install pysqlite and it knows how to create and query your database. Very nice for an easy development setup. 4. Install django Download this: http://www.djangoproject.com/download/0.95/tarball/ You should be able to open it with WinZip. Extract it to anywhere on your hard drive, even c:\temp would work. Then, go to the directory where you unzipped it and run this: python setup.py install 5. Create your project Go to a directory where you'd like to store your code, such as c:\projects, and run this: django-admin.py startproject mysite 6. Start the Django development web server Now there will be a directory called C:\projects\mysite. Go into that directory and run: python manage.py runserver Go to http://localhost:8000 in your web browser and verify that you get the Django "It Worked!" page. 7. Add the admin site You can stop the server by pressing ctrl+break. Edit the file settings.py: Set the DB engine and name: (Edit lines 12 & 13) DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = 'C:\projects\mysite\mysite.db' And add the admin app to the list of INSTALLED_APPS: (Insert line 63) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', ) Interesting Python weirdness here, the above will *not* result in a syntax error. The trailing comma on after the last element of the tuple is ok, and in fact would be required if there was only one INSTALLED_APPS - http://diveintopython.org/native_data_types/formatting_strings.html#odbchelper.stringformatting.2.3 and last but not least, uncomment line 8 of the urls.py to allow access to the admin site: # Uncomment this for admin: (r'^admin/', include('django.contrib.admin.urls')), 8. Create the database Run this command to create your database: python manage.py syncdb It will prompt you to create an admin user. Remember what values you enter for username and password 9. start django again Go to http://localhost:8000 Remember that username/password from the last step? You need that now. By now you should have it all working, so you can follow along with the Django tutorial. http://www.djangoproject.com/documentation/tutorial1/ You should also read up on the Python language, and here is a free book that I have found helpful: http://diveintopython.org/ On 9/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am a total Noob when It comes to Django and was wondering if there is > any way that I can get it running on my XP machine with relative ease > or if its better for me to install UBUNTU or some other Linux flav? > > I am looking for a CMS to learn and I have decided that Django is the > one because it offers the most customisable framework that I have yet > come across. > > Let me know if Im barking up the wrong tree. I cant code either... > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---