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
2010-03-21 12:38:06
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
2010-03-24 15:00:39
See my edited original reply below - let me know if that helps!
Dave Everitt
2010-04-15 17:38:23