Re: tutorial 2 admin site problem

2012-01-27 Thread Alexandru Moldovan
Did you declared a super user when you've created the database for the first time from you app? On Wed, Jan 18, 2012 at 12:39 PM, Denis Darii wrote: > You can replace: > > url(r'^admin/', include(admin.site.urls)), >> > with: > > url(r'^/', include(admin.site.urls)), >> > in your *urls.py* if yo

Re: tutorial 2 admin site problem

2012-01-18 Thread Sandro Dutra
'Cause you only reproduce the steps and don't try to understand what's happening. In URLS file you'll see the administration is pointed to '^admin/', so you'll acess the administration via www.yoursite.com/admin, in your case, running on localhost and port 8000 localhost:8000/admin, it's obvious yo

Re: tutorial 2 admin site problem

2012-01-18 Thread Denis Darii
You can replace: url(r'^admin/', include(admin.site.urls)), > with: url(r'^/', include(admin.site.urls)), > in your *urls.py* if you really want to have the admin at /. But are you aware of what this implies? On Wed, Jan 18, 2012 at 12:31 PM, Krondaj wrote: > Hi, > > I have just started tutori

tutorial 2 admin site problem

2012-01-18 Thread Krondaj
Hi, I have just started tutorial part 2 and in part 2.4.1. I have added django.contrib.admin to the INTALLED_APPS part of mysettings.py I syncd the db I uncommented the requierd three lines from urls.py in mysite folder I ran the runserver, and go to 127.0.0.1:8000, using chromium This is what

Re: admin site problem

2008-11-18 Thread Vicky
On Nov 17, 8:35 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Nov 17, 12:41 pm, Vicky <[EMAIL PROTECTED]> wrote: > > > I found the problem.. I used : > > >                             def __unicode__(self): > > > function in my model. so it a can return only sting values. So if i > > need t

Re: admin site problem

2008-11-17 Thread Daniel Roseman
On Nov 17, 12:41 pm, Vicky <[EMAIL PROTECTED]> wrote: > I found the problem.. I used : > >                             def __unicode__(self): > > function in my model. so it a can return only sting values. So if i > need to return a column of type integer or contains a foreign key how > should i d

Re: admin site problem

2008-11-17 Thread Kip Parker
You need to turn it into a string, this will do it: def __unicode(self): return '%s' % self.integer_column On Nov 17, 12:41 pm, Vicky <[EMAIL PROTECTED]> wrote: > I found the problem.. I used : > >                             def __unicode__(self): > > function in my model. so it a can retur

Re: admin site problem

2008-11-17 Thread Vicky
I found the problem.. I used : def __unicode__(self): function in my model. so it a can return only sting values. So if i need to return a column of type integer or contains a foreign key how should i do it?? On Nov 17, 4:28 pm, Lars Stavholm <[EMAIL PROTECTED]> w

Re: admin site problem

2008-11-17 Thread Lars Stavholm
Vicky wrote: > I tried to add some values to my table from admin site. Table has 3 > columns one of integer type and other two of string type. When i tried > to save my entries it giving an error as: > > "coercing to Unicode: need string or buffer, int found" > > How to solve it? T

admin site problem

2008-11-17 Thread Vicky
I tried to add some values to my table from admin site. Table has 3 columns one of integer type and other two of string type. When i tried to save my entries it giving an error as: "coercing to Unicode: need string or buffer, int found" How to solve it? --~--~-~--~-