Re: django admin interface

2016-11-18 Thread Derek
Not a direct answer, but its much easier to use the in-built options to extend admin actions: https://docs.djangoproject.com/en/1.10/ref/contrib/admin/actions/ Otherwise you will probably need to extend/override the admin template to add the code&link for your button; e.g. see: http://stackoverf

Re: django admin interface - how to enable adding new entries to foreign key-linked dropdown menu?

2014-10-09 Thread Russell Keith-Magee
Hi Eliezer, The trick is to add a ModelAdmin for Exercise. The obvious consequence of this is that you'll get a "top level" menu option to add exercises. However, a side effect is that everywhere that you have a model with a foreign key to exercise (like in your Segment inline), you'll get a litt

Re: django admin interface

2010-02-17 Thread Andy Cottell
I have found the source of the problem. When running the built in dev server, I used the command "python manage.py testserver". This command seems to create a new database, with no user records, and run the server using that. This means that loging in is impossible as there are no users to log in a

Re: django admin interface

2010-02-08 Thread Russell Keith-Magee
On Mon, Feb 8, 2010 at 10:42 PM, Andy Cottell wrote: >> > > I am new to django, and have started building a project in it. I have >> > > tried to use theadmininterface with the project am having issues >> > > logging in. I have setup the interface as instruced in the django >> > > tutorial part 2,

Re: django admin interface

2010-02-08 Thread Andy Cottell
Bump! On Feb 2, 1:48 am, Andy Cottell wrote: > I have done this, and created an superuser when prompted. However the > login still fails with the same error. > > Here is the urls.py: > > from django.conf.urls.defaults import * > > # Uncomment the next two lines to enable theadmin: > from django.c

Re: django admin interface

2010-02-01 Thread Andy Cottell
I have done this, and created an superuser when prompted. However the login still fails with the same error. Here is the urls.py: from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patte

Re: django admin interface

2010-02-01 Thread bedros
make sure you do syncdb to create database tables before you can actually use the admin interface for the first time. try python ./manage.py syncdb On Feb 1, 4:41 pm, Andy Cottell wrote: > I am new to django, and have started building a project in it. I have > tried to use the admin interface

Re: Django Admin interface and filter by value

2010-01-24 Thread Peter Bengtsson
Sounds like something you'd have to do with javascript by extending the admin interface's templates. Any other default values are best done by settings up signals for your User class. On a more general, yet important note, I would strongly advice against making your own User model unless you reall

Re: Django Admin interface crashes with.

2009-11-12 Thread Matt Schinckel
On Nov 13, 1:40 pm, Rick Caudill wrote: > I do have non-ascii data in my database.  That is allowed, right??? Yeah, in general. What appears to be happening here (and Karen is right, we need more to go on), but data that is being loaded into a DecimalField contains non-ascii data. Matt. -- You

Re: Django Admin interface crashes with.

2009-11-12 Thread Karen Tracey
On Thu, Nov 12, 2009 at 10:40 PM, Rick Caudill wrote: > I do have non-ascii data in my database. That is allowed, right??? > > Certainly. Perhaps if you gave a few more clues someone could help. What are you doing in the admin interface when the exception is raised? If the activity is obvious

Re: Django Admin interface crashes with.

2009-11-12 Thread Rick Caudill
I do have non-ascii data in my database. That is allowed, right??? On Thu, Nov 12, 2009 at 6:55 PM, Matt Schinckel wrote: > On Nov 13, 7:06 am, Rick Caudill wrote: > > Hi Everyone, > > > > This is my first time posting but I have been using Django for about a > > year now and love it. I am h

Re: Django Admin interface crashes with.

2009-11-12 Thread Matt Schinckel
On Nov 13, 7:06 am, Rick Caudill wrote: > Hi Everyone, > > This is my first time posting but I have been using Django for about a > year now and love it.  I am having one problem that I can't solve > though and it is taking too long so I thought I would ask and see if > someone can help me.  So I

Re: Django admin interface for Web service

2009-06-24 Thread Kusako
Thanks for the link. This looks pretty interesting. Unfortunately the service I have to access isn't RESTful, so it doesn't look like I can make of roa easily. -markus On Jun 24, 1:33 pm, nautilebleu wrote: > django-roa seems to be the way to go if your service is RESTful > > http://bitbucket.o

Re: Django admin interface for Web service

2009-06-24 Thread nautilebleu
django-roa seems to be the way to go if your service is RESTful http://bitbucket.org/david/django-roa/ Goulwen On Jun 23, 6:39 pm, Kusako wrote: > Hi- > > I need to access an XMLRPC web service from the Django admin > interface. Basically what I need is some create forms that will send > data