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
'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
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
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
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
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
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
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
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
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?
--~--~-~--~-
10 matches
Mail list logo