Sort by output of arbitrary method

2007-03-13 Thread Mark Engelberg
According to the tutorial: "You can click on the column headers to sort by those values -- except in the case of the was_published_today header, because sorting by the output of an arbitrary method is not supported. " Well, I understand that it would not be as efficient to sort on an attribute th

视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码

2007-03-13 Thread zhangfang
视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码 视频会议客户端+服务端全套绝对完整源代码,视频清晰,语音堪比电话音质,可比拟业界任意一款 软件视频会议产品,现出售全部源代码,可先免费试用产品,可接受视频会议软件定制,功能布局更换 界面庄重友好 视频25路数多种显示布局 16路混音 最低带宽支持56K 以及无限移动上网 产品成熟稳定 现出售产品全套代码以及完整的代码开发文档 代码文档以及视频音频编码以及接口 都有完整的说明文档可做远程视频教育以及远程视频培训 在低带宽网络情况下可支持大规模用户 并发,无延迟。 视频会议全部源

视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码

2007-03-13 Thread zhangfang
视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码 视频会议客户端+服务端全套绝对完整源代码,视频清晰,语音堪比电话音质,可比拟业界任意一款 软件视频会议产品,现出售全部源代码,可先免费试用产品,可接受视频会议软件定制,功能布局更换 界面庄重友好 视频25路数多种显示布局 16路混音 最低带宽支持56K 以及无限移动上网 产品成熟稳定 现出售产品全套代码以及完整的代码开发文档 代码文档以及视频音频编码以及接口 都有完整的说明文档可做远程视频教育以及远程视频培训 在低带宽网络情况下可支持大规模用户 并发,无延迟。 视频会议全部

视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码

2007-03-13 Thread zhangfang
视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码 视频会议客户端+服务端全套绝对完整源代码,视频清晰,语音堪比电话音质,可比拟业界任意一款 软件视频会议产品,现出售全部源代码,可先免费试用产品,可接受视频会议软件定制,功能布局更换 界面庄重友好 视频25路数多种显示布局 16路混音 最低带宽支持56K 以及无限移动上网 产品成熟稳定 现出售产品全套代码以及完整的代码开发文档 代码文档以及视频音频编码以及接口 都有完整的说明文档可做远程视频教育以及远程视频培训 在低带宽网络情况下可支持大规模用户 并发,无延迟。 视频会议全部

视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码

2007-03-13 Thread zhangfang
视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码 视频会议客户端+服务端全套绝对完整源代码,视频清晰,语音堪比电话音质,可比拟业界任意一款 软件视频会议产品,现出售全部源代码,可先免费试用产品,可接受视频会议软件定制,功能布局更换 界面庄重友好 视频25路数多种显示布局 16路混音 最低带宽支持56K 以及无限移动上网 产品成熟稳定 现出售产品全套代码以及完整的代码开发文档 代码文档以及视频音频编码以及接口 都有完整的说明文档可做远程视频教育以及远程视频培训 在低带宽网络情况下可支持大规模用户 并发,无延迟。 视频会议全部源

视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码

2007-03-13 Thread zhangfang
视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码 视频会议客户端+服务端全套绝对完整源代码,视频清晰,语音堪比电话音质,可比拟业界任意一款 软件视频会议产品,现出售全部源代码,可先免费试用产品,可接受视频会议软件定制,功能布局更换 界面庄重友好 视频25路数多种显示布局 16路混音 最低带宽支持56K 以及无限移动上网 产品成熟稳定 现出售产品全套代码以及完整的代码开发文档 代码文档以及视频音频编码以及接口 都有完整的说明文档可做远程视频教育以及远程视频培训 在低带宽网络情况下可支持大规模用户 并发,无延迟。 视频会议全部源

视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码

2007-03-13 Thread zhangfang
视频会议源码 视频会议源代码 视频会议代码 视频会议免费代码出售视频会议代码 视频会议客户端+服务端全套绝对完整源代码,视频清晰,语音堪比电话音质,可比拟业界任意一款 软件视频会议产品,现出售全部源代码,可先免费试用产品,可接受视频会议软件定制,功能布局更换 界面庄重友好 视频25路数多种显示布局 16路混音 最低带宽支持56K 以及无限移动上网 产品成熟稳定 现出售产品全套代码以及完整的代码开发文档 代码文档以及视频音频编码以及接口 都有完整的说明文档可做远程视频教育以及远程视频培训 在低带宽网络情况下可支持大规模用户 并发,无延迟。 视频会议全部源

Re: How do I make a TextArea box in a form bigger?

2007-03-13 Thread Kenneth Gonsalves
On 14-Mar-07, at 12:02 PM, Michael Lake wrote: > The textarea is about two lines high only. I want the text entry > box to be much > bigger as it will be holding a full page of text including HTML tags. widgets.TextArea(attrs={'rows':10,'cols':60}) for example -- regards kg http://lawgon.l

How do I make a TextArea box in a form bigger?

2007-03-13 Thread Michael Lake
Hi all I'm having problems trying to understand how to customise an element in a form. Im using a TextField and I want the TextArea element to be much bigger in size. From reading I gather one uses widgets. I found this page but it's quite different from the code in my model or view. http://ww

for UNICEF

2007-03-13 Thread MacH G
I'm extending a personal invitation to my friends and family. http://friends.unicefusa.org/r/beee81202345102a8408 -- ashok --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

{% url %} bug ?

2007-03-13 Thread akonsu
hello, urlpatterns = patterns(..., (r'^path/?$', 'path.to.view')...) in template: {% url path.to.view %} rendered as /path/? note the trailing '?' which is a part of the regular expression. konstantin --~--~-~--~~~---~--~~ You received this message because

Re: Using template filters inside condition statements

2007-03-13 Thread bgcooper
> First, you could see 'choices' parameter in CharField or IntegerField, > and django has a handly function get_FOO_display() to get the > corresponding string value of a special key, just like what you want. > In db_api document, searcin get_FOO_display you'll get the answer. This is handy to kn

cool!!!!

2007-03-13 Thread aviel571
http://www.fav.co.il/main.php?parent=587&page=2011 cool!!! --~--~-~--~~~---~--~~ 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

Re: permissions in template

2007-03-13 Thread bgcooper
Ahh, the authentication documentation (http://www.djangoproject.com/ documentation/authentication/) mentions that you need use RequestContext to get user and perms in your template. We were simply passing request.user into our template to get user information. Here's how you do it. In your view

Re: Model question

2007-03-13 Thread [EMAIL PROTECTED]
I would create an employee_history table Then have an employee_id, date_change, old_dept, new_dept. Or if you wanted to track multiple types of changes...just have employee_id, date_change, change description, something like that. On Mar 13, 7:07 pm, "DuncanM" <[EMAIL PROTECTED]> wrote: > I'm n

Re: Model question

2007-03-13 Thread Rubic
Gustav, you're probably going to want a third table: EmployeeDeptHistory = id employee_id department_id transfer_date Add a field attribute in the employee table that references this history. -- Jeff Bauer Rubicon, Inc. --~--~-~--~~~---~--~~ You

Re: referncing a model within a model

2007-03-13 Thread [EMAIL PROTECTED]
Can you post your current code...and the error you are receiving? On Mar 13, 7:13 pm, "DuncanM" <[EMAIL PROTECTED]> wrote: > I have a schema as follows: > > Team > Fixture > Result > = > ==== > id > id > id > name > homeTeam

Re: Problem with use of an apostrophe in query

2007-03-13 Thread dougeven
The production system is Apache2.0/mod_python, the development system is django runserver... On Mar 13, 10:21 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 14-Mar-07, at 8:32 AM, dougeven wrote: > > > The development environment is Ubuntu Dapper, and the production > > system runs a recen

Re: Problem with use of an apostrophe in query

2007-03-13 Thread Kenneth Gonsalves
On 14-Mar-07, at 8:32 AM, dougeven wrote: > The development environment is Ubuntu Dapper, and the production > system runs a recent Mandriva release. are both on the same type of platform - that is, both on apache/ mod_python, or is one on the django runserver and the other not? -- regards

Problem with use of an apostrophe in query

2007-03-13 Thread dougeven
I've recently deployed my first Django app and I'm grateful to all the Django developers for such a solid framework. It has been a surprisingly pleasant experience. I have one nagging issue, however. In the production environment queries using "icontains" where the value contains an apostrophe (as

Re: sql log

2007-03-13 Thread akonsu
could you explain how to add it to an application exactly? the explanations given with the snippet are not enough for me. thanks konstantin On Mar 13, 8:25 pm, "Ross Poulton" <[EMAIL PROTECTED]> wrote: > On Mar 14, 8:54 am, "Greg Donald" <[EMAIL PROTECTED]> wrote: > > > How can I see the sql Dja

egodl

2007-03-13 Thread goldmember
IF YOU EVER WONDERED IF IT IS POSSIBLE TO MAKE MONEY ONLINE AND DO SO SURPRISINGLY FAST-THEN YOU ARE GOING TO LOVE THIS. THIS CAN WORK FOR ANYONE. CAN TURN $12 INTO $25,000 or More USING EGOLD. READING THIS COULD CHANGE YOUR FINANCIAL LIFE! I found this on a bulletin board and decided to try it.

Re: Using template filters inside condition statements

2007-03-13 Thread limodou
On 3/14/07, bgcooper <[EMAIL PROTECTED]> wrote: > > Our app uses a number of state integers mapped to names inside a > dictionary. The state stored in the model is an integer and we use the > dictionary to pull out the names whenever we want to. > > We have a custom template filter to get the name

Re: sql log

2007-03-13 Thread Ross Poulton
On Mar 14, 8:54 am, "Greg Donald" <[EMAIL PROTECTED]> wrote: > How can I see the sql Django produces? There was a fantastic template snippet posted recently at DjangoSnippets - http://www.djangosnippets.org/snippets/93/ - I added this to an application and used its output to whither down a 380+ q

referncing a model within a model

2007-03-13 Thread DuncanM
I have a schema as follows: Team Fixture Result = ==== id id id name homeTeam fixture_id . awayTeam homeScore date awayScore

Re: Model question

2007-03-13 Thread DuncanM
I'm not sure exactly how you could do this, but for an employee to change department, you will edit it. This edit is saved in django's admin log (or whatever its called) so maybe you look at something similar to that where it only saves the changes for an employee where the department id has chan

Model question

2007-03-13 Thread Gustav
Hi guys! Sorry for the newbie question here, but I've looked around and couldn't find the answer... So, here's the problem: say I've got two models and a database that look like this: EMPLOYEE DEPARTMENT == employee_id

Re: (x)html tags used to render newforms

2007-03-13 Thread Frédéric Roland
Thank you for your answers. James Bennett a écrit : > If you have Django print out the entire form's HTML in one go, it will > automatically add 'label' elements for each field. It will not (at the > moment) add fieldsets and legends. > > It's also quite easy to output these yourself in a templat

Using template filters inside condition statements

2007-03-13 Thread bgcooper
Our app uses a number of state integers mapped to names inside a dictionary. The state stored in the model is an integer and we use the dictionary to pull out the names whenever we want to. We have a custom template filter to get the names from the template context. e.g. {{ message.state|stateNa

Re: Django FileBrowser

2007-03-13 Thread patrick k.
if you can´t see the mentioned screenshot, your urls are probably configured wrong. be sure to follow the installation guide EXACTLY - I´ve done that with all of my projects and I don´t have any problems. check the settings file (esp. MEDIA_ROOT and MEDIA_URL). patrick. Am 13.03.2007 um 19:

Re: Malformed Mysql request ...

2007-03-13 Thread Collin Grady
This was answered in IRC, but for completeness, in case someone else comes along this: You can't use **new_data in a manipulator, as it's not a normal dict - the resulting data was invalid, which triggered the bad query :) On Mar 13, 8:39 am, "dbee" <[EMAIL PROTECTED]> wrote: > I have a Customer

Re: search_fields problem

2007-03-13 Thread sansmojo
I found this old post of my own while doing a search for a similar problem. I've had this problem repeatedly on several sites. It also goes along with another problem, For example, using the same model as above, but the following: class Admin: search_fields = ['title', 'recipe'] list_d

Re: field model from external app, won't show up

2007-03-13 Thread James Bennett
On 3/13/07, Panos Laganakos <[EMAIL PROTECTED]> wrote: > then in the template file I try to: > {% for tag in object.get_tag_list %} {{ tag.name }} {% endfor %} The many-to-many relationship will set up an accessor 'tag_set' which is a manager; the correct form in pure Python would be for tag in

Re: Question on Django ORM

2007-03-13 Thread James Bennett
On 3/13/07, devdiscuss <[EMAIL PROTECTED]> wrote: > Hi, does the ORM in Django support nested objects? For instance, > assuming I have a User model which should have multiple mailing > addresses, can I encapsulate the address information (street, city, > state, etc.) into an object vs. individual

Re: sql log

2007-03-13 Thread James Bennett
On 3/13/07, Greg Donald <[EMAIL PROTECTED]> wrote: > How can I see the sql Django produces? Is it being logged somewhere > or can I configure Django to log it somewhere? I realize I can look > at the logs from my db server but I'm wanting just the queries > produced by Django itself. http://www

Re: Malformed Mysql request ...

2007-03-13 Thread dbee
Can someone please help me with this ? I can't get it to work, and I'm just staring at the screen ... On Mar 13, 3:39 pm, "dbee" <[EMAIL PROTECTED]> wrote: > I have a Customers model that I'd trying to add values to from an > oldform custom form manipulator. However it keeps telling me that > th

sql log

2007-03-13 Thread Greg Donald
How can I see the sql Django produces? Is it being logged somewhere or can I configure Django to log it somewhere? I realize I can look at the logs from my db server but I'm wanting just the queries produced by Django itself. Thanks, -- Greg Donald http://destiney.com/ --~--~-~--~--

newforms and special characters

2007-03-13 Thread Grupo Django
Hello, I'm having some problem using newforms. When I introduce a string with special characters like ñ it just cut it. example: Añadir output: A Does anybody know why? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: field model from external app, won't show up

2007-03-13 Thread Panos Laganakos
I came across, http://code.google.com/p/django-tagging/ which looks pretty interesting. I will be trying that out. Nonetheless, I'd still like to know what am I (if I am), doing wrong on my own implementation. On Mar 13, 6:11 pm, "Panos Laganakos" <[EMAIL PROTECTED]> wrote: > I've created an app

Re: Playing with fixtures and django serializers -> Errors...

2007-03-13 Thread Russell Keith-Magee
On 3/13/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > Jens Diemer schrieb: > > I can't trying this. Because now i have a error before the serializers > > starts working: """ContentType matching query does not exist.""" > > On a other platform it works! > I don't known why... > > But if i import t

newforms and templating

2007-03-13 Thread enquest
Hello, If you have a form and pass it to the template you can print it like. {{ form.as_ul }} However if I want to split it in 3 "ul" I can't do because there is no means to split the form. So I need to render the form by hand for the special markup. However its a bit cummbersome to write ea

Re: Trying to get fixtures working - problem with Site

2007-03-13 Thread Russell Keith-Magee
On 3/13/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > > How are you producing your data file? Is this failure caused by a data > > file produced by dump, or is it manually created? Can you provide a > > small fixture file (and model) that exhibits the problem? > > I created my application, then

Re: newforms status

2007-03-13 Thread Rubic
On Mar 13, 10:27 am, "Aljosa Mohorovic" <[EMAIL PROTECTED]> wrote: > what's the status of newforms? http://tinyurl.com/2mtctq -- Jeff Bauer Rubicon, Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: django server: reload and samba share...

2007-03-13 Thread Rubic
On Mar 13, 9:17 am, Jens Diemer <[EMAIL PROTECTED]> wrote: > My sources are on a linux samba share. I used this share under windows > xp and start the django developer server from this share. > > The reload mechanism don't work! > > When i copy the source from the share into my local filesystem, t

Re: Question on Django ORM

2007-03-13 Thread Condredge
Yep, you can use a Related Model. So you might do it this way: class Address(models.Model): line1 = models.Charfield(maxlength=100) line2 = models.Charfield(maxlength=100, blank=True, null=True) city = models.Charfield(maxlength=100) state = models.Charfield(maxlength=2) coun

Download Free ScreenSavers and Wallpapers!

2007-03-13 Thread amar
Download Free ScreenSavers and Wallpapers! - http://surl.in/HLSCR238206SVRAKSX-google --~--~-~--~~~---~--~~ 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@googlegr

Download Free ScreenSavers and Wallpapers!

2007-03-13 Thread amar
Download Free ScreenSavers and Wallpapers! - http://surl.in/HLSCR238206SVRAKSX-google --~--~-~--~~~---~--~~ 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@googlegr

Personal Development Program

2007-03-13 Thread mike
Personal Development Program www.libertyleague.com/beyond-freedom At Beyond-Freedom we are dedicated to coaching others to success. However, we can only help and support people who truly want change in their life. Beyond-Freedom in association with Liberty League International provide personal d

Re: Django FileBrowser

2007-03-13 Thread Mary
I would like to know why i can't see the thumbnails althought i have python-imaging-1.1.5-3.fc4 any ideas?? On Mar 13, 8:01 pm, "Mary" <[EMAIL PROTECTED]> wrote: > No i can't see this pictures and directories > but when i copy and past the url before the admin url [sorry i read > this note in th

Question on Django ORM

2007-03-13 Thread devdiscuss
Hi, does the ORM in Django support nested objects? For instance, assuming I have a User model which should have multiple mailing addresses, can I encapsulate the address information (street, city, state, etc.) into an object vs. individual fields like address1_street, address1_city? In looking t

Re: Implementing an 'extent' query

2007-03-13 Thread Tim Chase
> Instances of Place will be stored in one table, and instances > of Restaurant will be stored in another table. How would I go > about implementing an efficient 'extent' query: a QuerySet > which would give me an instance of Place for each row in > **both** tables? (Or instances of Place or Resta

Re: Django FileBrowser

2007-03-13 Thread Mary
No i can't see this pictures and directories but when i copy and past the url before the admin url [sorry i read this note in the steps and i think i missed it the first time]i was able to add directories But i still can't see the http://trac.dedhost-sil-076.sil.at/trac/filebrowser/chrome/site/fb

Re: Exception in template rendering

2007-03-13 Thread Jeff Forcier
Cesco, I just ran into this myself and it appears there is a ticket (two actually, one was closed as 'worksforme') for the bug: http://code.djangoproject.com/ticket/2351 http://code.djangoproject.com/ticket/2945 (closed) The 2-line patch attached to #2351 fixes the problem. Regards,

Re: Django FileBrowser

2007-03-13 Thread patrick k.
before you click on "make directory", do you see the directory- listing like this: http://trac.dedhost-sil-076.sil.at/trac/filebrowser/chrome/site/fb_2.jpg did you follow step 6? it seems that the urls aren´t configured. patrick Am 13.03.2007 um 17:14 schrieb Mary: > > I would like to use Dja

Re: Displaying previous entries

2007-03-13 Thread bjornkri
Awesome... that did it. Here's my function as a reference: def oldentries(start, number): x = Entry.objects.filter(pub_date__lt=start)[:number] return { 'object_list':x } and then I can call {{ oldentries object.pub_date 5 }} to get the previous five entries. Perfect, thanks :)

Re: Permalink decorator and generic views, revisited

2007-03-13 Thread dchandek
> I *think* that so long as you don't have multiple URLs pointing at the > same generic view you'll be OK, but otherwise there could be issues -- > we're working on it. Thanks for the reply. This is exactly the problem. I want to use object_detail and object_list for multiple URLs, so I'll be int

Re: Implementing an 'extent' query

2007-03-13 Thread James Bennett
On 3/13/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > Is there anything like this already in Django? Django currently does not support model subclassing -- if anything happens to work, it's more accident than anything else, because proper support for model subclassing is still being worked on.

Re: Displaying previous entries

2007-03-13 Thread theju
Oh man...I am having such a bad day...too many typosreally sorry man. You can use the filter method to get the required output. The field lookup types will also be very helpful. So you could probably use Entry.objects.filter(your_datefield__lte = '2007-03-13') [:5] What the above piece of c

Django FileBrowser

2007-03-13 Thread Mary
I would like to use Django file browser i did the steps 1-8 that is on the link http://trac.dedhost-sil-076.sil.at/trac/filebrowser/wiki#DjangoFileBrowser and when i open my admin interface i found the filebrowse but when i click on Adddirectory it gave me an error App 'filebrowser', model 'mkdi

Re: Displaying previous entries

2007-03-13 Thread theju
Oh sorry for the typo, the code should read as Entry.objects.filter(your_datefield__lte = '2007-03-13') [:5] (be wary of the double underscores) -Thejaswi Puthraya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Displaying previous entries

2007-03-13 Thread theju
Hi Björn, You can use the filter method to get the required output. The field lookup types will also be very helpful. So you could probably use Entry.objects.filter(your_datefield_lte = '2007-03-13') [:5] What the above piece of code does is it shows the last five entries from the Entry object w

field model from external app, won't show up

2007-03-13 Thread Panos Laganakos
I've created an app 'meta', which defines a 'Tag' model from the 'blog' app I do: from mysite.meta.models import Tag class Post(models.Model): ... tags = models.ManyToManyField(Tag, blank=True, null=True) ... then in the template file I try to: {% for tag in object.get_tag_list %}

Implementing an 'extent' query

2007-03-13 Thread Laurie Harper
Say I have two model classes, one of which is a sub-class of the other: class Place(models.Model): ... class Restaurant(Place): objects = models.Manager() ... [Note, I'm using model inheritance here, **not** a OneToOneField. The explicit assignment of 'objects' seems to be necessary or Re

Re: {% url %} problem

2007-03-13 Thread Ivan Sagalaev
akonsu wrote: > thank you Ivan, > > the problem with collapsing is that the 'name' parameter in my view > does not get the default value then if the url is empty. Oh... Indeed :-( Then may be just checking the value inside the function is your best bet for this case. --~--~-~--~~--

Re: Restricting Access to Users

2007-03-13 Thread Stephen Mizell
Sweet, thanks for your help, Sam. I'll be reading about this the rest of the afternoon. On Mar 13, 10:54 am, "Sam" <[EMAIL PROTECTED]> wrote: > It's up to your code inside the middleware to restrict or allow the > access. > > For example, you could check the request.META['PATH_INFO'] for zones >

Re: Restricting Access to Users

2007-03-13 Thread Sam
It's up to your code inside the middleware to restrict or allow the access. For example, you could check the request.META['PATH_INFO'] for zones where the middleware shouldn't do anything. On Mar 13, 4:47 pm, "Stephen Mizell" <[EMAIL PROTECTED]> wrote: > > You should go with a MiddleWare. > > Wi

Re: Generic form appearing on multiple pages

2007-03-13 Thread Condredge
This is exactly what I'm looking to do as well. Did you ever find a solution that worked for you? Or has anyone else done something like this? Thanks! Condredge --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Restricting Access to Users

2007-03-13 Thread Stephen Mizell
> You should go with a MiddleWare. Will this work for the Django admin as well? I don't think I specified in my post that I was wanting to restrict the access in the admin for certain users, but still make each Weblog public. Sorry for the confusion. --~--~-~--~~~-

Malformed Mysql request ...

2007-03-13 Thread dbee
I have a Customers model that I'd trying to add values to from an oldform custom form manipulator. However it keeps telling me that there's a ProgrammingError... ( seemingly a malformed SQL string ). Help. # Customers model class Customers (models.Model): name = models.CharField(maxlengt

Re: Restricting Access to Users

2007-03-13 Thread Sam
You should go with a MiddleWare. http://www.djangoproject.com/documentation/middleware/ Here is a basic example: from django.http import HttpResponseRedirect class AccessMiddleware(object): def process_request(self, request): # Insert your Auth Code if authorized:

newforms status

2007-03-13 Thread Aljosa Mohorovic
what's the status of newforms? are they relatively stable (api) and is there a plan for writing Chapter 7: Form processing of djangobook ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: {% url %} problem

2007-03-13 Thread akonsu
thank you Ivan, the problem with collapsing is that the 'name' parameter in my view does not get the default value then if the url is empty. it just receives the empty string because the group is the empty string and not None. but i am new to python so may be i have missed something. of course i

Re: {% url %} problem

2007-03-13 Thread Ivan Sagalaev
akonsu wrote: > i think the reason is two entries in the urlpatterns with the same > view. is this a bug? Well, not exactly a bug but a limitation of "reverse" function that {% url %} uses to do actual resolving. Incidentally there is a thread in django-developers[1] about solving a similar iss

{% url %} problem

2007-03-13 Thread akonsu
hello, in urls.py: urlpatterns = patterns('', (r'^/?$', 'path.to.myview'), (r'^(\w+)/?$', 'path.to.myview')) in views.py: def myview(request, name = 'index') : ... in template: {% url path.to.myview var %} the url tag in the template is rendered as "//?" if i comment out the first item in

Re: Starting other processes in a view gives me some weird results.

2007-03-13 Thread Ino Pua
Using just 'ls' or something similar does not trigger the bug. You have to start a daemon from django in order to trigger it. The attached views assume cmd to be a command that takes 'start' as a parameter in order to daemonize it, so for freebsd you might have to customize the "p = subprocess

Restricting Access to Users

2007-03-13 Thread Stephen Mizell
I'm guessing this question has been answered somewhere, but I am having a hard time finding an answer. I'll explain my question by way of an example. Let's say I have a Weblog model which is related to a Post model. I want many Weblogs on the site, and each Weblog can have many Posts. My situa

django server: reload and samba share...

2007-03-13 Thread Jens Diemer
My sources are on a linux samba share. I used this share under windows xp and start the django developer server from this share. The reload mechanism don't work! When i copy the source from the share into my local filesystem, the reload works fin. Any solution? -- Mfg. Jens Diemer

Re: Starting other processes in a view gives me some weird results.

2007-03-13 Thread akonsu
i am using freebsd. i do not have exim4. i tried this with 'ls' command. it gives me the error below. if i output hello world instead, the browser seems to download the page correctly and does not appear to be stuck. i use './manage runserver'. Traceback (most recent call last): File "/usr/lo

Re: Starting other processes in a view gives me some weird results.

2007-03-13 Thread Joe
We had a similar problem when a process you start tries to send a signal to python indicating a warning or something similar. There is a know version in older versions of python that causes it to ignore these signals and hang the process. Try upgrading python. On Mar 13, 8:46 am, "Ino Pua" <[EM

Integrating web services with django

2007-03-13 Thread Nathan Harmston
Hi, I was wondering if anyone had added a web services client to django. Ie when a user makes a request, it is processed by django and then a web service is invoked and the results send back. Has anyone developed any frameworks or apps which do this? How can I deal with invocations/jobs which take

year archive

2007-03-13 Thread Michel Thadeu Sabchuk
Hi guys! I want to use generic views to show all events on a year. I made use of year_archive view to accomplish my task. I want to show up the events on the year page categorized by its month, there won't be a month page, but the object_list gives the events uncategorized. I think on a filter,

Re: Trying to get fixtures working - problem with Site

2007-03-13 Thread Chris Moffitt
> Hrm. The test case checks Null values for every data field, so that > shouldn't be a problem. The only simple reason I can think of is a > required field that doesn't have a representation in your data file. > > How are you producing your data file? Is this failure caused by a data > file produ

Re: Image and File Field hard coded sizes

2007-03-13 Thread Brendon
On Mar 12, 3:23 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > A change to fix this (make the length longer) will be committed after > 0.96. I'm intentionally not committing it beforehand because it is a > backwards incompatible change in the sense that every database using > such a field wil

Re: BooleanField won't update

2007-03-13 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: > def update_snip(request): > u = User.objects.get(id=request.session['userid']) > snip = Snippet.objects.filter(id=snippet_id,user=u) > snip[0].active = 0 > snip[0].save() > print "Active = %s" % snip[0].active > > This NEVER works. What am I doing wr

Re: permissions in template

2007-03-13 Thread masuran
I'm going to download the development version and try that one out, might do the trick :) --~--~-~--~~~---~--~~ 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@googl

Re: Starting other processes in a view gives me some weird results.

2007-03-13 Thread Ino Pua
On Mar 13, 3:37 am, "akonsu" <[EMAIL PROTECTED]> wrote: > hello, > i do not know what causes this. > i am curious what happens if you replace > return HttpResponse(stdout or stderr) > with > return HttpResponse('hello world') If I do that, 'hello world' is printed in the web browser, but its stil

Connection reset by peer error on POST content longer than about 6k chars...

2007-03-13 Thread Ryan Alexander
Function in question: http://dpaste.com/6787/ Simply put, this is a little client program that goes out to the Django server, which tells it which URLS to test and how many times to hit them. It'll average the results, then return the timing info, along with the HTML generated by the render (it

Re: Playing with fixtures and django serializers -> Errors...

2007-03-13 Thread Jens Diemer
Jens Diemer schrieb: > I can't trying this. Because now i have a error before the serializers > starts working: """ContentType matching query does not exist.""" On a other platform it works! I don't known why... But if i import the dump i got some errors: Error: columns app_label, model are not

Professional Sales People Wanted!

2007-03-13 Thread mike
Professional Sales People Wanted! On a scale of 1-10 How ready are you to earn over 100k income per year? Only 9's and 10's need apply. Do not apply if you are not a 9 or 10, you are only wasting your time and mine www.thenextbigboom.com/beyond-freedom --~--~-~--~~~

Using different template for different instances of an object.

2007-03-13 Thread Alessandro Ronchi
I need to make 2 or 3 different templates to be used to show an object. In the admin I would like to have a check list to choice wich template I will use to show it. It's possible? -- Alessandro Ronchi Skype: aronchi - Wengo: aleronchi http://www.alessandroronchi.net - Il mio sito personale ht

Re: catalog of django apps?

2007-03-13 Thread [EMAIL PROTECTED]
Hi Guys, I've just added a section to http://code.djangoproject.com/wiki/DjangoResources to list these pluggable re-usable components - please add any others that you know of. I think we should keep the distinction that Django makes between "apps" and "projects", where an app is something that y

Re: Where art thou ImageField

2007-03-13 Thread gorans
Thanks, I found http://www.carcosa.net/jason/software/django/stockphoto/ pretty helpful! Goran On Mar 13, 11:48 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > You may want to check out the 'stockphoto' app. Even if you don't use > it directly, it might give you ideas. It seems to handle thumbnai

using sitemap with i18n

2007-03-13 Thread [EMAIL PROTECTED]
Hello, How could I get the sitemap feature working for my i18n site ? I use the standard django setup for my i18n, and that works via cookies, and as far as I see, google sitemaps do not work with cookies. Any clue where I could find some more information ? With regards, Robbin --~--~---

using sitemap with i18n

2007-03-13 Thread [EMAIL PROTECTED]
Hello, How could I get the sitemap feature working for my i18n site ? I use the standard django setup for my i18n, and that works via cookies, and as far as I see, google sitemaps do not work with cookies. Any clue where I could find some more information ? With regards, Robbin --~--~---

Jobs Vs Opportunity - The Movie

2007-03-13 Thread mike
Jobs Vs Opportunity - The Movie www.thewealththeory.com/beyond-freedom This is excellent! If you haven't already watched it, check it out now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Displaying previous entries

2007-03-13 Thread bjornkri
This is probably really basic stuff, but I just can't get my head around it. Sorry if this has been asked and answered before, I tried to look for it, but maybe I wasn't looking for the right thing. So on my blog pages I want a list of previous entries. I'm mostly using date based generic views,

Re: Playing with fixtures and django serializers -> Errors...

2007-03-13 Thread Jens Diemer
Russell Keith-Magee schrieb: > I've just finished writing a new set of tests for the serializers, > which included fixing a number of bugs. These fixes have been checked > in as of [4719]. Can you retry your tests and see if you still have > problems? I can't trying this. Because now i have a err