Re: Admin interface does not save routine object

2012-01-05 Thread Andy Oram
Yes (and sorry for getting your name wrong before, Brett). str(self.document) works. On Jan 4, 6:26 pm, Brett Epps wrote: > Oh, I think the problem is in the __unicode__() method of your Quiz8 > model.  You're returning self.document, which is a Document8 object and > not a unicode string.  Try r

Re: admin interface error

2012-01-05 Thread Hassan
i did this in the WSGI file : import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() and i added the path for my website and when i did syncdb it created my tables but i cant access the

Re: Admin interface does not save routine object

2012-01-04 Thread Brett Epps
Oh, I think the problem is in the __unicode__() method of your Quiz8 model. You're returning self.document, which is a Document8 object and not a unicode string. Try returning unicode(self.document) or something like '%d' % document.id. Brett On 1/4/12 5:07 PM, "Andy Oram" wrote: >Thanks, Bi

Re: Admin interface does not save routine object

2012-01-04 Thread Andy Oram
Thanks, Bill. I apologize for not including DEBUG output. Here is what seems relevant. It looks like the ForeignKey relationship filled in fields with the id's of the document and document version (which is what one would expect) and there was a problem converting it to a string. Request Me

Re: Admin interface does not save routine object

2012-01-04 Thread Brett Epps
Hi Andy, Could you send us a traceback from the 500 error page? (If you don't see one, you need to set DEBUG = True in settings.py.) Brett On 1/4/12 8:29 AM, "Andy Oram" wrote: >I am pasting in a pretty basic models.py here. It is fairly classic (I >actually started with Poll tutorial exampl

Re: admin interface error

2012-01-04 Thread Guddu
Your WSGI must be having a DJANGO_SETTINGS_MODULE specified did you make sure that the database specified in that setting file was the one in use when you did your syncdb? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion

Re: Admin Interface Super User Not Logging In

2011-04-13 Thread Joseph Hunt
If you're running the "testserver" it's not using the database, you'll want to try "runserver" instead. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this

Re: Admin Interface Super User Not Logging In

2011-04-13 Thread gladys
There's no way you can check if the password is correct by querying the db. What you can do is try changing the pass thru user.set_password('some- pass') and see if the login will work. -- Gladys http://blog.bixly.com On Apr 13, 10:44 pm, bruno desthuilliers wrote: > Beware of non-printable ch

Re: Admin Interface Super User Not Logging In

2011-04-13 Thread bruno desthuilliers
Beware of non-printable characters when copy-pasting the password ;) More seriously: this is the only reason I can think of that would explain your problem :-/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: admin interface and urls.py regex issue

2011-04-03 Thread xiao_haozi
On Apr 3, 11:58 pm, Karen Tracey wrote: > On Sun, Apr 3, 2011 at 11:35 PM, xiao_haozi wrote: > > I'm running into some perplexing regex issues in urls.py and getting > > to my admin section. > > It worked before but now that I have another view added in, anything > > beyond the index regex is g

Re: admin interface and urls.py regex issue

2011-04-03 Thread Karen Tracey
On Sun, Apr 3, 2011 at 11:35 PM, xiao_haozi wrote: > I'm running into some perplexing regex issues in urls.py and getting > to my admin section. > It worked before but now that I have another view added in, anything > beyond the index regex is getting fed into the "url/" section rather > than adm

Re: Admin interface Integer field with select box?

2011-02-11 Thread vnv
Tnx for quick help! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options,

Re: Admin interface Integer field with select box?

2011-02-11 Thread romain
On Feb 11, 6:53 pm, vnv wrote: > Hi, > > could anyone say is there easy way to have select box for integer > values. > > I model I have group field which identifies specific group by integer > value inside. > If it's possible I would like to have select box inside admin > interface for this so use

Re: Admin interface Integer field with select box?

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 5:53 PM, vnv wrote: > Hi, > > could anyone say is there easy way to have select box for integer > values. > > I model I have group field which identifies specific group by integer > value inside. > If it's possible I would like to have select box inside admin > interface fo

Re: admin interface does NOT show

2010-12-28 Thread Emmanuel Mayssat
ALMOST CORRRECT : WITHOUT THE QUOTES ! (r'^admin/', include('admin.site.urls')), --> (r'^admin/', include(admin.site.urls)), I was trying too hard! -- E On Tue, Dec 28, 2010 at 4:32 PM, Emmanuel Mayssat wrote: > Hello, > > I followed http://docs.djangoproject.com/en/dev/intro/tutorial02

Re: admin interface titles

2010-08-20 Thread emre can karabacak
Thanks a lot, =) On 20 Ağustos, 14:37, Steve Holden wrote: > On 8/20/2010 4:22 AM, emre can karabacak wrote:> I'm new to django, and > apparently django automatically adds an 's' to > > the ends of category titles i.e. Groups,Users, etc. but I have > > 'category' and other titles that end with a

Re: admin interface titles

2010-08-20 Thread Steve Holden
On 8/20/2010 4:22 AM, emre can karabacak wrote: > I'm new to django, and apparently django automatically adds an 's' to > the ends of category titles i.e. Groups,Users, etc. but I have > 'category' and other titles that end with a 'y'. so django turns these > into Categorys, etc. how can I fix this

Re: Admin interface 1.2.1

2010-08-02 Thread galbourn
thank you very much, it was the same problem. Valérie. On 2 août, 13:27, Karen Tracey wrote: > On Mon, Aug 2, 2010 at 4:02 AM, galbourn wrote: > > Hello, > > > In version 1.2.1, on the admin interface on the form change_list.html, > > there is no check box above to select all records. > > In ad

Re: Admin interface 1.2.1

2010-08-02 Thread Karen Tracey
On Mon, Aug 2, 2010 at 4:02 AM, galbourn wrote: > Hello, > > In version 1.2.1, on the admin interface on the form change_list.html, > there is no check box above to select all records. > In addition, when you select a record, it does not change color > (yellow) as in version 1.1.1. > > Similar be

Re: Admin interface for model with optional 'self' relationship

2010-07-02 Thread Jonathan Hayward
Thank you! Solved. On Mon, Jun 28, 2010 at 4:14 PM, Jeff Green wrote: > You need to also state that null=True. Also, you want to have ensure that > the field defined in your db > allows null values. > > On Mon, Jun 28, 2010 at 3:19 PM, Jonathan Hayward < > christos.jonathan.hayw...@gmail.com> wr

Re: Admin interface for model with optional 'self' relationship

2010-06-28 Thread Jeff Green
You need to also state that null=True. Also, you want to have ensure that the field defined in your db allows null values. On Mon, Jun 28, 2010 at 3:19 PM, Jonathan Hayward < christos.jonathan.hayw...@gmail.com> wrote: > I have a model with two foreign keys to itself: > > department = models.

Re: Admin interface not working in Oracle

2010-01-26 Thread Ian
On Jan 26, 10:00 am, Jeff Green wrote: > I found out what my problem was. > It seems that in my urls.py I recently changed > admin.site.root to admin.site.urls which has been deprecated. > Once I changed it back to admin.site.root the admin interface was working in > oracle > > Is it possible that

Re: Admin interface not working in Oracle

2010-01-26 Thread Jeff Green
I found out what my problem was. It seems that in my urls.py I recently changed admin.site.root to admin.site.urls which has been deprecated. Once I changed it back to admin.site.root the admin interface was working in oracle Is it possible that the code for oracle is still referencing admin.site.

Re: admin interface, foreign keys and subclasses

2009-12-24 Thread Chris Curvey
Maybe I'm getting closer, maybe not. What I did was create a bunch of different subclasses of ServiceRequest, then created a bunch of inlines within the admin interface for each type. The admin user has to be smart enough to pick the right kind on their own, but that's OK. I did it like this: #

Re: Admin interface is doing nothing

2009-10-26 Thread M.
Yes, you were right. I copied some of the code from my other project, which was writen with Django 1.0 and my URL contained .* in the end. Thank you for your help. On Oct 26, 10:02 pm, Mikhail Korobov wrote: > It is very likely that your urls.py is wrong. Re-check if admin urls > are included e

Re: Admin interface is doing nothing

2009-10-26 Thread Mikhail Korobov
It is very likely that your urls.py is wrong. Re-check if admin urls are included exactly as in documentation example: "(r'^admin/', include (admin.site.urls))", without any wildcards. On 27 окт, 00:12, "M." wrote: > Hi, > > I've installed the Admin interface, but the interface is unresponsive.

Re: Admin Interface Bug?

2009-09-24 Thread Nakedsteve
Yeah that was the problem, I overrode the TEMPLATE_CONTEXT_PROCESSORS setting in settings.py which got rid of django.core.context_processors.auth On Sep 23, 9:56 pm, Karen Tracey wrote: > On Wed, Sep 23, 2009 at 9:00 PM, Nakedsteve wrote: > > > Hey everyone, while playing around with an idea th

Re: Admin Interface Bug?

2009-09-23 Thread Karen Tracey
On Wed, Sep 23, 2009 at 9:00 PM, Nakedsteve wrote: > > Hey everyone, while playing around with an idea that I'm coding with > Django, I tried to login to the admin interface and after successfully > logging in, I got this error: > > Environment: > > Request Method: GET > Request URL: http://local

Re: Admin interface : 'HttpResponseRedirect' object has no attribute 'rindex'

2009-08-15 Thread 3hux
I came across this error today, and couldn't find any answers about this anywhere on the web. I'm hoping other people will come across this here, and figure out what it took me some time to realize: There is a problem in your urls.py file. Atleast there was definitely a problem with my urls in m

Re: Admin interface is slow

2009-05-21 Thread BinseerN Forent
Thank you guys for your reply .. Actually i am using django+satchmo (sorry for not mentioning that.. my bad).. I thought admin interface related stuffs are related to Django only.. Thats why i didn't mentioned satchmo... In satchmo there is a patch for my particular problem explicitly .. http://w

Re: Admin interface is slow

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 9:31 AM, Skylar Saveland wrote: > > Is this something having to do with pools? > > > Django doesn't pool connections, so unless the original poster is using an external pool, no. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it."

Re: Admin interface is slow

2009-05-20 Thread Skylar Saveland
Is this something having to do with pools? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send

Re: Admin interface is slow

2009-05-20 Thread BinseerN Forent
its a local process On Wed, May 20, 2009 at 6:33 PM, Joshua Partogi wrote: > > Is this a local process or remote process ? > > On May 20, 10:36 pm, Binseer wrote: > > Hi all, > > My admin interface is running dead slow.. I am using postgresql8.3. > > When i checked running processes by "ps ax |

Re: Admin interface is slow

2009-05-20 Thread Joshua Partogi
Is this a local process or remote process ? On May 20, 10:36 pm, Binseer wrote: > Hi all, > My admin interface is running dead slow.. I am using postgresql8.3. > When i checked running processes by "ps ax | grep "postgres" ", it > shows some idle processes are running in the very begining itself

Re: Admin interface question

2009-03-30 Thread John Smith
You need to give your ChangeLog model a __unicode__ method, then you'll get titles that make sense. On Mar 30, 12:45 pm, Phil Edwards wrote: > Hi All: > > First off, apologies if this message ends up appearing twice - I had a > minor problem getting Google to recognise that I'd subscribed... > >

Re: Admin interface question

2009-03-30 Thread Phil Edwards
Phil Edwards wrote: > Hi All: > > First off, apologies if this message ends up appearing twice - I had a > minor problem getting Google to recognise that I'd subscribed... > Somehow, I just *knew* that was going to happen... :-) -- Regards Phil Edwards | PGP/GnuPG Key Id Brighton, UK

Re: admin interface

2008-11-29 Thread Thomas Kerpe
Don't forget to add a __unicode__ method to your models. //Thomas 2008/11/29 mobil <[EMAIL PROTECTED]> > > How to make the admin interface display a list of table columns > instead of just a Users object > > Select users to change > >* Add users > > Users > Users object > Users object > Users

Re: admin interface

2008-11-28 Thread Malcolm Tredinnick
On Fri, 2008-11-28 at 18:30 -0800, mobil wrote: > How to make the admin interface display a list of table columns > instead of just a Users object This is covered in the first two parts of the tutorial. Or you can go directly the admin documentation. The appropriate setting is list_display: htt

Re: Admin interface crashes when adding a new item with a ForeignKey

2008-11-10 Thread Ben Gerdemann
I figured out the problem. I used inspectdb to import my models from an existing database. I then marked the primary_key fields with primary_key=True, but I didn't should have also converted them from IntegerField to AutoField. Once I did that everything worked fine. I hope this message saves some

Re: Admin Interface - "You don't have permission to edit anything"

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 5:06 AM, Saravana Kumar K, Bangalore < [EMAIL PROTECTED]> wrote: > Hi All, > >I was trying to install Autotest tool, which is used for kernel testing. > It uses the Django also, Please find the link below > >http://autotest.kernel.org/wiki/AutotestServerInstall >

Re: Admin interface crashes when adding a new item with a ForeignKey

2008-11-10 Thread Karen Tracey
You left off the actual exception you get. Also, the details of your Model and ModelAdmin definitions would be helpful (please post to dpaste.com and point to them if they're big enough to display poorly in email), since I've used this method myself without error so I suspect there is something sp

Re: Admin Interface for Searching Only

2008-10-29 Thread Sean
Although Data Browser is interesting. I was hoping for something much closer to the admin interface, but for viewing and searching. It would seem like DRY would suggest that using the admin interface for read- only access would actually be the right way to do this, simply making someone staff, and

Re: Admin Interface for Searching Only

2008-10-29 Thread Sean
I just found this: http://www.djangoproject.com/documentation/databrowse/ but other input is welcome. Thanks, Sean On Oct 29, 9:43 am, Sean <[EMAIL PROTECTED]> wrote: > I add a staff user with no additional permission to my admin > interface, hoping that they would be able to use the interfac

Re: Admin interface troubles

2008-09-16 Thread Ray Smith
Hi, There are backwards incompatible changes between 0.96 and 1.0 for admin. A good source (plus screencast) is available at: http://oebfare.com/blog/2008/jul/20/newforms-admin-migration-and-screencast/ It also has links back to the main doco. Ray Smith http://RaymondSmith.com [EMAIL PROTEC

Re: Admin interface using my views

2008-07-08 Thread Stuart Grimshaw
On Jul 8, 2:40 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-08 at 06:22 -0700, Stuart Grimshaw wrote: > > I'm getting this error when trying to view my admin interface ... > > > In template /usr/lib/python2.5/site-packages/django/contrib/admin/ > > templates/admin/base.html,

Re: Admin interface using my views

2008-07-08 Thread Malcolm Tredinnick
On Tue, 2008-07-08 at 06:22 -0700, Stuart Grimshaw wrote: > I'm getting this error when trying to view my admin interface ... > > In template /usr/lib/python2.5/site-packages/django/contrib/admin/ > templates/admin/base.html, error at line 28 > Caught an exception while rendering: Tried showSide

Re: admin interface startup problems

2007-12-27 Thread hedronist
Not having the book yet (it's in the mail) I'm not sure exactly what is on page 84, so I'll make a couple of suggestions/observations. The "No such table" error message means exactly what it says, so this really feels like "python manage.py syncdb" wasn't run (or wasn't run successfully). In add

Re: admin interface broken

2007-12-13 Thread Julian
this one solved it: http://groups.google.com/group/django-users/browse_thread/thread/ed22e4efc279d68d/d72a2e2f79156e01 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: admin-interface - 500 error - missing MEDIA_URL

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 16:51 -0800, sime wrote: > Now I expect this again is going to be defended religiously; but the > fact that 500's don't run context processors, to me, serves as a nice > little reminder that {% media_url %} or similar needs to be a core > template tag. Where is the sense in

Re: admin-interface - 500 error - missing MEDIA_URL

2007-11-11 Thread sime
Now I expect this again is going to be defended religiously; but the fact that 500's don't run context processors, to me, serves as a nice little reminder that {% media_url %} or similar needs to be a core template tag. Where is the sense in bothering with a custom 500 if you can't conveniently us

Re: admin-interface - 500 error - missing MEDIA_URL

2007-11-09 Thread Marty Alchin
On Nov 9, 2007 2:40 PM, James Bennett <[EMAIL PROTECTED]> wrote: > If you want to specify a different handler for 500s, that's up to you, > but be prepared for the inevitable complete breaking of your site when > something running inside it raises another exception. I think I'll settle for hardco

Re: admin-interface - 500 error - missing MEDIA_URL

2007-11-09 Thread James Bennett
On Nov 9, 2007 1:29 PM, Brot <[EMAIL PROTECTED]> wrote: > does this mean, that there is no solution for this problem or is there > a smart workaround? This means there is absolutely nothing in Django which will, in the server error view, attempt to run your context processors. There is not a swit

Re: admin-interface - 500 error - missing MEDIA_URL

2007-11-09 Thread Brot
does this mean, that there is no solution for this problem or is there a smart workaround? I think I could use a custom templatetag. But this would violate DRY. Regards Bernd On Nov 9, 7:49 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On Nov 9, 2007 12:34 PM, Brot <[EMAIL PROTECTED]> wrote

Re: admin-interface - 500 error - missing MEDIA_URL

2007-11-09 Thread James Bennett
On Nov 9, 2007 12:49 PM, Marty Alchin <[EMAIL PROTECTED]> wrote: > I seem to remember something a while back about 500 not processing too > much, to reduce the possibility of getting into a recursive loop of > exceptions. I can't seem to find that now, but that could be what > we're running into.

Re: admin-interface - 500 error - missing MEDIA_URL

2007-11-09 Thread Marty Alchin
On Nov 9, 2007 12:34 PM, Brot <[EMAIL PROTECTED]> wrote: > I have defined a 500.html template in my root template directory. > This template "extends" from my base.html template. In the base > template I have something like: > > > But if there is an 500 error in the admin interface, it seems th

Re: Admin interface

2007-03-08 Thread Aidas Bendoraitis
Either override templates for specific models or use javascript (js property of the Admin class) to change the fields. I think that it will be also possible to change the field type with the newforms admin. Reference: http://www.djangosnippets.org/snippets/35/ Good luck! Aidas Bendoraitis [aka Ar

Re: Admin interface and custom managers

2007-03-05 Thread Picio
I had the same issue in the past. There's a bug in the django code and a ticket was already scheduled. Before 0.96, that by the way seems to improve a lot the admin class providing more hooks to customize It, you can add a row in your Admin class code that says: manager=myCustomManager() Hope I

Re: admin interface for legacy database

2006-10-16 Thread Ewout ter Haar
On 10/15/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > The value of Users.icon either has to be a valid primary key value in > the table for the Icon model or NULL (of you have null=True in the > ForeignKey constructor). This is because a Django ForeignKey field is a > true foreign key in t

Re: admin interface for legacy database

2006-10-15 Thread Malcolm Tredinnick
On Sat, 2006-10-14 at 04:47 -0700, Ewout ter Haar wrote: > I am trying to make use of the django admin, to use with a database > which is normally managed by another (PHP) application. I ran > inspectdb, and after tweaking the models a little bit, it works for > basic fields like InterFields, Char

Re: admin interface for legacy database

2006-10-14 Thread moberley
I'm not familiar with how ForeignKey fields interact with the database, but I wondered if you could have an instance of the Icon model that represented no icon (-1). Otherwise, I think you might need to override the model methods (probably the save() method), but that's just a guess. --~--~-

Re: admin interface / permissions: app name not listed

2006-10-11 Thread gjiro
+1 on this suggestion. If I remember correctly, there's a ticket about this issue. Along this line, it might be nice to provide the same functionality for the "recent actions" list, for example as a tooltip. gjiro --~--~-~--~~~---~--~~ You received this message

Re: admin interface / permissions: app name not listed

2006-10-11 Thread gjiro
+1 on this suggestion. If I remember correctly, there's a ticket about this issue. Along this line, it might be nice to provide the same functionality for the "recent actions" list, for example as a tooltip. gjiro --~--~-~--~~~---~--~~ You received this message

Re: admin interface / permissions: app name not listed

2006-10-11 Thread gjiro
+1 on this suggestion. If I remember correctly, there's a ticket about this issue. Along this line, it might be nice to provide the same functionality for the "recent actions" list, for example as a tooltip. gjiro --~--~-~--~~~---~--~~ You received this message

Re: admin interface / permissions: app name not listed

2006-10-11 Thread Joseph Kocherhans
On 10/11/06, patrickk <[EMAIL PROTECTED]> wrote: > > when assigning permissions, there´s a list of installed apps/models, > like: > posting | can add posting > posting | can change posting > ... > > the problem is, if I have several models with the same name (e.g. > category) within different apps

Re: admin interface

2006-08-09 Thread James Bennett
On 8/9/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > In particular, take a look at "Admin converted to separate templates" > near the bottom. I think Kenneth was referring more to the relative difficulty of adding some types of new functionality to the admin; re-"skinning" it, or building up custom

Re: admin interface

2006-08-09 Thread Michael Hamilton
This is really good news. Thank you to all those involved. The Django admin interface might not be suitable for many custom Web sites, but it does fit the bill for some traditional I.T. apps. Really neat stuff - very DRY. On Thursday 10 August 2006 15:11, Bryan Chow wrote: > ... > I disagre

Re: admin interface

2006-08-09 Thread Bryan Chow
On 8/9/06, a <[EMAIL PROTECTED]> wrote: > i like the admin interface and want to modify it for my needs, do you > have pointers on how to go about it On 8/9/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > apart from cosmetic stuff which is explained in the relevant doc, it > is easier to roll

Re: admin interface

2006-08-09 Thread Kenneth Gonsalves
On 10-Aug-06, at 4:17 AM, a wrote: > i like the admin interface and want to modify it for my needs, do you > have pointers on how to go about it apart from cosmetic stuff which is explained in the relevant doc, it is easier to roll your own than to modify the admin interface -- regards kg

Re: Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread John Sutherland
Not that I could find -- I believe I originally found it in a Ticket somewhere. John. On 8/8/06, ak <[EMAIL PROTECTED]> wrote: > > John, app_label made it work. Thanks !!! > > P.S. Is there a line in django docs about that ? > > > > > -- [EMAIL PROTECTED] --~--~-~--~~---

Re: Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread ak
John, app_label made it work. Thanks !!! P.S. Is there a line in django docs about that ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@goog

Re: Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread John Sutherland
Hi Anton, You may need to add the Meta class in too: mycompany/models.py: from django.db import models class Subnet(models.Model): field = models.CharField(maxlength=255) ... class Admin: pass class Meta: app_label = 'administration' And then in your mycompany/

Re: Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread ak
Malcolm, my models are imported into application,models and do have Admin inner class. Take a look: 1. Model: $ cat subnet.py # -*- coding: windows-1251 -*- from django.db import models class Subnet(models.Model): address = models.IPAddressField() mask = models.IPAddressField() clas

Re: Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread Malcolm Tredinnick
On Tue, 2006-08-08 at 00:37 -0700, ak wrote: > Hello guys > > Today I discovered a strange problem which may be caused by my > misunderstanding or by a bug in django and i would like to shed some > light on it with your help. I think you are misunderstanding how the admin application interacts w

Re: Admin interface using CharField as a primary key

2006-03-30 Thread Daniel Bimschas
Forgot: In the trunk the problem also exists. 2006/3/30, Daniel Bimschas <[EMAIL PROTECTED]>: > If have a model like this: > > class Article(meta.Model): > cite_key = meta.CharField(maxlength=255, primary_key=True) > ... > > where "cite_key" is a unique string used in a bibt

Re: Admin interface using CharField as a primary key

2006-03-30 Thread Daniel Bimschas
If have a model like this: class Article(meta.Model): cite_key = meta.CharField(maxlength=255, primary_key=True) ... where "cite_key" is a unique string used in a bibtex-file. The problem now are the links to the edit pages created by the admin interface. The html-code is fo

Re: Admin interface using CharField as a primary key

2006-03-30 Thread Andy Dustman
On 3/30/06, Daniel Bimschas <[EMAIL PROTECTED]> wrote: > > Hi there! > > I'm currently trying to convert an old webapp written in PHP into a > django-based app. The PHP-System used VARCHAR-Fields as primary keys > in the MySQL - DB. > > Now, if i convert the data for the new tables created by Djan

Re: admin interface can't find table

2006-02-10 Thread James_Martin
Sorry for the spam all, I should've check the bug tracker (#930) first... James S. Martin, RHCE Contractor Administrative Office of the United States Courts Washington, DC (202) 502-2394 --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: admin interface can't find table

2006-02-10 Thread James_Martin
django-users@googlegroups.com wrote on 02/09/2006 07:20:35 PM: > So this is a strange problem...I'm getting the Following error when try to > view the list mode of my court_detals object in the Admin interface. > snip. To be a little less verbose, I think the SQL handler in django is not ha

Re: admin interface

2006-01-23 Thread akaihola
You can get started here: http://code.djangoproject.com/wiki/CookBookAdminTools

Re: admin interface

2006-01-22 Thread Bryan Murdock
On 1/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > how i could change in the amin interface the example.com to be my > site.com > > Thanks for all people that are helping me http://www.djangoproject.com/documentation/tutorial2/#customize-the-admin-look-and-feel Bryan

Re: admin interface: how to give read-only access?

2005-12-28 Thread Emanuele
OK, generic views is the way. Thanks! Emanuele

Re: admin interface: how to give read-only access?

2005-12-28 Thread Emanuele
This is _really_ interesting. I hope concrete planning on this in future. +1 Cheers, Emanuele

Re: admin interface: how to give read-only access?

2005-12-27 Thread Robert Wittams
Emanuele wrote: > Hi, > I'd like to give read-only access to some objects in admin interface to > selected users. I know that django admin interface is CRUD and I can > give only create/update/delete permissions to users, but is there a way > to solve my problem (other than creating my templates a

Re: admin interface: how to give read-only access?

2005-12-27 Thread James Bennett
On 12/27/05, Emanuele <[EMAIL PROTECTED]> wrote: > I'd like to give read-only access to some objects in admin interface to > selected users. I know that django admin interface is CRUD and I can > give only create/update/delete permissions to users, but is there a way > to solve my problem (other t

Re: admin-interface: some questions

2005-12-27 Thread oggie rob
Patrik K says: > just being curious: what´s the argument against defining the rows in the model? Hi Patrick, I think it would be better use of display design if you kept the rows out of the model. You can achieve as much as you are asking by using css. For example, if you do the following: 1) Cre

Re: admin-interface: some questions

2005-12-27 Thread patrick k
just being curious: what´s the argument against defining the rows in the model? using id´s works fine with a few tables, but with hundreds of tables it´s getting complicated: because "body" in "films" may be a large textarea whereas "body" in "comments" may be a smaller one. ok, one could use "fi

Re: admin-interface: some questions

2005-12-27 Thread Eugene Lazutkin
You can use ID's: "id_summary", "id_body", and so on. #id_summary { width: 100%; height: 5em; } #id_body { width: 100%; height: 10em; } Thanks, Eugene "patrick k" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] as far as i know, textares have classes like "vLarg

Re: admin-interface: some questions

2005-12-27 Thread patrick k
as far as i know, textares have classes like "vLargeTextField". so, i don´t know how one can change that. by the way, with doing what you suggested you have to update the .css-file everytime you add (or change) a model. patrick > > On 12/27/05 18:28, patrick k wrote: >>> On 12/27/05, patrick k

Re: admin-interface: some questions

2005-12-27 Thread Steven Armstrong
On 12/27/05 18:28, patrick k wrote: On 12/27/05, patrick k <[EMAIL PROTECTED]> wrote: - how do i change the numrows for a textarea-field? You can do this with CSS; create custom admin templates that include some custom CSS code. what i meant was changing the numrows for each textarea-field

Re: admin-interface: some questions

2005-12-27 Thread patrick k
> On 12/27/05, patrick k <[EMAIL PROTECTED]> wrote: >> - how do i change the numrows for a textarea-field? > > You can do this with CSS; create custom admin templates that include > some custom CSS code. what i meant was changing the numrows for each textarea-field seperately. e.g., a body-field

Re: admin-interface: some questions

2005-12-27 Thread Robert Wittams
Adrian Holovaty wrote: > > >>- we have automatic fields for createdate and updatedate (auto_now, >>auto_now_add). what about automatically inserting the logged in user who >>creates (or updates) the record? i don´t know about anybody else, but i need >>that all the time. that´s especially intere

Re: admin-interface: some questions

2005-12-27 Thread Adrian Holovaty
On 12/27/05, patrick k <[EMAIL PROTECTED]> wrote: > - how do i change the numrows for a textarea-field? You can do this with CSS; create custom admin templates that include some custom CSS code. > - why is it always the first column of the list which is linked to the > detail-page? when listing

Re: Admin Interface and Foreign Keys

2005-09-05 Thread [EMAIL PROTECTED]
Thanks for looking into it. I've added the ordering to the Job table, and that seems to fix it when I'm sorting by "Job". However, I'm still only getting 1 record being displayed when it says there are 11 (and I know there are that many in the database). Let me know what other information you nee

Re: Admin Interface and Foreign Keys

2005-09-05 Thread Adrian Holovaty
On 9/4/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > For some reason, even though there are 11 records in the database for > this table the admin interface is only showing me one of them. > Underneath that one entry is message text saying "11 schedules", so I > know the DB API is finding them