BooleanField trouble

2008-09-11 Thread Jason
I have a "true" or "false" string coming in from an ajax call to my view. I'm then turning around and directly assigning that string from the front end to my model object and saving it. Before the upgrade to django 1.0, the database happily accepted my model object's value as 'true' or 'false' fo

Re: Displaying a list of lists?

2008-09-11 Thread Dana
You could try the template filter "unordered_list" too I believe (haven't done it myself). http://docs.djangoproject.com/en/dev/ref/templates/builtins/#unordered-list Cheers On Sep 11, 11:36 am, "Lance F. Squire" <[EMAIL PROTECTED]> wrote: > Currently using Django version 0.96.3, on a Fedora 8

Making sure published date is respected in views

2008-09-11 Thread Dana
Hey all, Wondering what the best technique would be to make sure that an entry (such as a blog entry/story/etc...) with a datetime object 'pub_date' does not show up on the front end if the pub_date is in the future. I would assume using ".filter(...something...)" is the way to go but what would

Re: ImageField

2008-09-11 Thread lingrlongr
Ah, I figured it out. class ProductImage(models.Model): image = models.ImageField(upload_to='images', height_field='height', width_field='width') Example: >>> p = ProductImage.objects.all()[0] >>> p.image.height 250 >>> p.image.width 100 On Sep 12, 12:06 am, lingrlongr <[EMAIL PROTECTED]> w

ImageField

2008-09-11 Thread lingrlongr
Can someone explain how to use the height_field and width_field for an ImageField as it would relate to this model: class ProductImage(models.Model): image = models.ImageField(upload_to='images') The explanation in the documentation is: Name of a model field which will be auto-populated with t

Re: Connecting to AS400

2008-09-11 Thread Brett H
I've done this - not specifically with AS400 - but with a couple of obscure databases. Basically you need to work out ODBC part first. Get your basic connection working. Once that is done I recommend mx.ODBC as a good python interface that is the most robust I've found with commercial support if

Re: Displaying a list of lists?

2008-09-11 Thread Russell Keith-Magee
On Fri, Sep 12, 2008 at 2:36 AM, Lance F. Squire <[EMAIL PROTECTED]> wrote: > > Currently using Django version 0.96.3, on a Fedora 8 system. > > I've currently set-up models for 'Manufacturer' and 'System'. System > has a Foreignkey to Manufacturer. > > I'd like to display a list like so: > > Manu

Re: Using unique on a field

2008-09-11 Thread [EMAIL PROTECTED]
If you use a model form it will also be validated. On Sep 11, 9:41 pm, "Chris Stromberger" <[EMAIL PROTECTED]> wrote: > Curious about using "unique" in a column definition of a model for a legacy > db.  My assumption is that "unique" only comes into play during db creation, > to create the index

Re: Displaying a list of lists?

2008-09-11 Thread Lance F. Squire
Is there a way to see if a filed changes between iterations? That is, I pass the Systems list to the template sorted by Manufacturer and name. The template then only displays the new Manufacturer name when it changes? I thought I saw something like that somewhere, but can't find it now Lanc

Re: comparing Model instances

2008-09-11 Thread Eric Abrahamsen
On Sep 12, 2008, at 6:05 AM, Malcolm Tredinnick wrote: > > > On Thu, 2008-09-11 at 17:27 -0400, Steve Holden wrote: > [...] >> I've got some timings lying around somewhere that clearly show the >> decorate/sort/undecorate implementation is way faster under normal >> circumstances. > > True. That

Re: Using unique on a field

2008-09-11 Thread Marcelo Ramos
2008/9/11 Chris Stromberger <[EMAIL PROTECTED]>: > Curious about using "unique" in a column definition of a model for a legacy > db. My assumption is that "unique" only comes into play during db creation, > to create the index on the field, and thereafter uniqueness is enforced by > the db? Or d

Re: Enhanced (Wufoo / Digg / Facebook - like) forms

2008-09-11 Thread Ron W
Thanks for the link, some good info in there. Not quite the "Django Fancy Forms" framework I'm dreaming of, but definitely helps in a big way... ;) Ron On Sep 11, 1:38 am, Dave <[EMAIL PROTECTED]> wrote: > On Sep 11, 7:54 am, Ron W <[EMAIL PROTECTED]> wrote: > > > Trying to prevent some wheel-re

Re: What do you use as a build tool (like Ant or make)

2008-09-11 Thread ristretto.rb
Thanks very much for the replies. I was really considering Vellum, and I still am. But, that was a very informative post from Kevin on zc.buildout. I'll have to give both a look. Look forward to your blog post Dan!! cheers gene On Sep 10, 9:58 pm, Dan Fairs <[EMAIL PROTECTED]> wrote: > > I h

Using unique on a field

2008-09-11 Thread Chris Stromberger
Curious about using "unique" in a column definition of a model for a legacy db. My assumption is that "unique" only comes into play during db creation, to create the index on the field, and thereafter uniqueness is enforced by the db? Or does unique in a model affect creation of new model objects

Re: Persistent Global Imports

2008-09-11 Thread Graham Dumpleton
On Sep 12, 10:35 am, "Chris Spencer" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 11, 2008 at 6:16 AM, Graham Dumpleton > > > > <[EMAIL PROTECTED]> wrote: > > Be aware that Apache/mod_wsgi in embedded mode on UNIX is going to be > > multiprocess. Thus where you think it is being loaded on every > >

Re: validation inline

2008-09-11 Thread Aaron C. de Bruyn
On 2008-09-09 at 22:46:52 -0700, Samuel Mathieson wrote: > Date: Tue, 9 Sep 2008 22:46:52 -0700 (PDT) > To: Django users > From: Samuel Mathieson <[EMAIL PROTECTED]> > Subject: validation inline > > Hello, I am trying to get some sort of validation inline for the > admin: > > > The validation

Re: troubles with mod_python on Leopard

2008-09-11 Thread Jon Brisbin
I had quite a bit of trouble with Apache/mod_python on Leopard as well. I had to go back to using the default Apache 2 and stock python 2.5. I also had to rearrange things a bit in the path and ended up putting a symlink in /Library/Python/2.5/site-packges/django to ~/src/ django-trunk/djan

Re: Connecting to AS400

2008-09-11 Thread Jon Brisbin
I don't think Django can natively use unixODBC as it's ORM backend, unfortunately. It would be great if it did! You could Django without the ORM, of course. To connect from a Win server (why would want to do that? ;), you could use ClientAccess. To connect from Linux, you could use IBM's Li

Re: Persistent Global Imports

2008-09-11 Thread Chris Spencer
On Thu, Sep 11, 2008 at 6:16 AM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Be aware that Apache/mod_wsgi in embedded mode on UNIX is going to be > multiprocess. Thus where you think it is being loaded on every > request, it is more likely just the result of the various processes > loading the

Re: TestClient with no Django Database

2008-09-11 Thread Russell Keith-Magee
On Fri, Sep 12, 2008 at 7:35 AM, Denali Lumma <[EMAIL PROTECTED]> wrote: > > Hi There, > > I am trying to use the TestClient class to validate some of our > pages. It seems to work OK for pages which don't require > authentication. It should work fine for pages _with_ authentication, too; you j

TestClient with no Django Database

2008-09-11 Thread Denali Lumma
Hi There, I am trying to use the TestClient class to validate some of our pages. It seems to work OK for pages which don't require authentication. I am aware of the test database which is created and used in the TestClient run, however, we have a special set up here. We are not using any o

Re: looking for event registration/calendar modules

2008-09-11 Thread cjl
Probably not exactly what you are looking for, but check out: https://pycon.coderanger.net/ -cjlesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: looking for event registration/calendar modules

2008-09-11 Thread coulix
Hi, There was a django calendar app but it is in 'rewriting' right now and will be released soon (from what i heard). For now i built mine based on this snippest http://www.djangosnippets.org/snippets/129/ Greg On Sep 11, 5:59 pm, Marcus <[EMAIL PROTECTED]> wrote: > Hi -- django newbie here put

Re: Newbie legacy db question -- ManyToMany

2008-09-11 Thread Chris Stromberger
Fantastic, thanks for the info. On Thu, Sep 11, 2008 at 4:19 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Thu, Sep 11, 2008 at 3:32 PM, Chris Stromberger < > [EMAIL PROTECTED]> wrote: > >> I'm wanting to use Django with a preexisting db. The db features a >> linking table (Many to Many). I'

Re: Restricting views

2008-09-11 Thread Dan
> Yeah, ... a super user could have all permissions that are defined > in a project for example. Wait a moment -- that's already true today! > (See the User has_perm method) He will have all permissions that will exist in the future too. --~--~-~--~~~---~--~~ You

Re: comparing Model instances

2008-09-11 Thread Malcolm Tredinnick
On Thu, 2008-09-11 at 17:27 -0400, Steve Holden wrote: [...] > I've got some timings lying around somewhere that clearly show the > decorate/sort/undecorate implementation is way faster under normal > circumstances. True. That's a very important point. Even in the good old days before sort() dev

Re: Newbie legacy db question -- ManyToMany

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 3:32 PM, Chris Stromberger < [EMAIL PROTECTED]> wrote: > I'm wanting to use Django with a preexisting db. The db features a linking > table (Many to Many). I'm wondering if I need to go ahead and define a > model class for this table, or just add the ManyToMany field to o

Re: Creating an Archive

2008-09-11 Thread djandrow
Thanks Russ, I'm still abit confused about the first part, I understand it prints 2008-01-01, because its printing the years with entries in them, and 2008 is the only year with entries, but rather than get it to show all the years with entries I want it to show all the months with entries in. I

Re: Nesting inlines with django-admin

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 5:32 PM, David Durham, Jr. < [EMAIL PROTECTED]> wrote: > > > I'm having the same need for nested inlines. > > Bump. I'm probably going to take the plunge and try to implement this > if no one has beaten me to it. > You might want to take a look at this thread on the devel

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
That works! Thanks for the help. On Thu, Sep 11, 2008 at 4:38 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Thu, Sep 11, 2008 at 5:20 PM, Chris Stromberger < > [EMAIL PROTECTED]> wrote: > >> Oh, thanks. Ok, I just tried taking that out (so model now says "staff_id >> = models.ForeignKey(User

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 5:20 PM, Chris Stromberger < [EMAIL PROTECTED]> wrote: > Oh, thanks. Ok, I just tried taking that out (so model now says "staff_id > = models.ForeignKey(User)"), but that gave this error: > OperationalError: (1054, "Unknown column 'restaurant.staff_id_id' in 'field > list'

Re: Nesting inlines with django-admin

2008-09-11 Thread David Durham, Jr.
> I'm having the same need for nested inlines. Bump. I'm probably going to take the plunge and try to implement this if no one has beaten me to it. -Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
Oh, thanks. Ok, I just tried taking that out (so model now says "staff_id = models.ForeignKey(User)"), but that gave this error: OperationalError: (1054, "Unknown column 'restaurant.staff_id_id' in 'field list'") ? On Thu, Sep 11, 2008 at 4:09 PM, Malcolm Tredinnick < [EMAIL PROTECTED]> wrote:

Re: comparing Model instances

2008-09-11 Thread Steve Holden
Malcolm Tredinnick wrote: > > On Thu, 2008-09-11 at 15:36 +0800, Eric Abrahamsen wrote: >> I'm fooling around with comparing instances of different models, >> trying to make a unified stream of instances that can be sorted by >> date according to a certain datetime attribute on each model. I

Re: Slow edit_inline admin forms

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 4:15 PM, OliverMarchand <[EMAIL PROTECTED]>wrote: > > Dear all, > > we are experiencing rather slow edit_inline admin forms, especially, > when the inlined models contain foreign keys to "large tables" for > which the select boxes must fetch *all* the tables data to be able

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
And if I comment out the staff_id line in the model class, my test in the console works fine (Restaurant.objects.all()). On Thu, Sep 11, 2008 at 4:20 PM, Chris Stromberger < [EMAIL PROTECTED]> wrote: > Oh, thanks. Ok, I just tried taking that out (so model now says "staff_id > = models.ForeignKe

Re: autofill user

2008-09-11 Thread Malcolm Tredinnick
On Thu, 2008-09-11 at 22:16 +0200, Stephan Hoyer wrote: > Hi All > > i want to store the add and changetime an user to some models, therefor > i created a abstract class to inherit from: > > class DublinCore(models.Model): > inserted= models.DateTimeField(auto_now_add=True) > updat

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Malcolm Tredinnick
On Thu, 2008-09-11 at 16:01 -0500, Chris Stromberger wrote: > I would like to include a foreign key in a table that links to a user > in Django's auth_user table. Or maybe this is a dumb idea--if so, > interested in hearing why. > > > So the table ("restaurant") with the foreign key includes (

Connecting to AS400

2008-09-11 Thread Jason Sypolt
Is it possible to connect to an as400 database using django (preferably) or with python? I would like to build a product catalog site using django and read in products and send orders to the as400. Note that the site itself will not be on an as400 system. Just wondering if anyone has done this be

autofill user

2008-09-11 Thread Stephan Hoyer
Hi All i want to store the add and changetime an user to some models, therefor i created a abstract class to inherit from: class DublinCore(models.Model): inserted= models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True) inserter= models.For

Accessing field names and data from a queryset in a generic template

2008-09-11 Thread SnappyDjangoUser
I am a new django user so please excuse my naive question. I have a generic view function (see below) which is used to perform a query on one of many tables (depending on the "model" argument) and then render the results to a single template file (object_list.html) def item_list(request, model='

Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
I would like to include a foreign key in a table that links to a user in Django's auth_user table. Or maybe this is a dumb idea--if so, interested in hearing why. So the table ("restaurant") with the foreign key includes (mysql): staff_id int(11) NOT NULL, foreign key(staff_id) references auth_us

Re: Security question

2008-09-11 Thread Gerard Petersen
Hi Oliver, This feels completely off topic for a Django post, nevertheless .. I don't see the problem. If your webserver contacts the application server via port 80 or 443 then you should have your firewall between DMZ 1 and 2 allow those ports. And allow only the source IP of the webserver to

Slow edit_inline admin forms

2008-09-11 Thread OliverMarchand
Dear all, we are experiencing rather slow edit_inline admin forms, especially, when the inlined models contain foreign keys to "large tables" for which the select boxes must fetch *all* the tables data to be able to evaluate the __unicode__ method for each instance of the model. * Are you experi

Re: Filtering ManyToManyField

2008-09-11 Thread MikeHowarth
Anyone? I'm really struggling with this. As stated in my first post running the code creates a recursive loop. Had a bit of a hack around with things, but can't figure anything obvious out. On Sep 11, 10:58 am, MikeHowarth <[EMAIL PROTECTED]> wrote: > The model I'm using is very similar to tha

Security question

2008-09-11 Thread OliverMarchand
Dear all, we are using Django as an application server. Now we want our website server to be able to read from (and eventually write to) that application server. Now the security question arises. The proposal is to have - the webserver in a DMZ 1 - the Django application server in a DMZ 2 - our i

Re: New django 1.0 website: www.astronomy2009.org

2008-09-11 Thread James Matthews
Very nice site! Just one point, I would recommend changing the default admin login page from http:///admin to something random. This does not substitute a good password but makes your site a little more secure. James P.S Post this website on djangosites.org On Thu, Sep 11, 2008 at 7:41 AM, Jua

troubles with mod_python on Leopard

2008-09-11 Thread [EMAIL PROTECTED]
Hello, I'm trying to install Django with Mod_Python on Leopard. I've been through the process on Linux and Windows several times without many issues, but on Leopard I've come up against a wall and I don't know what else to check. OS X is the os I have least experience with. I wanted to install t

Newbie legacy db question -- ManyToMany

2008-09-11 Thread Chris Stromberger
I'm wanting to use Django with a preexisting db. The db features a linking table (Many to Many). I'm wondering if I need to go ahead and define a model class for this table, or just add the ManyToMany field to one of the linked models. Or to put it another way, is there any way to define the rel

problems with post_save and sites framework

2008-09-11 Thread nek4life
I've been setting trying to set up a tumblelog using the sites framework and the current site manager and I'm hitting a bug in either my code or Django's not sure which. Basically what's happening is the first time I save an object the tumble item is created, but the site field is not populated s

Re: Unexpected keyword argument 'raw_in_admin' in Django 1 release 9014?

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 12:44 PM, bkev <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to set up this simple model in Django and I'm getting an > "init got unexpected keyword argument 'raw_in_admin'" in Django 1.0 > release 9014 when doing a syncdb. I'm trying to get a non-dropdown > ForeignKey

Re: Form validation problem for model with ForeignKey having unique=True,blank=True,null=True

2008-09-11 Thread Nathaniel Griswold
Thanks, created Ticket #9039 > I don't think the ModelForm validation should prohibit something the > databases generally allow. I'd open a ticket (search first though to see if > it's already been reported/decided on...I could be missing something). > > Karen > --~--~-~--~~-

Displaying a list of lists?

2008-09-11 Thread Lance F. Squire
Currently using Django version 0.96.3, on a Fedora 8 system. I've currently set-up models for 'Manufacturer' and 'System'. System has a Foreignkey to Manufacturer. I'd like to display a list like so: Manu A System a System b System c Manu B System a System b System c Etc...

Re: Design question: Persistent / non-transactional process & django

2008-09-11 Thread Olivier Guilyardi
[EMAIL PROTECTED] wrote: > If we want to make a persistent TCP connection with a data queue, is > django the best place (or even a possible place) for this connection > layer to live? I see these options: In a production environment, you need Django to run on Apache, so I think you can't expect

Re: comparing Model instances

2008-09-11 Thread Malcolm Tredinnick
On Thu, 2008-09-11 at 15:36 +0800, Eric Abrahamsen wrote: > I'm fooling around with comparing instances of different models, > trying to make a unified stream of instances that can be sorted by > date according to a certain datetime attribute on each model. I > thought I'd define a __cmp__

The User mess

2008-09-11 Thread Dan Ellis
First of all, congratulations to the team on reaching 1.0. It looks like a lot of good features landed in time. One thing that I still find messy, though, is the whole user/profile thing. Having separate models for users and profiles has a number of drawbacks: * extra DB hits * having to tra

Re: Restrict users to their own data

2008-09-11 Thread Simon Willison
On Sep 11, 5:23 pm, Glimps <[EMAIL PROTECTED]> wrote: >     I would like to restrict users to the data they can see/modify/ > delete on a table. I have a Reservation table that holds reservations > for multiple banners of Restaurant chain. I don't want the user from > franchiseX to be able to see/

Design question: Persistent / non-transactional process & django

2008-09-11 Thread [EMAIL PROTECTED]
This is half design question, half technical question. I'm hoping someone in this community may have experience to share. I need to feed data to a proprietary system over a TCP connection based on information entered into a web form. Currently I do this using django, where the django page opens

Re: NameError

2008-09-11 Thread unklbeemer
On Sep 11, 8:22 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > unklbeemer wrote: > > Thanks! That helped with that error...but now i get a new one lol > > > Exception Type: NoReverseMatch at /profiles/edit/ > > Exception Value: Reverse for 'profile_public' with arguments > > '(u'username',)' and k

Unexpected keyword argument 'raw_in_admin' in Django 1 release 9014?

2008-09-11 Thread bkev
Hi, I'm trying to set up this simple model in Django and I'm getting an "init got unexpected keyword argument 'raw_in_admin'" in Django 1.0 release 9014 when doing a syncdb. I'm trying to get a non-dropdown ForeignKey (or OneToOneField) field...am I doing something wrong or was something changed

Restrict users to their own data

2008-09-11 Thread Glimps
Hi, I would like to restrict users to the data they can see/modify/ delete on a table. I have a Reservation table that holds reservations for multiple banners of Restaurant chain. I don't want the user from franchiseX to be able to see/confirm reservations from franchiseY. Since all the add/e

Re: Restricting views

2008-09-11 Thread Matthias Kestenholz
On Thu, Sep 11, 2008 at 6:00 PM, ek_wals <[EMAIL PROTECTED]> wrote: > > What then is the point of 'is_superuser' or superuser's in general? > > Looking through the Django code, it seems that the only use for > superusers is that a superuser is automatically a moderator. > > Could be so much more.

looking for event registration/calendar modules

2008-09-11 Thread Marcus
Hi -- django newbie here putting together a site for a client who wants a calendar of events that users can register for. Before I build one I thought I'd check with the community to see if something similar already exists-- any suggestions? I think a general calendar model, or something that al

Re: Restricting views

2008-09-11 Thread ek_wals
What then is the point of 'is_superuser' or superuser's in general? Looking through the Django code, it seems that the only use for superusers is that a superuser is automatically a moderator. Could be so much more. On Sep 11, 8:27 am, "Matthias Kestenholz" <[EMAIL PROTECTED]> wrote: > On T

Re: utf-8 text in models with coding: keyword

2008-09-11 Thread Elizabeth Kellner
On 11 Sep., 14:27, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > Text in utf-8 is not unicode, this is bytestring (what we had in 0.96   > in __str__). From __unicode__ you have to return unicode ubjects, not   > utf-8 encoded bytestrings. This is important to know, and that was the root of the pr

Re: utf-8 text in models with coding: keyword

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 7:40 AM, Elizabeth Kellner <[EMAIL PROTECTED]>wrote: > > Hi. I have a UnicodeDecodeError error that I can't seem to get rid > of. My model has utf-8 text, which is being returned in the model's > __unicode__ function. However, I can't seem to use the expression > ("%s" %

Re: New Comments: Bad Magic Number Error

2008-09-11 Thread [EMAIL PROTECTED]
Wow, Thanks everyone!!! These are really helpful tips! Dave On Sep 11, 1:42 am, Dave <[EMAIL PROTECTED]> wrote: > On Sep 11, 9:15 am, Benjamin Buch <[EMAIL PROTECTED]> wrote: > > > > > find /path/to/the/directory/ -type f -name "*.pyc" -exec rm -f {} \; > > > Use it with caution, I'm no wizard wi

Re: Restricting views

2008-09-11 Thread Matthias Kestenholz
On Thu, Sep 11, 2008 at 5:22 PM, ek_wals <[EMAIL PROTECTED]> wrote: > > > And I can see exactly how to do it -- > copy contrib/admin/views/decorators.py:staff_member _required and > change > 'request.user.is_staff' to 'request.user.is_superuser' > > Sure seems repetitive (non-DRY) (wet?) > Its

Re: Restricting views

2008-09-11 Thread ek_wals
And I can see exactly how to do it -- copy contrib/admin/views/decorators.py:staff_member _required and change 'request.user.is_staff' to 'request.user.is_superuser' Sure seems repetitive (non-DRY) (wet?) Its seems so easy that I can't help but think that I'm overlooking something. Why would

Re: Restricting views

2008-09-11 Thread David Zhou
On Sep 11, 2008, at 11:07 AM, ek_wals wrote: > How should I restrict a page to a superuser only?? > > There's a 'staff_member_required' decorator, wht not a > 'superuser_required'? It'd be simple enough to write your own decorator to check for required permissions. I usually do so anyway, in

Restricting views

2008-09-11 Thread ek_wals
How should I restrict a page to a superuser only?? There's a 'staff_member_required' decorator, wht not a 'superuser_required'? Karl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: New django 1.0 website: www.astronomy2009.org

2008-09-11 Thread Juan Hernandez
nice dude :) On Fri, Sep 12, 2008 at 9:59 AM, Rock <[EMAIL PROTECTED]> wrote: > > Very interesting. Nice work. > > That scrolling calendar widget near the bottom right of the home page > needs a reset button. > Once you scroll a bit, it fills up with so many events that finding > your way back to

Re: Form validation problem for model with ForeignKey having unique=True,blank=True,null=True

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 8:14 AM, krylatij <[EMAIL PROTECTED]> wrote: > > You can create only one model with empty 'other' field. > If you could create one more, field 'other' will not be unique more. > That's why validation fails. > This is not generally true at the database level, as Nathaniel

Re: New django 1.0 website: www.astronomy2009.org

2008-09-11 Thread Rock
Very interesting. Nice work. That scrolling calendar widget near the bottom right of the home page needs a reset button. Once you scroll a bit, it fills up with so many events that finding your way back to today is tough. (Or maybe that thing is supplied by Google and so you are hosed as they alm

Re: help using django templates for site translation

2008-09-11 Thread Martin Sagastume
In some way.. it seems to, does anybody knows if its posible to add mod_python to XAMPP ??? I dont like the risky only for development way to show media ! On Thu, Sep 11, 2008 at 6:01 AM, Matthias Kestenholz <[EMAIL PROTECTED]> wrote: > > Hi, > > On Thu, Sep 11, 2008 at 9:41 AM, msagas <[EMAI

New django 1.0 website: www.astronomy2009.org

2008-09-11 Thread [EMAIL PROTECTED]
Dear all, We just released a new website for the International Year of Astronomy 2009 (http://www.astronomy2009.org). It's based on the improved versions of the django applications we used for www.iau.org. We are still working towards decoupling the core applications from the rest of the site, so

Re: No module named urls

2008-09-11 Thread Geir Gunnarsson
Hi, This same error materialized in another way in my case. It said: Caught an exception while rendering: Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage' I spent half a day figuring this out with the help of this thread.

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread TeenSpirit83
> > The L in Inline should not be capitalized.  Is it in some doc you are > working from? > > Karen The docs are correct! I'm so dumb, it is the first time I notice the L is not capitalized! I was sure of the opposite! Thanks a lot Karen! --~--~-~--~~~---~--~~ You

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 9:29 AM, TeenSpirit83 <[EMAIL PROTECTED]>wrote: > > I'm trying to upgrade my skills from django 096 to 1.0 so I started a > new app and tried to create an admin class for a class within its > model. > I got the error I specified in the subject. I paste down the > traceback

'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread TeenSpirit83
I'm trying to upgrade my skills from django 096 to 1.0 so I started a new app and tried to create an admin class for a class within its model. I got the error I specified in the subject. I paste down the traceback .Can you help me? Environment: Request Method: GET Request URL: http://localhost:8

Re: NameError

2008-09-11 Thread Rajesh Dhawan
unklbeemer wrote: > Thanks! That helped with that error...but now i get a new one lol > > > Exception Type: NoReverseMatch at /profiles/edit/ > Exception Value: Reverse for 'profile_public' with arguments > '(u'username',)' and keyword arguments '{}' not found. That means that you don't have a

My CACHE FAQ ... A for Asked (Not Answered)

2008-09-11 Thread vbgunz
I was reading the Django definitive guide and practicing on 0.96.2 *but* caching is seriously broken on that version. I mean seriously. Almost all of my issues were gone with a simple upgrade. I switched from the book to the docs but still have questions. I would really appreciate any help at all

Re: Creating an Archive

2008-09-11 Thread Russell Keith-Magee
On Wed, Sep 10, 2008 at 4:31 AM, djandrow <[EMAIL PROTECTED]> wrote: > I just get 2008-01-01, i guess thats cos I only have entries in 2008 > and the date is formatted wrongly, so my question is how can i get a > list of months, like you find on any archive links; September 2008, > October 2008 e

Re: utf-8 text in models with coding: keyword

2008-09-11 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-09-11, o godz. 14:16, przez ekellner: > Coding cookie has nothing to do with bytestring literals decoding, > it's only for unicode literals. If you try to coerce bytestring with > unicode, decoding will be done using default system encoding, if > encoding is not sp

Re: DjangoCon video

2008-09-11 Thread Ronny Haryanto
On Thu, Sep 11, 2008 at 5:28 PM, Petar Marić <[EMAIL PROTECTED]> wrote: > Unfortunately I was unable to participate on DjangoCon because of my > Master thesis. Will there be a video of some/all the talks? I saw this at http://twitter.com/djangocon/statuses/917078011: "DjangoCon videos will be

Re: utf-8 text in models with coding: keyword

2008-09-11 Thread ekellner
2008/9/11 Jarek Zgoda <[EMAIL PROTECTED]> > > Coding cookie has nothing to do with bytestring literals decoding, > it's only for unicode literals. If you try to coerce bytestring with > unicode, decoding will be done using default system encoding, if > encoding is not specified explicitly. > Inde

Re: Form validation problem for model with ForeignKey having unique=True,blank=True,null=True

2008-09-11 Thread krylatij
You can create only one model with empty 'other' field. If you could create one more, field 'other' will not be unique more. That's why validation fails. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

attach an image to text in the admin

2008-09-11 Thread V
Hi, I've quickly put together a small app that allows you to attach already uploaded images to a text you are actually writing. Moreover, you can upload new images as well. For the moment it exclusively uses the markdown[1] syntax to insert the image. You can check it out at http://code.google.

Re: utf-8 text in models with coding: keyword

2008-09-11 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-09-11, o godz. 13:40, przez Elizabeth Kellner: > Hi. I have a UnicodeDecodeError error that I can't seem to get rid > of. My model has utf-8 text, which is being returned in the model's > __unicode__ function. However, I can't seem to use the expression > ("%s"

utf-8 text in models with coding: keyword

2008-09-11 Thread Elizabeth Kellner
Hi. I have a UnicodeDecodeError error that I can't seem to get rid of. My model has utf-8 text, which is being returned in the model's __unicode__ function. However, I can't seem to use the expression ("%s" % object) to coerce my utf-8 into a string, without it tring to decode the string as asc

Re: mas sobre unicodedecode erros RESUELTO!

2008-09-11 Thread anonymous
Vaya, se resolvió el problema aparentemente pero me sigue dando problemas través la shell: In [59]: Mymodel.objects.all() Out[59]: --- UnicodeDecodeErrorTraceback (most recent call last) /home/user/my

Sort order of objects returned by ManyToManyField in admin

2008-09-11 Thread Nianbig
Hi, I´m using a ManyToManyField to link some posts to different categories. However, these categories doesn´t come in a sorted order in the Django admin-interface. Is there an extra argument I can give ManyToManyField to choose a field to sort from (eg. "ORDER BY category_title ASC") or can I ad

Re: Unittest for Formwizard

2008-09-11 Thread David Reynolds
On 11 Sep 2008, at 11:45 am, lingrlongr wrote: > The Formwizard gave me MANY problems. What exactly is happening? > Here's what I was experiencing: > http://groups.google.com/group/django-users/browse_thread/thread/ > 764ddb2d1b5d92d8/7ae5c2633564bd49#7ae5c2633564bd49 The actual wizard is wo

Re: Unittest for Formwizard

2008-09-11 Thread lingrlongr
The Formwizard gave me MANY problems. What exactly is happening? Here's what I was experiencing: http://groups.google.com/group/django-users/browse_thread/thread/764ddb2d1b5d92d8/7ae5c2633564bd49#7ae5c2633564bd49 keith On Sep 11, 4:46 am, David Reynolds <[EMAIL PROTECTED]> wrote: > Hi, > > I am

DjangoCon video

2008-09-11 Thread Petar Marić
Hi everybody, Unfortunately I was unable to participate on DjangoCon because of my Master thesis. Will there be a video of some/all the talks? Regards, -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *jabber: [EMAIL PROTECTED] *web: http://www.petarmaric.com

Re: Persistent Global Imports

2008-09-11 Thread Graham Dumpleton
On Sep 11, 3:24 pm, Chris <[EMAIL PROTECTED]> wrote: > I have an application that uses some large packages, such as Wordnet, > and the imports can take awhile. Is there a mechanism in Django to > persist imported package across requests? I'm running Django viamod_wsgi, and > it seems to re-impo

Re: lighttpd matters - setup

2008-09-11 Thread Valts Mazurs
Hi, Wishi, 1. Make sure that django fcgi process is running at all. $ ps ax | grep manage 2. Lighttpd config looks a bit weird for me. Why to have two fcgi processes - one for admin and other for regular site? Mine looks like this: === fastcgi.server = ( "/django.fcgi" => ( "djangoloc

Re: Filtering ManyToManyField

2008-09-11 Thread MikeHowarth
The model I'm using is very similar to that of Satchmo's Model basically looks like this: class Product(models.Model): name = models.CharField(_("Full Name"), max_length=255, blank=False, slug = models.SlugField(_("Slug Name"), blank=True, related_items = models.ManyToMan

Re: possible bug in django-admin

2008-09-11 Thread Benedict Verheyen
Karen Tracey wrote: > It's not trying to limit you to just one project. It's just trying to > prevent confusion by not letting you create and attempt to work with a > new project when you're running in an environment already set up to > manage a different project. In those cases, simply unset

Re: Form validation problem for model with ForeignKey having unique=True,blank=True,null=True

2008-09-11 Thread Nathaniel Griswold
My django version is 1.0-final-SVN-9013 --~--~-~--~~~---~--~~ 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 em

  1   2   >