Request to the list owner

2010-04-11 Thread Omer Barlas
Can you please add a prefix to the email subject? I am reading my mail mostly from my BB Bold, but I cannot filter mail like Thunderbird does, it would be much simpler if there was a prefix like [django] or such. Thanks. -- Sent from my mobile device Omer Barlas omer.bar...@gmail.com -- You

Share my project !

2010-04-11 Thread PanFei
I created a project based on Django, It is a small group system, if you are interest in it ,you can check it out using subversion . the project is on Google code : http://code.google.com/p/opengroup/ -- You received this message because you are subscribed to the Google Groups "Django users"

to achieve the break tag in django template,exit the for loop

2010-04-11 Thread CCC
which likes {% for a in as%} {% for b in bs%} {%if a.id == b.id%} some content and exist the for loop {% endif %} {% endfor %} {% endfor %} any one knows? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: dumping data in utf-8

2010-04-11 Thread Peter Murphy
Andreo: Technically, it is utf-8. I am guessing that you want to see actual Cyrillic characters, rather than escape sequence equivalents. The behavior you are seeing is due to PyYAML, the parser used by Django for YAML fixtures. By default, it produces YAML with Unicode escape sequences - a

Render selected item labels in preview page of form data

2010-04-11 Thread hdknr hidelafoglia
Hi,all About my note on http://post.ly/Zaws . I'm using the FormPreview class to process form submissions. It can't render selected item labes,but only render selected item value. I'd like to know better ways to render preview page of form inputs. Any idea welcome. Thanks in advance.

Re: Retrieving values of checked boxes as a csv string

2010-04-11 Thread Shawn Milochik
http://docs.djangoproject.com/en/1.1/ref/forms/fields/#booleanfield -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: how to achieve the break tag in django template

2010-04-11 Thread CCC
anyone can help?Thanks advance On Apr 9, 7:42 pm, CCC wrote: > now i have a finished template which wrote by j2ee,like this: >         <#list  dailyStarList as dailyS> >                 0>class="list_color_w"<#else>class="list_color"><#list > chatAvatarList as cal> >      

Retrieving values of checked boxes as a csv string

2010-04-11 Thread Laereom
I have a form which contains checkboxes exclusively. Each checkbox has a distinct value. I want a csv string of the values of the boxes which are checked. First, I thought I'd retrieve a list of the fields with something that looked like this: for fields in form: if

Re: TemplateDoesNotExistError makes no sense

2010-04-11 Thread Sam Lai
On 12 April 2010 07:41, Dexter wrote: > I have problem's with 2 templates, the newest, it is in the same dir as my > index.html template (Which does work). > The runserver runs with the same settings.py, so there should be no > difference I'd check file permissions on the

Re: TemplateDoesNotExistError makes no sense

2010-04-11 Thread Dexter
I have problem's with 2 templates, the newest, it is in the same dir as my index.html template (Which does work). The runserver runs with the same settings.py, so there should be no difference On Sun, Apr 11, 2010 at 11:24 PM, Shawn Milochik wrote: > > On Apr 11, 2010, at

Re: TemplateDoesNotExistError makes no sense

2010-04-11 Thread Shawn Milochik
On Apr 11, 2010, at 5:22 PM, David Zhou wrote: > On Sun, Apr 11, 2010 at 4:26 PM, Dexter wrote: > >> I have a server running with primarily nginx and secundary apache2, >> And I am getting an template error trying to browse an app. It seems it >> cannot find a template,

Re: TemplateDoesNotExistError makes no sense

2010-04-11 Thread David Zhou
On Sun, Apr 11, 2010 at 4:26 PM, Dexter wrote: > I have a server running with primarily nginx and secundary apache2, > And I am getting an template error trying to browse an app. It seems it > cannot find a template, but it is certainly there, the runserver just works >

Re: how to migrate data to django-tagging

2010-04-11 Thread Ian Struble
A migration like this needs to be done in a few distinct migrations. Here is a nice example from the south tutorial: http://south.aeracode.org/docs/tutorial/part3.html#data-migrations For your example you will probably need to perform these distinct actions: - add tagging_tags - migrate

TemplateDoesNotExistError makes no sense

2010-04-11 Thread Dexter
Hi, I have a server running with primarily nginx and secundary apache2, And I am getting an template error trying to browse an app. It seems it cannot find a template, but it is certainly there, the runserver just works fine. Can anyone point me in a direction to look for, Thanks, Dexter --

Queryset causes error on form validation

2010-04-11 Thread Alastair Campbell
Hi Everyone, I'm getting an AssertionError from a modal form: "Cannot filter a query once a slice has been taken." But only when it is bound. My model is pretty simple: class Link(models.Model): title = models.CharField("Listings title", max_length=100) # other fields event =

Re: how to use IPC in Django??

2010-04-11 Thread Tom X. Tobin
On Sun, Apr 11, 2010 at 12:45 PM, vishwanath b wrote: > as i searched the net a lot django+IPC but i > couldnt get any code This is your problem; stop searching for *Django* and start searching for *Python*. The programming language is Python, not Django. -- You

Re: how to use IPC in Django??

2010-04-11 Thread vishwanath b
In my application i have a form which when submitted should transfer details to a system in server side which interacts using IPC(sockets) so to achieve this,as u r saying when i click the submit button i should be mapped to a view function which interacts using python sockets mechanism with

Re: Double arrays in models django

2010-04-11 Thread zimberlman
gave another tip for storing the matrix using an adjacent table, coupled with many to many. that's just how it is implemented in classes django, class Answer (models.Model): id_a = models.AutoField ('ID', primary_key = true) answer = models.TextField () class Simptoms (models.Model):

Re: how to use IPC in Django??

2010-04-11 Thread Peter Herndon
On Apr 11, 2010, at 10:20 AM, vishwanath b wrote: > thanx for the reply...peter i am new to django so i am a bit confused > regarding implementing this...will i have to write python socket > client code in views which would interact with server c code rite? > > On Apr 11, 7:11 pm, Peter Herndon

Re: installing django

2010-04-11 Thread Shawn Milochik
Your problem (and solution) are described here: http://groups.google.com/group/django-users/browse_thread/thread/c9ff6c7c8e13e32b/54fb2f345b642188?hl=en=gst=django-admin.py+path#54fb2f345b642188 -- You received this message because you are subscribed to the Google Groups "Django users" group.

installing django

2010-04-11 Thread codecub
i installed django on windows 7 with python and i tried to create my first app with the django-admin.py command thing and it iddnt work here is an image: http://www.codingcub.com/images/wtf.PNG -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: how to use IPC in Django??

2010-04-11 Thread vishwanath b
thanx for the reply...peter i am new to django so i am a bit confused regarding implementing this...will i have to write python socket client code in views which would interact with server c code rite? On Apr 11, 7:11 pm, Peter Herndon wrote: > On Apr 11, 2010, at 5:52 AM,

Re: how to use IPC in Django??

2010-04-11 Thread Peter Herndon
On Apr 11, 2010, at 5:52 AM, vishwanath b wrote: > I have developed an application in django which has to send or receive > requests from/to a server.These requests have to be sent or received > through sockets.how do i achieve this? Python socket programming:

how to use IPC in Django??

2010-04-11 Thread vishwanath b
I have developed an application in django which has to send or receive requests from/to a server.These requests have to be sent or received through sockets.how do i achieve this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Giving up PHP. ...Can't decide between Django & Rails

2010-04-11 Thread Masklinn
On 9 Apr 2010, at 18:13 , UnclaimedBaggage wrote: > > Ooops - forgot one other thing: > > I'm a little concerned by django error handling. The tracer stack > seems to miss the relevant file a lot of the time, and I often find > little help from the error pages even when it does get the right

[django] how to migrate data to django-tagging

2010-04-11 Thread Andrey Torba
Hi all, There are simple model and tag: class Tag(models.Model): name = models.CharField(max_length=50) class Tour(models.Model): name = models.CharField(max_length=50) tags = models.ManyToManyField('Tag',

Re: View-only analog of ModelForm?

2010-04-11 Thread jmswen
It is also worth noting that the "view-only" version of the user profile is basically a copy of the "form" version. (I don't mean "view-only" in the sense of making input fields read- only. "View-only" means no submittable form, just the data displayed.) On Apr 11, 3:32 am, jmswen

View-only analog of ModelForm?

2010-04-11 Thread jmswen
Hi all, I'm creating basic user profile functionality. I have a class, UserProfileForm, that extends ModelForm, and this is great. I can add a piece of data (e.g., favorite candy bar) to the UserProfile model, and I don't have to make any changes to the UserProfileForm or the corresponding

Re: code repetition in views

2010-04-11 Thread Thierry Chich
I have written my functions as méthods of classes. Then it allow to use inheritance. Le 11 avr. 2010 à 05:58, ydjango a écrit : I find all my view method have identical code in start and in end: anyway to avoid repetition...? Example: def

Re: code repetition in views

2010-04-11 Thread Vitaly Babiy
Django provides a few decorators that remove alot of that repetitive code. Check the auth section for the logged in decorator Vitaly Babiy On Sat, Apr 10, 2010 at 11:58 PM, ydjango wrote: > I find all my view method have identical code in start and in end: > > anyway to