Re: urlpattern problem !

2010-08-02 Thread yalda nasirian
tanx friends for your quickly and helpfull responds . On Mon, Aug 2, 2010 at 3:55 PM, Sameer Rahmani wrote: > oh my God you'r reading the old book . that book you was reading is > for legacy version of django > > > you should try this one http://www.djangobook.com/en/2.0/ >

Re: urlpattern problem !

2010-08-02 Thread Sameer Rahmani
oh my God you'r reading the old book . that book you was reading is for legacy version of django you should try this one http://www.djangobook.com/en/2.0/ admin classes are different in django 1.x as jirka said too you should build an admin.py for each app. it is good to try #django and

Re: urlpattern problem !

2010-08-02 Thread yalda nasirian
thank you so much jirka On Mon, Aug 2, 2010 at 3:50 PM, yalda nasirian wrote: > dear sameer as you see in http://www.djangobook.com/en/1.0/chapter06/ . we > Still have not made but we add > > *class Admin:* > *pass* > to models.py ,tanx > > models.py > > >

Re: urlpattern problem !

2010-08-02 Thread yalda nasirian
dear sameer as you see in http://www.djangobook.com/en/1.0/chapter06/ . we Still have not made but we add *class Admin:* *pass* to models.py ,tanx models.py from django.db import models class Publisher(models.Model): name = models.CharField(max_length=30) address =

Re: urlpattern problem !

2010-08-02 Thread Jirka Vejrazka
> but when i login in my admin page i cant see all of my objects( like > Publisher, Author, ...) > http://www.djangobook.com/en/1.0/chapter06/ > i just have groups , users , sites . > can you help me Hi, the Django Book 1.0 is slightly outdated, the admin works slightly differently with

Re: urlpattern problem !

2010-08-02 Thread Sameer Rahmani
hmmm there is no problem with your urls.py the problem is in your admin.py , post one of your admin.py -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

urlpattern problem !

2010-08-02 Thread yalda.nasirian
i have an another problem my urlpattern is : from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^admin/', include('django.contrib.admin.urls')), ) even i try with this code again from django.conf.urls.defaults import * # Uncomment the next two lines to enable the