./manage flush --noinput

2007-03-06 Thread akonsu
hello, is there a way to automate creation of administrator role for django.contrib.admin application? if i run "./manage flush --noinput" it does not create one. thanks konstantin --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Regarding Opening a link from admin interface

2007-03-06 Thread MacH G
hi all i have an app(USERS INFO) where the users details and photos are maintained .when i just click the app USER INFO it displays all the users details along with the thumbnail image of the photo and a link to the photo . but when i just click the link it is not opening neither in the same window

HOT PICS OF INDIAN HOT ACTRESS

2007-03-06 Thread hot babe
HOT PICS OF INDIAN BABES http://bollywoodactress.blogspot.com --~--~-~--~~~---~--~~ 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 fro

Re: Please

2007-03-06 Thread [EMAIL PROTECTED]
Hey Gerard...I posted a sample piece of code for your question the other day... that had code for the model/view/template were you not able to get that working? You can ask me questions about if it you need to..I don't mind. Carole Link to previous sample: http://groups.google.com/group/dja

djazz: Django Application and Utility Library started

2007-03-06 Thread [EMAIL PROTECTED]
Hi, as part of a cleanup we do in FFSomething, I decided to create a library of all the generic applications and utilities created along the way. I looked around and hasn't seen a larger project which tries to fill this gap, so I started one. The idea is to develop and collect useful shortcuts, a

fixtures ?

2007-03-06 Thread akonsu
hello, i am using fixtures for site deployment. it would be perfect if i could pull large amounts of data for fields in to my fixtures file from external files. say, for example, my models have text fields that contain html markup. i am pretty sure this cannot be done but i wanted to ask anyways

Re: django on mediatemple (dv) box?

2007-03-06 Thread leland
joe - thanks for the tip. turns out it wasn't including the vhosts.conf file. so i got everything to work on mediatemple's (dv) 3.0 server. now, i've run into another issue. my company runs a (dv) 2.0 box that came standard with python 2.2. i upgraded to python 2.3, but now mod_python still points

Re: my first patch: template if[not]equal with negative numbers

2007-03-06 Thread Malcolm Tredinnick
On Wed, 2007-03-07 at 02:25 +0100, Bram - Smartelectronix wrote: > > (1) When you create a patch, best to do it from the top of the Django > > source tree (the directory just about django/). Then we can tell which > > file you are patching. There are many files called __init__.py in our > > source

Re: my first patch: template if[not]equal with negative numbers

2007-03-06 Thread Malcolm Tredinnick
On Wed, 2007-03-07 at 02:34 +0100, Bram - Smartelectronix wrote: > Malcolm Tredinnick wrote: > > (2) This is the sort of thing that should come with a test to ensure we > > don't introduce the same mistake again. Have a look in > > tests/regressiontests/templates/tests.py for related tests and add

Re: my first patch: template if[not]equal with negative numbers

2007-03-06 Thread Bram - Smartelectronix
Malcolm Tredinnick wrote: > (2) This is the sort of thing that should come with a test to ensure we > don't introduce the same mistake again. Have a look in > tests/regressiontests/templates/tests.py for related tests and add a > couple of options in there. i forgot to ask: should additions to th

Re: my first patch: template if[not]equal with negative numbers

2007-03-06 Thread Bram - Smartelectronix
> (1) When you create a patch, best to do it from the top of the Django > source tree (the directory just about django/). Then we can tell which > file you are patching. There are many files called __init__.py in our > source tree and we really need to know *which one* is the right one to > patch.

Re: my first patch: template if[not]equal with negative numbers

2007-03-06 Thread Malcolm Tredinnick
Hi Bram, On Wed, 2007-03-07 at 01:37 +0100, Bram - Smartelectronix wrote: > as it's the first patch i do, perhaps someone can tell me if i did well ;-) > > http://code.djangoproject.com/ticket/3670 Happy to provide feedback. A couple of things that jump out at me from reading this patch: (1) W

Re: Templatedb problem

2007-03-06 Thread Malcolm Tredinnick
On Tue, 2007-03-06 at 15:45 -0800, Mary wrote: > 1. installed django-databasetemplateloader.tar.gz > 2. put template folder in my project > 3. add in setting.py the following:'myapp.template',and > 'myapp.template.loaders.database.load_template_source', > 4. I restarted my django server > 5. I exe

Re: disorderly order_by

2007-03-06 Thread Ramiro Morales
On 3/6/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > I'm trying to get all the grades that belong to a certain student in a > certain section and order them by when the assignments were due. > > grades = Grade.objects.filter(student=user, > grade_book_column__section=section).order_by( >

Upload Files (was: Re: Please)

2007-03-06 Thread Todd O'Bryan
This is kind of quick and dirty, but I think it does the job. Someone can correct me if I'm wrong. There may be an easier way; I haven't looked at this since last fall. You need a form with a file upload in it: Upload a new file: Then you need to create view code to catch the file: if req

my first patch: template if[not]equal with negative numbers

2007-03-06 Thread Bram - Smartelectronix
as it's the first patch i do, perhaps someone can tell me if i did well ;-) http://code.djangoproject.com/ticket/3670 - bram --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: newforms: comparing fields during validation

2007-03-06 Thread ezln23
Thanks so much for your help. That works great. CT > > I am using the newforms functionality, but I am having trouble > > validating my form when two fields are needed to create the validation > > rule. > > try this: > >def clean_password_2(self): >get = self.clean_data.get >

Re: can I mimic authenticated user from shell?

2007-03-06 Thread Sandro Dentella
On Tue, Mar 06, 2007 at 05:43:26PM -, evenrik wrote: > > > I added a method to threadlocals.py that allows me to set the user so > I can run code in the shell that depends on get_current_user() > returning a user: > > def set_current_user(user): > _thread_locals.user = user > > This sh

disorderly order_by

2007-03-06 Thread Todd O'Bryan
I have these two models: class GradeBookColumn(models.Model): assignment = models.ForeignKey(Assignment, related_name='grade_book_columns') section = models.ForeignKey(Section) when_assigned = models.DateTimeField(blank=True, null=True) when_due = models.DateTimeF

Please

2007-03-06 Thread Gerard M
Hello, Please I need to find a way to upload a file using django, i've found several resources but I cant use any because the examples are not well explained and im a django newbie, I would like to know if someone knows a place where I can find a very nice step by step turorial with the templates

Re: Page Not Found 404

2007-03-06 Thread Todd O'Bryan
We'd have to see your view code (and probably urls.py) to know what was causing this... On Tue, 2007-03-06 at 15:29 +, [EMAIL PROTECTED] wrote: > Dear all, > > I am making simple blog for myself using Django. After made models and > create necessary urls, I run the application and got: Page

Templatedb problem

2007-03-06 Thread Mary
1. installed django-databasetemplateloader.tar.gz 2. put template folder in my project 3. add in setting.py the following:'myapp.template',and 'myapp.template.loaders.database.load_template_source', 4. I restarted my django server 5. I execute python manage.py syncdb i got this error: Exception T

Re: Page Not Found 404

2007-03-06 Thread Vadim Macagon
[EMAIL PROTECTED] wrote: > Dear all, > > I am making simple blog for myself using Django. After made models and > create necessary urls, I run the application and got: Page Not Found. > > It says: > > > Page not found (404) > Request Method: GET > Request URL: http://127.0.0.1:8000/blog

Re: www.OutpatientSurgicare.com/video/

2007-03-06 Thread mordaunt
oh men. how do i get more infos on it? > > www.OutpatientSurgicare.com/video/ > Outpatient Doctors Surgery Center is committed to offering the > healthcare the community needs. We offer patients a meaningful > alternative to traditional surgery. This state-of-the-art outpatient > surgery center,

Re: Manually runing daily_cleanup.py

2007-03-06 Thread akonsu
apparently you cannot run it from the command line unless you set the environment variable. konstantin On Mar 6, 3:26 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > It appears my thick-headedness is acting up again. How would I go > about adding that from the command line? How DOES one run

Re: Manually runing daily_cleanup.py

2007-03-06 Thread Rubic
You can do something like this (all in a single command line), assuming "myproject" is in PYTHONPATH: DJANGO_SETTINGS_MODULE="settings" ./daily_cleanup.py -or- DJANGO_SETTINGS_MODULE="myproject.settings" ./daily_cleanup.py Note: You won't be able to run the above script, unless you can do the

dojo problem

2007-03-06 Thread Mary
here is my model : text = models.TextField(help_text='Rich Text Editing.') class Admin: js = ['js/admin/AddRichTextEditing.js'] list_display = ('title','owner','time_created') i have added the dojo folder in my media folder and i have added AddRichTextEditing.js in js/adm

Re: newforms - filling a custom form with data from a model instance

2007-03-06 Thread dballanc
I had similar problems, trying to tie the form and model too closely. >From what I understand the form needs to be aware of the model(s), but there isn't anything forcing you to a 1:1 relationship (form_for_model does that for convenience, but isn't the only way). You just have to override __init

Re: Manually runing daily_cleanup.py

2007-03-06 Thread [EMAIL PROTECTED]
It appears my thick-headedness is acting up again. How would I go about adding that from the command line? How DOES one run daily_cleanup.py? On Mar 6, 1:50 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > sorry i was not clear... > > the document explains how to use settings without seting the > DJANGO

newforms - filling a custom form with data from a model instance

2007-03-06 Thread orestis
Since form_for_model isn't nearly finished yet (regarding with FileFields and customization - or I just can't find how it works), I have decided to just repeat myself and create my own forms. I thought that it'd be very intuitive if a form instance gets bound to the data from a model instance, bu

Re: Designing URLs

2007-03-06 Thread sjzabel
Totally pointless :P but it was a fun lunch break http://www.djangosnippets.org/snippets/86/ Cheers, Stephen On Mar 6, 12:13 pm, "sjzabel" <[EMAIL PROTECTED]> wrote: > I agree with James^2 > > I do find the appended slash to be a little bit distracting when > referring to a single item. However

Re: Manually runing daily_cleanup.py

2007-03-06 Thread akonsu
sorry i was not clear... the document explains how to use settings without seting the DJANGO_SETTINGS_MODULE variable. which seems to be the problem in your situation. and example from the document: from django.conf import settings settings.configure(DEBUG=True, TEMPLATE_DEBUG=True, TEMPLA

Re: Error with a model? (I think)

2007-03-06 Thread Joseph Kocherhans
On 3/6/07, Austin Govella <[EMAIL PROTECTED]> wrote: > > What does this mean? > > "unbound method contribute_to_class() must be called with TextField > instance as first argument (got ModelBase instance instead)" > > > > And how do I know where to look to find the problem? It looks like an error

Re: Manually runing daily_cleanup.py

2007-03-06 Thread [EMAIL PROTECTED]
Thanks, but I don't have any reason to believe I have a problem with my settings file. I think I'm not running daily_cleanup.py properly. Unless I'm totally misunderstanding what you're trying to tell me. On Mar 6, 1:09 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > hello, > > this might help: > > ht

Re: Manually runing daily_cleanup.py

2007-03-06 Thread akonsu
hello, this might help: http://www.djangoproject.com/documentation/settings/#using-settings-without-the-django-settings-module-environment-variable cheers konstantin On Mar 6, 2:05 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I think I need to clean out old sessions, but when I try to

Manually runing daily_cleanup.py

2007-03-06 Thread [EMAIL PROTECTED]
I think I need to clean out old sessions, but when I try to manually run daily_cleanup.py from the command line, I'm getting: Traceback (most recent call last): File "daily_cleanup.py", line 8, in ? from django.db import backend, connection, transaction File "/home2/baxter/lib/python2.4/d

Re: can I mimic authenticated user from shell?

2007-03-06 Thread yary
Now's a good time to try the new testing framework's test client http://www.djangoproject.com/documentation/testing/#test-client login as whomever, send some URLs, check the results. I know it ain't quite what you're looking for, but it may help. --~--~-~--~~~---~--~

Re: Error with a model? (I think)

2007-03-06 Thread James Bennett
On 3/6/07, Austin Govella <[EMAIL PROTECTED]> wrote: > "unbound method contribute_to_class() must be called with TextField > instance as first argument (got ModelBase instance instead)" Did you type 'TextField' where you meant 'TextField()' ? -- "Bureaucrat Conrad, you are technically correct -

Error with a model? (I think)

2007-03-06 Thread Austin Govella
What does this mean? "unbound method contribute_to_class() must be called with TextField instance as first argument (got ModelBase instance instead)" And how do I know where to look to find the problem? -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EMAI

Re: {% url %} syntax, and its equiv in python?

2007-03-06 Thread yary
On Mar 5, 6:45 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Hmm ... for consistency's sake, we should change that. We do seem to be > pretty much always resolving unquoted tokens as variables in the current > context. The only real exception I can find is the "ssi" tag (you have > to gloss

Re: Designing URLs

2007-03-06 Thread sjzabel
I agree with James^2 I do find the appended slash to be a little bit distracting when referring to a single item. However, for practical purposes I use the always append approach because I do feel that it is less ambiguous. Is the slash on a single item distracting enough to warrant a middleware

Re: can I mimic authenticated user from shell?

2007-03-06 Thread evenrik
I added a method to threadlocals.py that allows me to set the user so I can run code in the shell that depends on get_current_user() returning a user: def set_current_user(user): _thread_locals.user = user This should work for you. On Mar 6, 3:35 am, "Aidas Bendoraitis" <[EMAIL PROTECTED]

Re: Help with profiles

2007-03-06 Thread MattW
Thanks. That clears some stuff up, but not everything. The thing I'm still _really_ unclear on is how one adds a profile. So to go back to the code below: > > @login_required > > def viewprofile(request): > > uname = request.user.username > > try: > > profile = request.user.get_p

Re: select_related() and null=True

2007-03-06 Thread noelbk
I just created a python module to solve this problem for myself. It's let's you write SQL that returns Django objects. For your problem, you could do something like this: for ticket in DjSelect(""" from {Ticket:ticket} left join {User:ticket.resolved_by} on {ticket.resolved_by}.id =

Re: uploding image file

2007-03-06 Thread [EMAIL PROTECTED]
Yeah...I think it comes down to what you need to do with them I needed to move mine into sub directories and rename them...so it was easier to do it the other way. He had said he tried to do it the regular way first and could't get it working... so then tried the django waythat's why I po

Re: Designing URLs

2007-03-06 Thread James Stembridge
Hi Filipe, On Mar 6, 2:53 pm, "Filipe Correia" <[EMAIL PROTECTED]> wrote: > http://somedomain.org/people/12 > http://somedomain.org/people/12/belongings/ If you think of the mapping of these URLs to files (I know there aren't actually any files involved, but it's a useful analogy) then what is "

Re: Designing URLs

2007-03-06 Thread James Bennett
On 3/6/07, Filipe Correia <[EMAIL PROTECTED]> wrote: > Is there any criteria that can in fact be considered a best practice > when designing URLs? > I would very much appreciate to know of other's experience on this. In my experience, it's fairly subjective. Personally, I don't like having a slas

Re: Page Not Found 404

2007-03-06 Thread Martin Winkler
Am Tue, 06 Mar 2007 15:29:06 - schrieb "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>: > I am making simple blog for myself using Django. After made models and > create necessary urls, I run the application and got: Page Not Found. > [...] > >>> from mysite.blog.models import Post > >>> Post.objects

Page Not Found 404

2007-03-06 Thread [EMAIL PROTECTED]
Dear all, I am making simple blog for myself using Django. After made models and create necessary urls, I run the application and got: Page Not Found. It says: Page not found (404) Request Method: GET Request URL:http://127.0.0.1:8000/blog/ No post available Yes, it says No Post

Designing URLs

2007-03-06 Thread Filipe Correia
Hi, I've got a doubt concerning the use of slashes on the end of URLs. I'm currently using APPEND_SLASH to normalize all the URLs in my django app, but I can't help noticing that some URLs would make more sense to me without the last slash. Some examples: http://somedomain.org/people/ -

Re: iCal like interface in the Admin?

2007-03-06 Thread Jay Parlar
On 3/6/07, Rubic <[EMAIL PROTECTED]> wrote: > > Jay, > > I would think you'd want to do a custom form for something like this. > I'll be doing something similar soon for a scheduling system. You're > familiar with the dateutil module? > > http://labix.org/python-dateutil Hmm, not familiar with t

Re: iCal like interface in the Admin?

2007-03-06 Thread Rubic
Jay, I would think you'd want to do a custom form for something like this. I'll be doing something similar soon for a scheduling system. You're familiar with the dateutil module? http://labix.org/python-dateutil -- Jeff Bauer Rubicon, Inc. --~--~-~--~~~---~--~

HOT PICS OF INDIAN BABES

2007-03-06 Thread hot babe
HOT PICS OF INDIAN BABES http://bollywoodactress.blogspot.com --~--~-~--~~~---~--~~ 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 fro

Re: regarding Foreign Key Display

2007-03-06 Thread MacH G
hi thanks carole today full day searched for this problem could not find any solution . here in my model i even have categories but there are only 4-5 and each category has got 500-700 items . so if u can tell me an efficient way like manytomany field where i have a list box and could search it ..

Re: User model extension

2007-03-06 Thread limodou
On 3/6/07, Adam Rutkowski <[EMAIL PROTECTED]> wrote: > > First of all I'd like to say hi - I'm completely new to Django & Python, > however very excited about it; great framework, great language. > While reading Django docs I came across a problem, that I wasn't be able > to find exact solution fo

Re: User model extension

2007-03-06 Thread Frankie Robertson
On 06/03/07, Adam Rutkowski <[EMAIL PROTECTED]> wrote: > > First of all I'd like to say hi - I'm completely new to Django & Python, > however very excited about it; great framework, great language. > While reading Django docs I came across a problem, that I wasn't be able > to find exact solution

Re: Debugging Django: print statements?

2007-03-06 Thread Frankie Robertson
On 27/01/07, Julian Romero <[EMAIL PROTECTED]> wrote: > On 1/27/07, Don Arbow <[EMAIL PROTECTED]> wrote: > > > > > Using print statements to debug a program is like figuring out what > > is wrong with your car by listening for weird noises. Using a > > debugger is like opening the hood and tweakin

User model extension

2007-03-06 Thread Adam Rutkowski
First of all I'd like to say hi - I'm completely new to Django & Python, however very excited about it; great framework, great language. While reading Django docs I came across a problem, that I wasn't be able to find exact solution for. The point is how to handle a situation when the user model i

Re: uploding image file

2007-03-06 Thread limodou
On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > You don't have to use the ImageField if you just want to upload it the > old python way, you can just store the filename in a textfield...I > gave a sample in a post yesterday: > > http://groups.google.com/group/django-users/browse_thread

Re: uploding image file

2007-03-06 Thread [EMAIL PROTECTED]
You don't have to use the ImageField if you just want to upload it the old python way, you can just store the filename in a textfield...I gave a sample in a post yesterday: http://groups.google.com/group/django-users/browse_thread/thread/ede06a3602a39100?hl=en On Mar 6, 3:38 am, limodou <[EMAIL

Re: hi,very very good

2007-03-06 Thread mralokkp
This is Decent System. Stop Sending Spam here. On Mar 6, 4:05 pm, "engin kaya" <[EMAIL PROTECTED]> wrote: > http://autohits.dk/?ref=1099539503 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Thoughts about rendering errors below the form field?

2007-03-06 Thread ScottB
Hi Vertigo. On Mar 6, 9:05 am, "Vertigo" <[EMAIL PROTECTED]> wrote: > The default HTML rendering of form errors, with method as_table() at > least, is to display them above the form field. Am I the only one > concerned with this? :-) I wanted the error before the form field, but after the label.

Re: applying a patch in windows ???

2007-03-06 Thread MacH G
hey thank u guys this time just did manual replacement and it works fine On 3/6/07, limodou <[EMAIL PROTECTED]> wrote: > > > On 3/6/07, MacH G <[EMAIL PROTECTED]> wrote: > > hi all , > > for the list_filter to add fields other than specified fields i got a > patch > > file (list_filter.3.diff ) fr

Re: applying a patch in windows ???

2007-03-06 Thread limodou
On 3/6/07, MacH G <[EMAIL PROTECTED]> wrote: > hi all , > for the list_filter to add fields other than specified fields i got a patch > file (list_filter.3.diff ) from the following url > http://code.djangoproject.com/ticket/3400 but i do know > how to apply it in windows could somebody tell me t

Re: applying a patch in windows ???

2007-03-06 Thread Martin Winkler
Am Tue, 6 Mar 2007 17:37:21 +0530 schrieb "MacH G" <[EMAIL PROTECTED]>: > i do [not] know how to apply > it in windows could somebody tell me the command to apply it . If you are comfortable with the unix command line, install cygwin (http://www.cygwin.com/). You'll get a full unix shell environ

Re: newforms: comparing fields during validation

2007-03-06 Thread Martin Winkler
Hi "ezln23", > I am using the newforms functionality, but I am having trouble > validating my form when two fields are needed to create the validation > rule. try this: class CreateAccountForm(forms.Form): name = forms.CharField(max_length=50) name_phonetic = forms.CharField(max_length=50

applying a patch in windows ???

2007-03-06 Thread MacH G
hi all , for the list_filter to add fields other than specified fields i got a patch file (*list_filter.3.diff* ) from the following url http://code.djangoproject.com/ticket/3400 but i do know how to apply it in windows could somebody tell me the command to apply it . thanks in advance ashok --

newforms: comparing fields during validation

2007-03-06 Thread ezln23
I am using the newforms functionality, but I am having trouble validating my form when two fields are needed to create the validation rule. In particular, I want to verify that two password fields have the same value. I thought I could use the BaseForm.clean() method but it is giving me the follow

Re: newforms and FileInput

2007-03-06 Thread orestis
I think (I'm not sure that it does nothing, and you have to manually use request.FILES to get the file you want, and manually upload it to wherever you want. Please someone correct me if I'm wrong. It's a kludge for now, but I think (hope) Adrian is working on it... If it worked automatically (th

Re: can I mimic authenticated user from shell?

2007-03-06 Thread Aidas Bendoraitis
Can't help you much with this, but according to the docs (http://www.djangoproject.com/documentation/authentication/#methods), "is_authenticated() -- Always returns True" for User model and it returns False for AnonymousUser model. Regards, Aidas Bendoraitis [aka Archatas] On 3/6/07, sandro.den

Re: how to get all the objects in one model that are not foreign keys in another

2007-03-06 Thread Matthew Flanagan
Hi, this ticket http://code.djangoproject.com/ticket/2400 covers this issue and links to discussion about it. On 3/6/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 06-Mar-07, at 8:55 AM, Malcolm Tredinnick wrote: > > >> > >> how do i get a list of all children who are not in Sponsorsh

hi,very very good

2007-03-06 Thread engin kaya
http://autohits.dk/?ref=1099539503 --~--~-~--~~~---~--~~ 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 t

Re: Debugging Django: print statements?

2007-03-06 Thread Filipe Correia
Hi Dan, thanks for posting this. I know the latest versions of pyscripter now have remote debugging, but haven't come around to use it yet. I'm glad to know it works with django apps, I'll give it a go as soon as I can. Cheers, Filipe On Mar 6, 5:33 am, "deaston" <[EMAIL PROTECTED]> wrote: > Hi

Re: Live Sexy girls videos,sex,chat for FREE SIGNUP

2007-03-06 Thread sexy
coolmani wrote: > Live Sexy girls videos,sex,chat for FREE SIGNUP > click below for continue the sexy tour > http://www.freewebs.com/msmani007/adultfriendfinders.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Live Sexy girls videos,sex,chat for FREE SIGNUP

2007-03-06 Thread sexy
coolmani wrote: > Live Sexy girls videos,sex,chat for FREE SIGNUP > click below for continue the sexy tour > http://www.freewebs.com/msmani007/adultfriendfinders.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Live Sexy girls videos,sex,chat for FREE SIGNUP

2007-03-06 Thread sexy
coolmani wrote: > Live Sexy girls videos,sex,chat for FREE SIGNUP > click below for continue the sexy tour > http://www.freewebs.com/msmani007/adultfriendfinders.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

newbie question: select_related from parent to child

2007-03-06 Thread roberto
dear all, i'm starting to use django and i have what may seem to a lot of you the stupidest question ever, though i have not been able to solve this,. i have to classes: class warriors(models.Model): username = models.CharField(maxlength=50) class warriors_gaming(models.Model): warrior

can I mimic authenticated user from shell?

2007-03-06 Thread sandro.dentella
Hi all, How can I authenticate in a shell? I'm playing with Managers to meke them behave different according to the permission of the user, but I don't know how to play with the shell as authenticated user. Really what happens is that if I test a user that results authenticated and I dont' und

Re: select_related() and null=True

2007-03-06 Thread Ivan Sagalaev
Ilya Semenov wrote: > What different approach could I choose? I'm writing real-life model - > a Ticket can either have a User (who resolved it), or not (if the > ticket has not been yet resolved). Listing all resolved Tickets with > corresponding Users is a simple real-life task, too. Indeed... H

[newforms] Thoughts about rendering errors below the form field?

2007-03-06 Thread Vertigo
Hi, The default HTML rendering of form errors, with method as_table() at least, is to display them above the form field. Am I the only one concerned with this? :-) I am struggling with CSS tricks to render this correctly, without getting anywhere I must say. I would rather display errors below t

Re: uploding image file

2007-03-06 Thread limodou
On 3/6/07, samira <[EMAIL PROTECTED]> wrote: > > Mybe I didn't describe good. this is my project: I want to have user > page that get member information and allow user to upload her display > image. I don't know how I can do this,. > Here is a example: 1. settings.py MEDIA_ROOT = 'media/' 2. te

Re: select_related() and null=True

2007-03-06 Thread Ilya Semenov
David Cramer wrote: > but I strongly encourage you to find a > differently solution, as LEFT JOINs can be VERY costly on system > resources. I realize that under some circumstances, LEFT JOINs can be costly. However, I don't hink my case is such. Let me recall the (I believe very simple) model:

Re: uploding image file

2007-03-06 Thread samira
Mybe I didn't describe good. this is my project: I want to have user page that get member information and allow user to upload her display image. I don't know how I can do this,. On Mar 6, 11:17 am, limodou <[EMAIL PROTECTED]> wrote: > On 3/6/07, samira <[EMAIL PROTECTED]> wrote: > > > > > Thanks

Re: uploding image file

2007-03-06 Thread Kenneth Gonsalves
On 06-Mar-07, at 1:37 PM, samira wrote: > Thanks, but I read it before, I add > photo = models.ImageField('/images')in my models classes and > newData = request.POST.copy() > new_data.update(request.FILES) in views, Also for display it in > template I add this line to it. > > enctype="multipart

Re: uploding image file

2007-03-06 Thread limodou
On 3/6/07, samira <[EMAIL PROTECTED]> wrote: > > Thanks, but I read it before, I add > photo = models.ImageField('/images')in my models classes and You should read the document carefully, and you should set upload_to parameter. > newData = request.POST.copy() > new_data.update(request.FILES) in

Re: uploding image file

2007-03-06 Thread samira
Thanks, but I read it before, I add photo = models.ImageField('/images')in my models classes and newData = request.POST.copy() new_data.update(request.FILES) in views, Also for display it in template I add this line to it. {{ form.photo }}{{ form.photo_file }} but nothing display in my temp