Re: how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-18 Thread Andre Meyer
hi Rajesh so, implemented it as you told and it works very well. thanks for your patience and all the explanations. cheers André On Thu, Jul 17, 2008 at 7:22 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > > > > still, it's not exactly clear to me why the admin does not work the > same > >

Re: How to deal with two distinct UserProfile model ?

2008-07-18 Thread Hades_L
I figured out a solution for now, not the best imho but it does the job. I use the method is_staff to check if the user is part of the team. If True, then it's an employee, then it's a client. Based on that answer, I wrote a little helper method wich take a User in parameter, and return the correc

Re: accessing site settings in templates

2008-07-18 Thread Ross Riley
On 7/16/08, Jon Brisbin <[EMAIL PROTECTED]> wrote: > > I can't find a good answer to this in the Django docs: is there a good > way to access site-specific settings from your templates without > having to put them in context variables? I've got my media served by > Apache and everything else by Dj

Re: URL encoding problem

2008-07-18 Thread [EMAIL PROTECTED]
Hi! Thanks for your help.. more informations : I have downloaded the latest trunk this morning (0.97-pre-SVN-7947), but nothing changed... I run django on ubuntu server, python 2.5.1 and mysql 5 (apache + mod_python). I have copied the wrong urlPattern, this is the right one: (r'(?P[^

Re: How to deal with two distinct UserProfile model ?

2008-07-18 Thread [EMAIL PROTECTED]
If you're using the SVN version you can bypass the profile system and give both of them a OneToOne field. Instead of doing user.get_profile(), you would do user.client_profile, where client_profile is whatever your related_name happens to be. --~--~-~--~~~---~--~~ Y

similar method for get_or_create()

2008-07-18 Thread leppy
hi everyone, Can anyone tell me a method similar to django model's get_or_create for updating an object with a particular id only when it exists, or else to create a new object. Thanks in advance. leppy. --~--~-~--~~~---~--~~ You received this message because you

Glamour models & Fasion designing New look watch my profile http://www.geocities.com/cathrina39

2008-07-18 Thread hot rathi
Glamour models & Fasion designing New look watch my profile http://www.geocities.com/cathrina39 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

SVN checkout for users without access to SVN

2008-07-18 Thread warsng
I cannot install SVN on the machine i am currently accessing the internet through, is it possible for someone to provide me with a tarball/zip of the latest SVN co? Or is this hidden somewhere on the django site? --~--~-~--~~~---~--~~ You received this message becau

Re: SVN checkout for users without access to SVN

2008-07-18 Thread Phillip Parrin
there ya go, http://silver.parrin.nl/~phillip/django.tgz On Jul 18, 12:39 pm, warsng <[EMAIL PROTECTED]> wrote: > I cannot install SVN on the machine i am currently accessing the > internet through, is it possible for someone to provide me with a > tarball/zip of the latest SVN co? Or is this hid

Re: SVN checkout for users without access to SVN

2008-07-18 Thread Ramiro Morales
On Fri, Jul 18, 2008 at 7:39 AM, warsng <[EMAIL PROTECTED]> wrote: > > I cannot install SVN on the machine i am currently accessing the > internet through, is it possible for someone to provide me with a > tarball/zip of the latest SVN co? You can use the web interfaces of the distributed version

Model Inheritance in new-forms admin

2008-07-18 Thread cschand
When I tried model inheritance in new-forms admin, I faced some problems The below is the code i tried class Reporter(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) email = models.EmailField() def __str__(self): ret

Re: Model Inheritance in new-forms admin

2008-07-18 Thread Russell Keith-Magee
On Fri, Jul 18, 2008 at 7:00 PM, cschand <[EMAIL PROTECTED]> wrote: > > When I tried model inheritance in new-forms admin, I faced some > problems ... > What is wrong with me? You haven't checked the tickets: http://code.djangoproject.com/ticket/6755 Yours, Russ Magee %-) --~--~-~--~---

Re: Model Inheritance in new-forms admin

2008-07-18 Thread Andre Meyer
hi i had (and still have) the same problem . really hope this gets fixed (be)for(e) 1.0; patches seem to be available, so it can't be long... ;-)

Re: SVN checkout for users without access to SVN

2008-07-18 Thread warsng
Thanks, much appreciated guys. On Jul 18, 11:48 am, Phillip Parrin <[EMAIL PROTECTED]> wrote: > there ya go,http://silver.parrin.nl/~phillip/django.tgz > > On Jul 18, 12:39 pm, warsng <[EMAIL PROTECTED]> wrote: > > > I cannot install SVN on the machine i am currently accessing the > > internet th

Re: Model Inheritance in new-forms admin

2008-07-18 Thread cschand
Hi Russ The problem is not solved in the ticket Satheesh On Jul 18, 4:13 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Fri, Jul 18, 2008 at 7:00 PM, cschand <[EMAIL PROTECTED]> wrote: > > > When I tried model inheritance in new-forms admin, I faced some > > problems > ... > > Wha

Re: "ColorField"?

2008-07-18 Thread [EMAIL PROTECTED]
Leaf, You *have* checked Django Pluggables and Django snippets already, haven't you? :-) Great places to start! http://djangoplugables.com/ http://www.djangosnippets.org/ HTH, Carlos On Jul 8, 4:49 pm, "Peter Herndon" <[EMAIL PROTECTED]> wrote: > You'll want to check out django.db.models.field

Re: Model Inheritance in new-forms admin

2008-07-18 Thread Russell Keith-Magee
On Fri, Jul 18, 2008 at 7:41 PM, cschand <[EMAIL PROTECTED]> wrote: > > Hi Russ >The problem is not solved in the ticket No - that's because it's a bug report. When the bug is fixed, the ticket will be closed. Yours, Russ Magee %-) --~--~-~--~~~---~--~~ You r

Changing the value of the primary key

2008-07-18 Thread Torsten Bronger
Hallöchen! When I change the value of a primary key field (assuming that it is still unique), are depending tables also updated? I found on the net that "ON UPDATE CASCADE" has to be set for the child tables, but I didn't find anything Django-related. Tschö, Torsten. -- Torsten Bronger, aquis

inspectdb don't build model form MySQL

2008-07-18 Thread anoval
hi everyone, short summary says all about my problems, here is the case; -- DROP TABLE IF EXISTS LANGUAGE; CREATE TABLE LANGUAGE ( LANGUAGE_ID INT NOT NULLPRIMARY KEY AUTO_INCREMENT , LANGUAGE_TITLECHAR(100) NOT NULL ) TYPE = INNODB; DROP T

Re: i18n: How to the language on per-user basis

2008-07-18 Thread Rishabh Manocha
You could use "user profiles" which will allow you to store various user specific preferences. See [1] to learn how to do this. I am currently using profiles to identify users by the department they work in and the last time they edited a form (this is different from last login). Best, R [1] -

Re: i18n: How to the language on per-user basis

2008-07-18 Thread yml
Hello, Sometimes ago I try to solve a similar problem, it seems to me that the solution to your problem is to write a middleware. You will find an example there : http://yml-blog.blogspot.com/search/label/Django ---8< from django.utils.cache import patch_

Re: Field representation in n-f-admin

2008-07-18 Thread Jeff FW
If you just want to apply the formatting in the change_list view, then define a method in the class in question that returns the formatted string you want. Then, in the corresponding Admin class, put the name of that function in list_display, and that's it. If you're talking about modifying it i

Re: Changing the value of the primary key

2008-07-18 Thread Dan
Django sets this for you if your database supports it (ie: you are using postgres or mysql with innodb tables). If you are using mysql, check that tables aren't MyISAM. If you want to do this inside Django, more complex because if you change an object's primary key, Django concludes that you want t

Re: 64 bit integer field

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 12:30 AM, simon <[EMAIL PROTECTED]> wrote: > > How do i create a long long integer field in my model ? Do I use > decimal ? (worried about performance of the decimal field). I am using > the mysql backend. > > There's a very old ticket that has not yet been closed for addin

Re: Changing the value of the primary key

2008-07-18 Thread Torsten Bronger
Hallöchen! Dan writes: > Django sets this for you if your database supports it (ie: you are > using postgres or mysql with innodb tables). If you are using > mysql, check that tables aren't MyISAM. Okay, I have InnoDB. > If you want to do this inside Django, more complex because if you > chang

Re: newforms and commit=False

2008-07-18 Thread Rajesh Dhawan
Hi, > > Take a look at how Form Preview works. You should be able to adapt > > that to your above workflow: > >http://www.djangoproject.com/documentation/form_preview/ > > Thanks , that looks exactly like what I need! > I do not think however it is possible to use it with uploads as > django/cont

parent query for child

2008-07-18 Thread Casey Deccio
Hi, I'm looking for a good way to filter a query of a parent class for specific children. For example, given the model: from django.contrib.auth.models import Group class Team(Group): pass I want to find out which teams a user is a member of: >>> g = Group.objects.create(name='group1') >

Re: Changing the value of the primary key

2008-07-18 Thread Michael Glassford
Torsten Bronger wrote: > Hallöchen! > > Dan writes: > >> Django sets this for you if your database supports it (ie: you are >> using postgres or mysql with innodb tables). >If you are using >> mysql, check that tables aren't MyISAM. Are you saying that Django adds the "ON UPDATE CASCADE" to the

Re: similar method for get_or_create()

2008-07-18 Thread R. Gorman
Why do you need a method other than get_or_create? Could you not try to retrieve the object using get_or_create and then update the object if retrieved? R. On Jul 18, 5:57 am, leppy <[EMAIL PROTECTED]> wrote: > hi everyone, > > Can anyone tell me a method similar to django model's get_or_create

Re: Changing the value of the primary key

2008-07-18 Thread Dan
> > > Are you saying that Django adds the "ON UPDATE CASCADE" to the database > definition? I've never noticed it doing this (unless you're using a > patch that I submitted that does this for Foreign Keys where tell it to > do so). > > Or, are you saying that Django emulates this behavior? I don't

Re: SVN checkout for users without access to SVN

2008-07-18 Thread warsng
without all the SVN cruft http://warsng.googlepages.com/django-trunk.7z On Jul 18, 12:35 pm, warsng <[EMAIL PROTECTED]> wrote: > Thanks, much appreciated guys. > > On Jul 18, 11:48 am, Phillip Parrin <[EMAIL PROTECTED]> wrote: > > > there ya go,http://silver.parrin.nl/~phillip/django.tgz

Validation Implementation (architectural question) with newforms

2008-07-18 Thread Nash
Hi all, There are loads of places to validate your data in django. You can do it at the Model's field, at the Model.save() at the form's field level clean_FIELD_NAME(), at the form level clean_data() etc. If I have an Model with an email field, where do I write the validator for it? Considering

Heavy database query (max 32 tables problem)

2008-07-18 Thread Deniz Dogan
Hey. I have a model Course and then I have django.contrib.auth.models.User. Users and courses are related through M2M, so a user can register for many courses and a course can register multiple users. Now, given a potentially very long list of users, I want to retrieve all the courses for which a

newforms-admin weird error ( 'str' object has no attribute '_default_manager' )

2008-07-18 Thread Bram de Jong
Hello all, just updated to latest newforms-admin (r7947) and This is the admin for one of my (rather large) models: class Sound(SocialModel): # SocialModel is a model that defines some GenericRelation user = models.ForeignKey(User) # snip license = models.ForeignKey(License)

Re: Validation Implementation (architectural question) with newforms

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 10:47 AM, Nash <[EMAIL PROTECTED]> wrote: > > Hi all, > > There are loads of places to validate your data in django. You can do > it at the Model's field, at the Model.save() at the form's field level > clean_FIELD_NAME(), at the form level clean_data() etc. > > If I have a

Re: similar method for get_or_create()

2008-07-18 Thread Malcolm Tredinnick
On Fri, 2008-07-18 at 02:57 -0700, leppy wrote: > hi everyone, > > Can anyone tell me a method similar to django model's get_or_create > for updating an object with a particular id only when it exists, or > else to create a new object. That's exactly what the save() method on a model does. Per

Re: How to switch/force a language from inside a usual view function?

2008-07-18 Thread Valery Khamenya
Hi Malcolm, it worked out, many thanks for the great help! best regards -- Valery --~--~-~--~~~---~--~~ 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

Re: newforms-admin weird error ( 'str' object has no attribute '_default_manager' )

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 10:57 AM, Bram de Jong <[EMAIL PROTECTED]> wrote: > > Hello all, > > just updated to latest newforms-admin (r7947) and > Do you know what level you updated from? That's always handy to know when trying to pinpoint when a problem was introduced. > This is the admin f

Re: Changing the value of the primary key

2008-07-18 Thread Torsten Bronger
Hallöchen! Dan writes: > [...] > > I don't think it's best practice to give meaningful names to > primary key field in Django, you should probably have field name > and let Django auto-create a id field. You're right. I now also think that Django's abstraction layer for the RDBMS -- albeit thi

Nested for loops in template

2008-07-18 Thread brianmac44
I have two tables, one is entries and the other is comments. In the template I would like display how many comments for each entry and some other entry data. So far I have... view: entries_list = entries.objects.filter( ...) template: {% for p in object_list %} {{ p.na

Re: Changing the value of the primary key

2008-07-18 Thread J Meier
On Jul 18, 7:41 am, Torsten Bronger <[EMAIL PROTECTED]> wrote: > > Can I ask why you would need to change PKs? > > Yes. We are a scientific institution, and I create a samples > database. Frequently a sample gets a new name, however, the old > name(s) must be kept as aliases. > > For the alias

Re: Heavy database query (max 32 tables problem)

2008-07-18 Thread [EMAIL PROTECTED]
Theres no need for that list comprehension, you can just do Course.objects.filter(users__in=users) On Jul 18, 10:49 am, "Norman Harman" <[EMAIL PROTECTED]> wrote: > Deniz Dogan wrote: > > Hey. > > > I have a model Course and then I have django.contrib.auth.models.User. > > Users and courses are

Standard documentation method.

2008-07-18 Thread Chris
hello, Does django have a preferred method of commenting on code in docstrings? I notice that there is some specific ways that some applications write documentation in their code but didn't know if django had some kind of preferred method. I would like to be able to parse in my code documentation

Re: Nested for loops in template

2008-07-18 Thread brianmac44
Hi Scott, Thanks for your help, but I'm still having trouble. I using django-threadedcomments http://code.google.com/p/django-threadedcomments/ so its a little confusing. Here are my models http://dpaste.com/65848/ -Brian On Jul 18, 12:01 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > Brian,

Re: Heavy database query (max 32 tables problem)

2008-07-18 Thread Norman Harman
Deniz Dogan wrote: > Hey. > > I have a model Course and then I have django.contrib.auth.models.User. > Users and courses are related through M2M, so a user can register for > many courses and a course can register multiple users. Now, given a > potentially very long list of users, I want to retri

Problems Pickling Querysets

2008-07-18 Thread Ed Menendez
I saw a previously closed ticket 7506 for a related (no pun intended) problem. It seems like when we use select_related suddenly the queryset can't be pickled. This used to work back in May sometime. Currently using SVN 7944. Here's the model: class LeagueSeason(models.Model): is_conference_

Re: Heavy database query (max 32 tables problem)

2008-07-18 Thread Scott Moonen
Norman, unfortunately I think he's asking for the mutual intersection of the users' courses, not the union. -- Scott On Fri, Jul 18, 2008 at 11:49 AM, Norman Harman <[EMAIL PROTECTED]> wrote: > > Deniz Dogan wrote: > > Hey. > > > > I have a model Course and then I have django.contrib.auth.mode

Re: Nested for loops in template

2008-07-18 Thread Scott Moonen
Brian, I think the solution is to add a GenericRelation to your entries model; see http://www.djangoproject.com/documentation/contenttypes/#reverse-generic-relationsfor an explanation. I think that after doing this you'll be able to access p.comments.count (assuming that the generic relation is na

Multiple host for one single django project

2008-07-18 Thread Leon Yeh | New Avenue.net
Hi, I have been using one domain name for my django project. http://www.example.com. Now I need to add new domain name http://blog.example.com. In the new domain name, all the pattern should be same the main host(www) with one different pattern. For blog site, for ^$ pattern go to a differen

Re: Problems Pickling Querysets

2008-07-18 Thread Malcolm Tredinnick
On Fri, 2008-07-18 at 09:34 -0700, Ed Menendez wrote: > I saw a previously closed ticket 7506 for a related (no pun intended) > problem. It seems like when we use select_related suddenly the > queryset can't be pickled. This used to work back in May sometime. > Currently using SVN 7944. Pickling

Re: Problems Pickling Querysets

2008-07-18 Thread Ed Menendez
Ticket #7813. Let me know if I messed up the ticket report!! :-) Thanks, - Ed On Jul 18, 11:43 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2008-07-18 at 09:34 -0700, Ed Menendez wrote: > > I saw a previously closed ticket 7506 for a related (no pun intended) > > problem. It see

Re: Nested for loops in template

2008-07-18 Thread Scott Moonen
Brian, without knowing exactly how your models are configured, you can do something like this: {{ p.comment_set.count }} If you use it in more than one place (e.g., as {% if p.comment_set.count %} ... {{ p.comment_set.count }} ...), you will want to optimize things so that the SQL "COUNT()" query

Re: Nested for loops in template

2008-07-18 Thread brianmac44
That worked. I just updated my entries model to include comments = generic.GenericRelation(FreeThreadedComment) Thanks. -Brian On Jul 18, 12:30 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > Brian, I think the solution is to add a GenericRelation to your entries > model; > seehttp://www.djang

Re: request getlist() in order?

2008-07-18 Thread Rob Hudson
Thanks Arien! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Fo

i18n, how to denote context

2008-07-18 Thread Torsten Bronger
Hallöchen! In one of my models, I have from django.utils.translation import ugettext_lazy as _ ... class Meta: verbose_name = _("sample series") verbose_name_plural = _("sample series") However in German, both strings will be different. How do I do that? Tschö, Torsten.

Re: i18n, how to denote context

2008-07-18 Thread Malcolm Tredinnick
On Fri, 2008-07-18 at 22:33 +0200, Torsten Bronger wrote: > Hallöchen! > > In one of my models, I have > > from django.utils.translation import ugettext_lazy as _ > > ... > class Meta: > verbose_name = _("sample series") > verbose_name_plural = _("sample series") > > Howev

Re: i18n, how to denote context

2008-07-18 Thread Torsten Bronger
Hallöchen! Malcolm Tredinnick writes: > On Fri, 2008-07-18 at 22:33 +0200, Torsten Bronger wrote: > >> In one of my models, I have >> >> from django.utils.translation import ugettext_lazy as _ >> >> ... >> class Meta: >> verbose_name = _("sample series") >> verbose_name_plu

Re: Validation Implementation (architectural question) with newforms

2008-07-18 Thread Nash
Yesh, this looks like the fix. Thanks alot Karen! On Jul 18, 8:01 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Jul 18, 2008 at 10:47 AM, Nash <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > There are loads of places to validate your data in django. You can do > > it at the Model's field

Re: PATH problem?

2008-07-18 Thread Álvaro J. Iradier
Maybe this can be related: https://devel.airadier.com/default/blog/modpythonvirtualenvironments I found the same problem, modules being imported from the command line interpreter, but not from mod_python, and managed to workaround it as explained above. On Wed, Jul 16, 2008 at 12:20 AM, Franti

Re: i18n, how to denote context

2008-07-18 Thread Torsten Bronger
Hallöchen! Ingrid Bronger writes: > Malcolm Tredinnick writes: > >> [...] >> >> You have to make them different at the English level as well >> then. Gettext always merges identical source strings. > > Maybe Django could swallow a certain Unicode letter in > ugettext_lazy ... then I could use i

ifequal with url pattern?

2008-07-18 Thread Eliza
Hi, I'm new to Django and am working on a template, and I have the feeling I may be approaching something the wrong way. I have a navigation bar that is produced in the template, but needs to look slightly different for each page, because it should have the menu item for the current page highlig

Using multiple databases

2008-07-18 Thread CPF_
Hi, I'm currently starting a project in django, and there's some data already in another database. We're planning to go and use that information (more specifically user information) in the django application. However, this forms several problems: 1) There are 2 different databases. A django setti

Re: Adding and removing template dirs on the fly

2008-07-18 Thread Arien
On Thu, Jul 17, 2008 at 8:04 AM, 3xM <[EMAIL PROTECTED]> wrote: > I already tried loading templates a la > > '%s/name_of_template.html' % channel_template_folder > > but the result is that it when the template includes other templates, > it will look for it in the same folder, not doing the fallba

Newforms admin and custom widgets

2008-07-18 Thread Rob Hudson
Hello, This is question my get long so I'll post the short version then the longer more detailed version: The short: My goal is provide the user with an autocomplete AJAX widget to quickly look up ISBNs. The ISBNs will end up in a text field in HTML to be sent back to the backend where I'd like

Re: Using multiple databases

2008-07-18 Thread Dan
> Most ideally we would like to have it so that the application uses DB1 > (defined in the settings.py file) as the main database, but when it's > down to users, uses DB2.user as the users table. > Currently we are thinking of using raw sql, but that would only be a > last resort preferably. And at

Re: inspectdb don't build model form MySQL

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 7:42 AM, anoval <[EMAIL PROTECTED]> wrote: > > hi everyone, > > short summary says all about my problems, here is the case; > > -- > [snipped table definitions and basically empty models.py] > > did i do something wrong or it's the Django thing? > > oh, and yeah all tables

Re: Using multiple databases

2008-07-18 Thread [EMAIL PROTECTED]
Dan wrote: > > Most ideally we would like to have it so that the application uses DB1 > (defined in the settings.py file) as the main database, but when it's > down to users, uses DB2.user as the users table. > Currently we are thinking of using raw sql, but that would only be a >

newforms-admin branch has been merged into trunk

2008-07-18 Thread Brian Rosner
I have just recently merged the newforms-admin branch into trunk as of r7967 [1]. This is an extremely backward incompatible change. The entire admin application in contrib has been refactored. The newforms module has a few new features, but those changes are backward compatible. The branc

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread mtrier
On Jul 18, 8:01 pm, Brian Rosner <[EMAIL PROTECTED]> wrote: > I have just recently merged the newforms-admin branch into trunk as of   > r7967 [1]. This is an extremely backward incompatible change. The   > entire admin application in contrib has been refactored. The newforms   > module has a few

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Frank Singleton
Brian Rosner wrote: > I have just recently merged the newforms-admin branch into trunk as of > r7967 [1]. A BIG Thankyou to all involved !! Cheers / Frank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Ariel Mauricio Nunez Gomez
Thanks a lot!! BTW: Bryan, you've gotta redo the commits visualization[1] for another big explosion!! [1] http://oebfare.com/blog/2008/jun/24/django-code_swarm/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Django + tiny_mce

2008-07-18 Thread theTrystero
I ran into problems with tinyMCE integration too... I ended up adding the new line to urls.py in the wrong order. D'oh. Complete file looked like this: from django.conf.urls.defaults import * urlpatterns = patterns('', # Example: # (r'^cms/', include('cms.foo.urls')), # Uncomment t

Admin fields setting raises FieldDoesNotExist

2008-07-18 Thread Justin Myers
Hello again! Still working on the blogging app I mentioned a couple of days ago for my student newspaper. It's working on our production server right now (so some of the other editors can check it out and make suggestions), though I'll naturally be making some tweaks here and there. Right now, th

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Chris H.
For those who aren't ready to move towards newforms-admin, Jacob has created a notable_moments/pre-newforms-admin tag. A BIG thanks to Brian and all those who had a hand in getting us to this day! Thanks!! -C --~--~-~--~~~---~--~~ You received this message becaus

Re: Admin fields setting raises FieldDoesNotExist

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 8:44 PM, Justin Myers <[EMAIL PROTECTED]> wrote: > > Hello again! Still working on the blogging app I mentioned a couple of > days ago for my student newspaper. It's working on our production > server right now (so some of the other editors can check it out and > make sugge

Re: Admin fields setting raises FieldDoesNotExist

2008-07-18 Thread Justin Myers
Ah, worked perfectly. Thanks so much! -Justin On Jul 18, 8:52 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Python gothca: you've neglected to put a comma after 'slug' in 'fields': > ('slug').  Single-element tuples need to have a comma after their one > element to force them to be tuples.  In

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Robvdl
Thanks very much for this I have been running Newforms Admin for a while, so when the big changeover was going to hit, I would be ready, not changing too much existing code. One thing I noticed now, running SVN 7968 vs my last checkout I did of the old Newforms Admin branch (7871): - The Auth

RSS feed dont work well with Internet Explorer

2008-07-18 Thread [EMAIL PROTECTED]
I use the Django syndication to generate RSS feeds for my site. The feed is visible correctly in Firefox but Internet explorer v6x cant really interpret this feed and tries to save it as a file. I have tried using both - the RssFeed as well as the Atom1Feed I noticed that the rss generated from

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Robvdl
Thanks for that, had a quick read and it looks like I don't need to import each admin.py from all my own apps that way anymore either in the __init__.py of each app, as autodiscover now handles all that, nice. It bought back the Auth and Sites app too. On Jul 19, 2:36 pm, "Karen Tracey" <[EMAIL P

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Eric Abrahamsen
Beers all around! On Jul 19, 2008, at 8:01 AM, Brian Rosner wrote: > > I have just recently merged the newforms-admin branch into trunk as of > r7967 [1]. This is an extremely backward incompatible change. The > entire admin application in contrib has been refactored. The newforms > module has a

Re: PATH problem?

2008-07-18 Thread Graham Dumpleton
On Jul 19, 7:24 am, "Álvaro J. Iradier" <[EMAIL PROTECTED]> wrote: > Maybe this can be related: > > https://devel.airadier.com/default/blog/modpythonvirtualenvironments > > I found the same problem, modules being imported from the command line > interpreter, but not frommod_python, and managed t

problem with gettext at os x 10.4.11

2008-07-18 Thread zehi
Hey Django fellows, Could somebody point me where is the problem. on my machine? While I try to run: django-admin.py makemessages -a ... I'm getting error message: processing language ar Error: errors happened while running xgettext on __init__.py language `Python' unknown I'm using Python 2

Re: Cookie content string error

2008-07-18 Thread 0sn
This is happening to me as well, only under modpython and not under the test server. But it's not the session cookies, it's just cookies I set myself. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

superuser has no rights with newforms admin

2008-07-18 Thread joshuajenkins
Just upgraded to the new trunk which includes the newforms addition to the admin app, so obviously I'm very excited to play around with it. Decided to port over a very very new app, which is basically just a model definition at this point. However when I create my superuser and log in the admin s

Re: superuser has no rights with newforms admin

2008-07-18 Thread joshuajenkins
Figured out what went wrong. You now have to register your models with the admin app, which will give you access. If anyone else that is completely awful at Django is running into the same problem let me know and I'll go in to more depth. On Jul 18, 11:16 pm, joshuajenkins <[EMAIL PROTECTED]> w