Re: Help me understand the error of my ways...

2007-09-07 Thread Atendo
Still fuzzy to me. :) Alas... thanks for your help anyway! I did end up using a different approach and have been successful (so far) with it. I've put all my widgets under the same "main" app and used block tags instead. That seems to be working out well for my purposes. It still bugs me that

Re: how to validate not blank field?

2007-09-07 Thread [EMAIL PROTECTED]
in django-tagging, i found: class Tag(models.Model): """ A basic tag. """ name = models.CharField(max_length=50, unique=True, db_index=True, validator_list=[isTag]) objects = TagManager() content from validator.py: def isTag(field_data, all_data): """ Validates that

Re: Help me understand the error of my ways...

2007-09-07 Thread jake elliott
hi atendo - i think you may have some misunderstandings about what template context is and what it's doing here. maybe another look at this page: http://www.djangoproject.com/documentation/templates_python/#basics will help clear this up for you. best, jake Atendo wrote: > I think I see what

Re: alter FreeComment date/time?

2007-09-07 Thread Drasty
Sweet! Thanks! On Sep 7, 9:45 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/7/07, Drasty <[EMAIL PROTECTED]> wrote: > > > Unless there's some way to override this without actually tweaking the > > source code? > > http://www.djangoproject.com/documentation/db-api/#raw-saves > > -- > "Bure

Re: alter FreeComment date/time?

2007-09-07 Thread James Bennett
On 9/7/07, Drasty <[EMAIL PROTECTED]> wrote: > Unless there's some way to override this without actually tweaking the > source code? http://www.djangoproject.com/documentation/db-api/#raw-saves -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--

Re: alter FreeComment date/time?

2007-09-07 Thread Drasty
Well. I should've just looked at the code before asking! submit_date has auto_now_add=True. Looks like I'll be adding comments outside the Admin! Unless there's some way to override this without actually tweaking the source code? On Sep 7, 9:26 pm, Drasty <[EMAIL PROTECTED]> wrote: > I'm in the

alter FreeComment date/time?

2007-09-07 Thread Drasty
I'm in the process of "re-creating" a series of blog posts & comments in a new Django project. I can't seem to be able to adjust the "Date/ time submitted" field in the Admin interface. Is this a bug, can't you do this, or is there a specific technique to use? --~--~-~--~~---

how to validate not blank field?

2007-09-07 Thread [EMAIL PROTECTED]
i used this: def isBlank(field,all_data): if field_data is None: raise ValidattionError(u'Cannot be Blank.') it not work for me. should i use if field_data is Blank? do someone know how to raise a error when the fields is blank? thx --~--~-~--~~~

Re: Help me understand the error of my ways...

2007-09-07 Thread Atendo
I think I see what you are getting at. In my views.py, I was able to define my context which is why it worked when I initially tried mapping the app to the URL. But in the template tag, the context is not defined. Thing is, how do you define the context in the template tag? --~--~-~--

Re: Django Book

2007-09-07 Thread James Bennett
On 9/7/07, Griffin Caprio <[EMAIL PROTECTED]> wrote: > This may have been answered already, but I couldn't find it. Which is strange, because this thread comes up if you go to the Google Groups page and search for "djangobook status": http://groups.google.com/group/django-users/browse_frm/thread

Form field value

2007-09-07 Thread Oleg Korsak
Hello. I have: def save_profile(request): if request.user.is_authenticated(): if request.method == 'POST': try: profile_obj = Profile.objects.get(user__exact=request.user) ProfileForm

Re: newforms: message "this field is required" although required=False

2007-09-07 Thread olivier
Hi, > widget=forms.Select(attrs={'class': 'vSelectField'})) This let me think you use a javascript validator. Are you sure the message comes from the server ? You should try form.is_valid() or whatever. > just printed "form.is_bound" in my view: the result is "True", > although I didn´t invok

Re: ANN: Making some changes to djangoproject.com

2007-09-07 Thread Tim Chase
>> These changes are in preparation of some exciting news, but I'll leave >> y'all in suspense until next week. > > You're rewriting Django in Java! Finally, enterprise capability! I thought it was one of the following: - adding "2.0" to the official name to make it a "Web 2.0" buzzword-complia

Adsense Absolute Information :AAi Groups

2007-09-07 Thread Suntwu Suntzu
Adsense Absolute Information :AAi Groups http://groups.google.com/group/aaigroup For your vision in google adsense. How to make money with adsense. How to create web to create page impression. How to earning money easy. For article, technique, thinking in adsense, seo, free downlaod, free stuff.

full-text search and mediawiki markup apps

2007-09-07 Thread David Cramer
I've taken the time to upload both our SphinxSearch layer, and our MediaWiki markup util to Google code today. For more info see my blog post: http://www.davidcramer.net/code/54/mediawiki-markup-and-sphinxsearch-... I haven't used Google code before, so if theres any problems just let me know. E

Re: Using multiples version of Django on the same server

2007-09-07 Thread Tim Chase
> I'm setting up a new server to host my Django projects and they don't > each use the same version of Django (0.95, 0.96 and svn). Is their a > way to configure each virtualhost to use their own version of Django ? I've done something like this whereby I had several of the development branches

Re: ANN: Making some changes to djangoproject.com

2007-09-07 Thread ToddG
> These changes are in preparation of some exciting news, but I'll leave > y'all in suspense until next week. You're rewriting Django in Java! Finally, enterprise capability! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Using multiples version of Django on the same server

2007-09-07 Thread Andrey Khavryuchenko
FS> I'm setting up a new server to host my Django projects and they don't FS> each use the same version of Django (0.95, 0.96 and svn). Is their a FS> way to configure each virtualhost to use their own version of Django ? Put each version in it's own directory (say, django-0.95 and django-0.9

Re: ANN: Making some changes to djangoproject.com

2007-09-07 Thread Jacob Kaplan-Moss
On 9/7/07, ToddG <[EMAIL PROTECTED]> wrote: > You're rewriting Django in Java! Finally, enterprise capability! Dammit, that news wasn't supposed to leak! Who told you!? Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Using multiples version of Django on the same server

2007-09-07 Thread Fabien Schwob
Hello, I'm setting up a new server to host my Django projects and they don't each use the same version of Django (0.95, 0.96 and svn). Is their a way to configure each virtualhost to use their own version of Django ? Thanks -- Fabien SCHWOB --~--~-~--~~~---~--~

Re: Help me understand the error of my ways...

2007-09-07 Thread jake elliott
hi atendo, Atendo wrote: > If I do that, I get this error: > > > KeyError at / > 'link' > Request Method: GET > Request URL: http://localhost:8080/ > Exception Type: KeyError > Exception Value: 'link' > --

Re: Django Book

2007-09-07 Thread Jacob Kaplan-Moss
On 9/7/07, Griffin Caprio <[EMAIL PROTECTED]> wrote: > This may have been answered already, but I couldn't find it. What's > the status of www.djangobook.com? The last update is dated Jan 24 > 2007 and two chapters are still TBA. Has the book been abandoned ? No, we're finishing up the book fo

ANN: Making some changes to djangoproject.com

2007-09-07 Thread Jacob Kaplan-Moss
Howdy folks -- A quick announcement: I'm going to be making some changes to djangoproject.com over the next week or so. The first of those changes are done and don't appear to have broken anything, but if you notice anything busted, please send me an email ([EMAIL PROTECTED]). These changes ar

Re: Help me understand the error of my ways...

2007-09-07 Thread Atendo
If I do that, I get this error: KeyError at / 'link' Request Method: GET Request URL:http://localhost:8080/ Exception Type: KeyError Exception Value:'link' --~--~---

Re: Form field deletion

2007-09-07 Thread Mark Green
On Fri, Sep 07, 2007 at 03:24:46PM -0500, jake elliott wrote: > > Oleg Korsak wrote: > >> Sure - use the 'fields' option to specify the subset of model fields > >> you want to use on the form. > >> > > form_for_instance() got an unexpected keyword argument 'fields' > > > > this argument to fo

Project level tags - again

2007-09-07 Thread arelenas
How to make project level tags? I've already read post http://groups.google.com/group/django-users/browse_thread/thread/49e9669c64e353b2/ and tried what Ivan Sagalaev suggested but I've got TemplateSyntaxError - "common_tags' is not a valid tag library. What could be the problem? There is Tick

Re: Form field deletion

2007-09-07 Thread jake elliott
Oleg Korsak wrote: >> Sure - use the 'fields' option to specify the subset of model fields >> you want to use on the form. >> > form_for_instance() got an unexpected keyword argument 'fields' > this argument to form_for_instance() and form_for_model() is only available in the SVN version of dj

Re: Help me understand the error of my ways...

2007-09-07 Thread jake elliott
hi atendo, Atendo wrote: > And then in the homepage index.html I've got this: > > {% load industry_widget %} > sorry if i miss the mark here but are you actually invoking the templatetag you've load

Re: Form field deletion

2007-09-07 Thread Oleg Korsak
Russell Keith-Magee пишет: > On 9/7/07, Oleg Korsak <[EMAIL PROTECTED]> wrote: > >> I just want to create form_for_model and/or form_for_instance and then >> delete one field (user). Is it possible or do I need to manually create my >> own form? > > Sure - use the 'fields' option to specify th

Help me understand the error of my ways...

2007-09-07 Thread Atendo
I'm quite new to Python and Django so please bear with me as I'm more of an HTML coder/designer by trade. I'm trying to do something that to me seems simple but apparently isn't. Basically, I have 2 separate "apps" which are really just widgets for a homepage that contain a link and text that I

Django Book

2007-09-07 Thread Griffin Caprio
This may have been answered already, but I couldn't find it. What's the status of www.djangobook.com? The last update is dated Jan 24 2007 and two chapters are still TBA. Has the book been abandoned ? There is a Django book coming from APress (http://www.amazon.com/ Definitive-Guide-Djang

Re: error: unsupported locale setting on windows machine

2007-09-07 Thread Subrat
This issue has been fixed. On Sep 6, 11:40 am, Subrat <[EMAIL PROTECTED]> wrote: > I am currently building an app in windows machine which was already > built in unix machine. While running 'syncdb' command, I am getting > error 'unsupported locale setting'. > > >>> import locale > >>> locale.set

Re: Django Contract Work Available

2007-09-07 Thread kyle
Hello, I'm responding to your post to the django-users list. I'll be available for some contract work in the next week or so. I've attached my resume in PDF format. Thanks for your time. Regards, Kyle Ambroff <[EMAIL PROTECTED]> Freelance Software Developer Phone: +1 530.306.5134 Jabber/GTalk:

Re: data manipulation in templates or views?

2007-09-07 Thread RajeshD
> I hope I am not inviting a quasi-religious war > on this issue, but I am wonder if people could provide some insight on > when or why I should do this sort of thing within the template (via > template tag or not) or if I should continue doing that within the > view, which not only currently make

Re: newforms: message "this field is required" although required=False

2007-09-07 Thread patrickk
just printed "form.is_bound" in my view: the result is "True", although I didn´t invoke the Form with any data. btw: I´m using the current SVN-version and did an update last week (before the update it worked). any help with this? thanks, patrick On 7 Sep., 16:53, patrickk <[EMAIL PROTECTED]> w

Re: data manipulation in templates or views?

2007-09-07 Thread Alex Koshelev
Templates just represents data to the client, all calculations must by in views or model methods --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

http://islam-town.miniville.fr

2007-09-07 Thread Ussop
Visit my city in http://islam-town.miniville.fr It's a good game, try it by yourself :) Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

data manipulation in templates or views?

2007-09-07 Thread r_f_d
I have been looking at many of the posts in here in recent weeks and wanted to ask any djangurus out there a question to clear up some confusion I have. Should I do data manipulation in my views or in templates. After reading much of the django documentation and working with the framework for th

Re: User Administration

2007-09-07 Thread RajeshD
> > please have a method to add one user to a specific group? Try this: grp = Group.objects.get(name='registered') us.groups.add(grp) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

newforms: message "this field is required" although required=False

2007-09-07 Thread patrickk
I´m creating a dynamic newform and when going to the page, I´m getting an error-message "This Field is required", although required ist set to False when building the Form. Here´s part of the code: field_list = [] date = forms.ChoiceField(label='Wann', required=False, choices=date_choice

Re: hidden fields

2007-09-07 Thread RajeshD
On Sep 7, 9:55 am, Ana <[EMAIL PROTECTED]> wrote: > Hi, > I'd like to have "last modified by" and "owner" fields in my > application. I'd like to set fields value automatically, and I want > those fields to be hidden. Is there any way I can do that? Yes. Here's one way to do it: Add those t

Re: Unicode problem when rendering a template

2007-09-07 Thread Tipan
On Sep 5, 9:28 pm, wolfds <[EMAIL PROTECTED]> wrote: > Can we see the model definition for Reward? Just got back to this and realised I was being a dummy. Whilst I had changed all the def's to unicode, I'd still left some str() functions on the return. Changed these to smart_unicode() and the p

hidden fields

2007-09-07 Thread Ana
Hi, I'd like to have "last modified by" and "owner" fields in my application. I'd like to set fields value automatically, and I want those fields to be hidden. Is there any way I can do that? Thanks in advance, Ana --~--~-~--~~~---~--~~ You received this message

Re: putting a link in a multiplechoice checkbox field in new forms

2007-09-07 Thread Kenneth Gonsalves
On 07-Sep-07, at 4:43 PM, Kenneth Gonsalves wrote: > > checkbox itemname > > I tried to format this in the view itself - but didnt get a link - > just got the literal string above. Any ideas? solved - just broke up the form and made the template by hand -- regards kg http://lawgon.livejou

Django Contract Work Available

2007-09-07 Thread [EMAIL PROTECTED]
Overview: Currently looking for a python/django developer for contract work on a web API and web-based account management system. Project Details: The project will consist of two main parts: a web API responsible for account registration and web interface responsible for managing account data. Th

Re: hai am new one to django

2007-09-07 Thread Jon Atkinson
The mod_python documentation will help you: http://www.modpython.org/live/current/doc-html/installation.html And there is a very helpful mod_python mailing list you can subscribe to and ask any questions you may have: http://modpython.org/pipermail/mod_python/ Good luck! --Jon On 9/7/07, Dam

User Administration

2007-09-07 Thread cingusoft
hi guys my question is: in my application i have a views with a method to insert a new user. the form sebd the informations and i register the user with: us=User.objects.create_user(new_data['username'], new_data['email'],

Re: FORMS help needed

2007-09-07 Thread AniNair
Thank you a lot. That was just what I wanted to know: about the url conf for get function. Thank you.. thank you... And is it similar in post? Once again, thank you a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: hai am new one to django

2007-09-07 Thread Damodhar
Hai , I,read the django documentation , am very interest to learn django. so iwant to confiugure Apache (mod_python), But i don't know how to configure. now am working in php mysql.using XAMPP (http:// www.apachefriends.org/en/xampp-windows.html) (PHP + Mysql + Apache) as a server installed in my

putting a link in a multiplechoice checkbox field in new forms

2007-09-07 Thread Kenneth Gonsalves
hi, I have a multiplechoice field using multiplecheckbox widget. There is a form which has various action buttons for the selected items. In addition, I need to add a link to each of the selected items - something like 'details here ...' and clicking the link would take them to the detail

login cookies problem[SESSION_COOKIE_DOMAIN]

2007-09-07 Thread beck917
Your username and password didn't match. Please try again. {'username': ["Your Web browser doesn't appear to have cookies enabled. Cookies are required for logging in."]} -->This is the error message when I login,I had seen the Django's document,then guess it's SESSION_COOKIE_DOMAIN probl

Re: sporadic VariableDoesNotExist's...

2007-09-07 Thread Bram - Smartelectronix
Brian Morton wrote: > Also, do you have django.core.context_processors.request in your > context_processors? It looks like you're trying to overwrite a dict > element that already exists. # settings.py TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.auth', 'django.c

Re: FORMS help needed

2007-09-07 Thread o.elias
Hi! Everything after the '?' in the url is post using the GET array. The regular expression of yor url config ignores these parameters and should simply be (r'^showuser/$)', show) to match on the url sent by the form. To get the GET-data sent by the form, use something like this: def show(reque

Re: admin site form encoding

2007-09-07 Thread Matt Davies
I've fixed the problem I had to pull /admin/base.html into my templates folder and add this line to the head IE6 browsers that have their default character set set to Latin1 can now add utf8 characters, they could not before. This line should be in the base.html within django source code fella

Re: using querysets to populate a form

2007-09-07 Thread David Reynolds
On 6 Sep 2007, at 9:21 pm, RajeshD wrote: > You can always turn the queryset into a list and cache it with > Django's caching framework. However, that doesn't solve the usability > issue of a huge drop-down list. A few options: > > 1. Do what the Django raw_id_admin interface does (http:// > www

Re: FORMS help needed

2007-09-07 Thread AniNair
Hi... Thanks alot for the reply, I am a bit confused with this since i have been trying to get an idea for the last few hours,. I went through the documentation, Can u/anyone tell me how my urlconf should be like? I hav a simple text box with a submit button. I want to know how to get that value

Re: Problem with Mysql database

2007-09-07 Thread Nader
Indeed, the problem was that both of the tables were defined in database. It has been solved by deleting of Dataset. Thank! On Sep 6, 4:37 pm, Nis Jørgensen <[EMAIL PROTECTED]> wrote: > Nader skrev: > > > I have used 'inspectdb' to produce the model, because I had a dump > > mysql file. In Meta

Excel-like functions in templates?

2007-09-07 Thread jj
I have a list of items and I define some way to rank them: class Item: name = models.CharField() project = models.ManyToManyField(Project) def score(year): ... some intensive computation + queries ... return result I'd like to display the items together with their sc

Re: i18n blocktrans

2007-09-07 Thread Katja Süss
Yes, sorry. Now I see. {% blocktrans with value|filter as myvar %} This will have {{ myvar }} inside. {% endblocktrans %} That makes sense, definitly. Thanks a lot! Katja Malcolm Tredinnick schrieb: > On Fri, 2007-09-07 at 00:07 -0700, ksuess wrote: >> http://code.djangoproject.com/ticket/5073 >

admin site form encoding

2007-09-07 Thread vanderkerkoff
Has anyone experienced any problems with getting IE browsers to recognize that they should be using the default_charset when entering data into forms in the admin site? I'm having a hell of a time of it, all unicode, new trunk, front end running of lighttpd, all set to utf8, database utf8, no pro

Re: i18n blocktrans

2007-09-07 Thread Malcolm Tredinnick
On Fri, 2007-09-07 at 00:07 -0700, ksuess wrote: > http://code.djangoproject.com/ticket/5073 > Isn't it a typical use case that attributes of variables are used in > templates? > If this is not supported a view has to call a template like this > return render_to_response('polls/detail.html', {'obj

i18n blocktrans

2007-09-07 Thread ksuess
http://code.djangoproject.com/ticket/5073 Isn't it a typical use case that attributes of variables are used in templates? If this is not supported a view has to call a template like this return render_to_response('polls/detail.html', {'object': p, 'question': p.question,}) which is not