views:

49

answers:

2

How can I set up Django in Window Xp and Ubuntu OS I finished the step for connection with Database and some problem with connect to admin.. I do it from reading ebook and do it..So there is any easy steps for me.. Please share all idea.

A: 

Have you seem Brett Hayden's notes on Practical Django Projects? It contains corrections to errors that crept into the 2nd edition (for Django 1.*) and fills in the missing information.

As for uncommenting the lines in urls.py to get Django admin (i.e. remove the hash symbol at the start: #), they're the ones that read:

from django.contrib import admin
admin.autodiscover()

and

(r'^admin/doc/', include('django.contrib.admindocs.urls')),

and

(r'^admin/', include(admin.site.urls)),

plus, in settings.py you need to add:

'django.contrib.admin',

to the list

INSTALLED_APPS

Finally, if you need it, Phil Gyford has put the finished code from the 2nd edition on Bitbucket.

Dave Everitt
A: 

Sorry about my unclear writing. I didnt import admin and uncomment in Url.py. At the ebook which I read show to uncomment . But I dont know which lines and how. Please tell me .Thank you. The name of ebook is Practical django project by James Bennett. (second edition)

ahkeno
See my edited original reply below - let me know if that helps!
Dave Everitt