Re: admin error

2014-08-12 Thread ngangsia akumbo
http://bluepearlhotel.com/admin/ On Tuesday, August 12, 2014 2:26:21 PM UTC+1, ngangsia akumbo wrote: > > i am running my website on my local server apache on my machin when i type > > www.bluepearlhotel.com i get this error > > TemplateDoesNotExist at /admin/ > > admin/login.html > > Request Met

Re: admin error, cannot edit fields or delete records, url refers to incorrect primary key

2012-05-19 Thread Malcolm MacKinnon
Problem solved. I had a double defined as my primary key in the mysql db. On Fri, May 18, 2012 at 10:49 PM, Mac wrote: > I've set up a 'Reps' model in the admin. I can add records > successfully, but if I try to change a record or field, I get a 404 > error. When I try to delete a record, I get

Re: Admin error

2012-02-15 Thread Stanwin Siow
I did. When admin.autodiscover() was uncommented out, It gives the syntax error when my admin.py was only as such: from r2.models import Keyword from django.contrib import admin admin.site.register(Keyword) Best Regards, Stanwin Siow On Feb 15, 2012, at 5:20 PM, Ervin Hegedüs wrote: > he

Re: Admin error

2012-02-15 Thread Ervin Hegedüs
hello, On Wed, Feb 15, 2012 at 04:48:18PM +0800, Stanwin Siow wrote: > ok i figured where that error was coming from. > > It was from the method: admin.autodiscover() > > What does this method do? in Django doc: https://docs.djangoproject.com/en/dev/ref/contrib/admin/ "Above we used admin.aut

Re: Admin error

2012-02-15 Thread Mike Dewhirst
On 15/02/2012 7:48pm, Stanwin Siow wrote: ok i figured where that error was coming from. It was from the method: admin.autodiscover() Well done!!! :) What does this method do? http://www.google.com.au/webhp?rlz=1C1GPEA_en___AU313&sourceid=chrome-instant&ix=sea&ie=UTF-8&ion=1#hl=en&rlz=1C1

Re: Admin error

2012-02-15 Thread Stanwin Siow
ok i figured where that error was coming from. It was from the method: admin.autodiscover() What does this method do? Best Regards, Stanwin Siow On Feb 15, 2012, at 3:12 PM, Mike Dewhirst wrote: > On 15/02/2012 5:41pm, Mike Dewhirst wrote: >>> >>> invalid syntax (admin.py, line 1) > > You

Re: Admin error

2012-02-14 Thread Mike Dewhirst
On 15/02/2012 5:41pm, Mike Dewhirst wrote: invalid syntax (admin.py, line 1) Your original error indicated there is an admin.py but with an error on line 1 or a missing admin.py which you have confirmed. That is the problem. To get your models to appear in the admin app you need an admin.p

Re: Admin error

2012-02-14 Thread Stanwin Siow
it is to no avail think that's only for modifying the admin. Best Regards, Stanwin Siow On Feb 15, 2012, at 2:41 PM, Mike Dewhirst wrote: > On 15/02/2012 5:10pm, Stanwin Siow wrote: >> Yes i have gone through the tutorial. >> >> And i've gotten my website up and running. >> >> But when i w

Re: Admin error

2012-02-14 Thread Mike Dewhirst
On 15/02/2012 5:10pm, Stanwin Siow wrote: Yes i have gone through the tutorial. And i've gotten my website up and running. But when i want to enable admin it gives me that error. Try creating a file called admin.py in the same directory as models.py and put this in it ... - - - - - - - fro

Re: Admin error

2012-02-14 Thread Stanwin Siow
Yes i have gone through the tutorial. And i've gotten my website up and running. But when i want to enable admin it gives me that error. Here is my urls.py: from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib impo

Re: Admin error

2012-02-14 Thread Mike Dewhirst
On 15/02/2012 4:59pm, Stanwin Siow wrote: it's supposed to be django's admin page. Not quite. Can you give me an overview of what you have done with Django so far? For example, have you gone through the tutorial? I don't have an admin.py in my project folders Best Regards, Stanwin Siow

Re: Admin error

2012-02-14 Thread Stanwin Siow
it's supposed to be django's admin page. I don't have an admin.py in my project folders Best Regards, Stanwin Siow On Feb 15, 2012, at 1:46 PM, Mike Dewhirst wrote: > On 15/02/2012 4:39pm, Stanwin Siow wrote: >> Hi there, >> >> i'm getting this error when trying to get the default admin pa

Re: Admin error

2012-02-14 Thread Mike Dewhirst
On 15/02/2012 4:39pm, Stanwin Siow wrote: Hi there, i'm getting this error when trying to get the default admin page up. invalid syntax (admin.py, line 1) Could you post the contents of the offending file (admin.py) here? Any ideas where to rectify this? Thanks in advance Best Regards

Re: Admin error with large charField

2010-06-14 Thread Jeff Green
I was able to trace the cause of the error, though not sure if this was the cause with other people. I loaded my data from an excel spreadsheet which copied a table from microsoft word. It seems that the copy from word puts some special characters in the database. I was able to manually type in t

Re: Admin error with large charField

2010-06-14 Thread Karen Tracey
On Mon, Jun 14, 2010 at 11:39 AM, Jeff Green wrote: > In one of my models, I have a CharField with Max_length of 2000 > characters. > When I try to delete the record via admin, I get an error value too > long for type character varying(200). > > It seems that the issue is because it is trying to

Re: admin error didn't clear until I reloaded polls detail view

2008-09-25 Thread Daniel Roseman
On Sep 25, 5:36 pm, arnold4321 <[EMAIL PROTECTED]> wrote: > Hi, > > I'm just getting started with Django.  I'm working through the > tutorial on setting up my first app.  I ran into something that > strikes me as odd.  I guess I must have had some mistake in my polls/ > views.py file, because I wa

Re: Admin error trying to run Django 91& 97 on same hostname w/different ports

2007-10-25 Thread [EMAIL PROTECTED]
On Oct 24, 11:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm running Django 91 and 97 on my development server with different > port numbers and I'm getting admin errors when I log in to the 91 > sites. If I hit refresh enough times, eventually it works. In case anyone is having th

Re: Admin Error

2007-06-09 Thread Christopher
I got it, no worries :) On Jun 9, 5:30 pm, Christopher <[EMAIL PROTECTED]> wrote: > looks like it's not when i am saving but rather trying to list the > one's I have saved. > > On Jun 9, 5:26 pm, Christopher <[EMAIL PROTECTED]> wrote: > > > Hi, I am using Django SVN version updated today. I have

Re: Admin Error

2007-06-09 Thread Christopher
looks like it's not when i am saving but rather trying to list the one's I have saved. On Jun 9, 5:26 pm, Christopher <[EMAIL PROTECTED]> wrote: > Hi, I am using Django SVN version updated today. I have made a model > and done the Admin code so I can see it in the Admin section of my > site and