Django redirect to a view function after selecting an item from dropdown box

2019-09-11 Thread Rudolph Louis Cabeltis
Hello, I am using Forms by Django. And that form has a select box with two options. After a user selected an option. I would like the user to do the function in the django view. Will I be able to do this without using AJAX or Javascript? Thank you. -- You received this message because you are

Re: Different results of running pure SQL query from Django and from PGAdmin

2018-09-12 Thread Pierre-Louis K.
Hello Bill, I managed to solve this in the end, the issue was that a cursor created in Django would enforce TIME_ZONE settings in the PostgreSQL session, where by default it is set to 'UTC' in my case. This means that all date manipulation was impacted, hence the unexpected results. The work ar

Re: Different results of running pure SQL query from Django and from PGAdmin

2018-09-10 Thread pierre-louis . kabaradjian
Here is the body of the code that runs the query and fetch results: with connection.cursor() as cursor: sql = ( ... ) cursor.execute(sql, [params...]) columns = [col[0] for col in cursor.description] for row in cursor.fetchall(): print(row) The results from t

Different results of running pure SQL query from Django and from PGAdmin

2018-09-07 Thread Pierre-Louis K.
r has an idea I am interested. Cheers, Pierre-Louis K. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post

DJANGO timezone.now is diffefent to datetime.now after we set the timezone config in setting.py

2018-01-18 Thread Lau Louis
urned the right "Asia/Shanghai' timezone, but when i run timezone.now(), it is using UTC time, and when i use datetime.datetime.now(), it is using the correct time. So it is quite weird behavoir. Can someone tell me if this is a bug or i had missed out some setting? Louis -- Yo

ANN: django-admin-tools 0.8.1 released

2017-05-30 Thread David Jean Louis
Hello, We are happy to announce the availability of the version 0.8.1 of django-admin-tools: https://pypi.python.org/pypi/django-admin-tools/0.8.1 Django-admin-tools is a collection of extensions/tools for the default django administration interface, it includes: * a full featured and customizabl

ANN: django-admin-tools 0.8.0 released

2016-08-12 Thread David Jean Louis
Hello, We are happy to announce the availability of the version 0.8.0 of django-admin-tools: https://pypi.python.org/pypi/django-admin-tools/0.8.0 Django-admin-tools is a collection of extensions/tools for the default django administration interface, it includes: * a full featured and customizabl

ANN: django-admin-tools 0.7.0 released

2015-11-05 Thread David Jean Louis
Hello, We are happy to announce the availability of the version 0.7.0 of django-admin-tools: https://pypi.python.org/pypi/django-admin-tools/0.7.0 Django-admin-tools is a collection of extensions/tools for the default django administration interface, it includes: * a full featured and custo

Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form CommitmentForm needs updating

2015-08-24 Thread Francis Louis
Hi All, May I ask this question, I am using Django 1.8.4 with Python 2.7 After I run the development server by running this command c:\Python27\python.exe manage.py runserver and access the below given URL, http://127.0.0.1:8000/ I get this error, May I know how to resolve this issue? Best

ANN: django-admin-tools 0.6.0 released

2015-07-07 Thread David Jean Louis
Hello, We are happy to announce the availability of the version 0.6.0 of django-admin-tools: https://pypi.python.org/pypi/django-admin-tools/0.6.0 Django-admin-tools is a collection of extensions/tools for the default django administration interface, it includes: * a full featured and custo

ANN: django-admin-tools 0.5.0 released

2013-03-06 Thread David Jean Louis
oject is hosted on Bitbucket: https://bitbucket.org/izi/django-admin-tools/ Django-admin-tools is generously documented, you can browse the documentation online here: https://django-admin-tools.readthedocs.org/ Regards, -- David Jean Louis -- You received this message because you are subscrib

Re: spam in response to posting to this list

2011-08-29 Thread Jim Louis
Louis, CMP Founder/Wednesday Moderator of the Meetings Community (MeCo) On Aug 10, 6:01 pm, Brian Bouterse wrote: > +1 to your suggestion of folks not overusing +1 > > On Wed, Aug 10, 2011 at 5:51 PM, Michal Petrucha > wrote: > > > > > > > > > > > On T

ANN: django-admin-tools 0.4.0 released

2010-12-13 Thread David Jean Louis
Hello, I'm happy to announce the availability of the version 0.4.0 of django-admin-tools. Django-admin-tools is a collection of extensions/tools for the default django administration interface, it includes: * a full featured and customizable dashboard, * a customizable menu bar, * tool

ANN: django-admin-tools 0.3.0 released

2010-07-16 Thread David Jean Louis
Hello, I'm happy to announce the availability of the version 0.3.0 of django-admin-tools. Django-admin-tools is a collection of extensions/tools for the default django administration interface, it includes: * a full featured and customizable dashboard, * a customizable menu bar, * tool

ANN: django-admin-tools 0.2.0 released

2010-03-15 Thread David Jean Louis
Hello, I'm happy to announce the availability of the version 0.2.0 of django-admin-tools. Django-admin-tools is a collection of extensions/tools for the default django administration interface, it includes: * a full featured and customizable dashboard, * a customizable menu bar, * tools t

Re: ANN: django-admin-tools 0.1.0 released

2010-02-14 Thread David Jean Louis
Le 10/02/2010 09:56, David Jean Louis a écrit : Hello, I'm happy to announce the availability of the first public release of django-admin-tools. For those interested in the project, I've setup a mailing list to share ideas on django-admin-tools future developm

ANN: django-admin-tools 0.1.0 released

2010-02-10 Thread David Jean Louis
d day, -- David Jean Louis -- 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 django-users+unsubscr...@googlegroups.com. F

Re: Problem with importing widget media

2009-05-07 Thread David Jean Louis
Hi, > I've set up my Media class for a widget as such: > > class InternationalSlugWidget(forms.TextInput): > class Media: > js = ('js/international_slug.js') Your js here is a string, you want a tuple: js = ('js/international_slug.js',) >>> type(('foo')) >>> type(('foo',)) --

Re: bookmarks app with images

2009-02-12 Thread Louis Sayers
Firstly, make sure that you have the enctype="multipart/form-data" attribute on your form in your template. You can create an object of your form by writing: formObject = BookmarkSaveForm(request.POST, request.FILES) test if it's valid: if formObject.is_valid(): Looking at your Photo model, yo

What is the best way to keep state between posts?

2009-02-12 Thread Louis Sayers
Howdy, I've created a form that allows a user to post images to the server. Once the images are posted, I am saving them to disc, and if there are any errors, I return the form with the errors in them, and thumbnails of the successfully uploaded pictures. If they are unsuccessful when they post

Re: removing cached form fields

2009-02-09 Thread Louis Sayers
Ok, I'm not doing any django for the next couple of days, so will post when I have a watered down example (unless of course doing this solves the problem :)) On Feb 10, 4:36 pm, Malcolm Tredinnick wrote: > On Mon, 2009-02-09 at 17:17 -0800, Louis Sayers wrote: > > I've got

removing cached form fields

2009-02-09 Thread Louis Sayers
I've got a django Form which contains a dictionary of strings. I've given the form a submit button and a preview button. When the preview button is pressed after entering some information, a POST is sent, and the strings in the dictionary are automagically recovered (I assume that it's done using

Re: Error saving a Model with a custom image field

2009-02-02 Thread Louis Sayers
I think it must be something that I'm not doing. It all works when I'm using a ModelForm, so there must be a difference between what I'm doing manually, and what the ModelForm does for me. The culprit must be my code: new_image = ImageWithThumbsField(images_to_save[image], up

Re: Error saving a Model with a custom image field

2009-02-02 Thread Louis Sayers
I'm running the official release of django 1.02 Do you think there'd be any problems with this version? I've only been using django for the last 2 months, so I'm fairly new to it, and haven't investigated different revisions etc On Feb 3, 12:58 pm, Andrew Ingram wr

Error saving a Model with a custom image field

2009-02-02 Thread Louis Sayers
**callback_kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/auth/ decorators.py" in __call__ 67. return self.view_func(request, *args, **kwargs) File "/home/louis/uniListings/../uniListings/listings/views.py" in add 63. imageModel.save(

Re: Validating and rendering dynamic form

2009-01-31 Thread Louis Sayers
answer from stackoverflow: http://stackoverflow.com/questions/499964/how-do-you-create-python-methodssignature-and-content-in-code/499982#499982 Python code behaves like this for functions defined in scope of methods. Use this instead: for image_name in image_fields: print "image name is: ",

Re: Validating and rendering dynamic form

2009-01-31 Thread Louis Sayers
The image_name is changing, but it looks like only the final image_name is used (which will of course be the last image). Why would this be happening? All of the clean methods are generated correctly (e.g. clean_pic_1, clean_pic_2) Is there something to do with lambda express

Re: Validating and rendering dynamic form

2009-01-31 Thread Louis Sayers
Ok... maybe not so solved. Now ony the last image submitted is validated. in the _clean_photo (self, dataName) method, I print the data, and all the images except for the last one contain None. Any Ideas? On Feb 1, 12:51 pm, DragonSlayre wrote: > Solved my problem - data = self.cleaned_data[da

Session logout behaviour

2008-05-29 Thread Louis Cordier
od of dealing with this situation, polluted sessions ? * Is this a bug, should I file a ticket ? Regards Louis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Does request.is_ajax() really work?

2008-04-25 Thread Louis Orenstein
Could you print out what the request.META.get('HTTP_X_REQUESTED_WITH') method returns?  Maybe the request doesn't have that property set correctly, or maybe the HTTP_X_REQUESTED_WITH value isn't the proper thing to "get" from META ? Patrick Lv wrote: Hi Alex, What I am talking about is thi

Re: Sending emails with special characters

2008-04-18 Thread Louis Orenstein
It sounds like you will need to encode those characters in something like UTF-8 or some other character set. I'm not sure how you would go about doing that, but maybe the smtp object you create has a field or option specifying the character set with which to encode the email? Louis J

Re: RoR Ajax helpers port to Django tags?

2006-01-26 Thread Louis
Ben: RJS sounds interesting. How does it work different from other helpers? Eugene: Your article is excellent. I like it a lot. -Louis

Re: RoR Ajax helpers port to Django tags?

2006-01-22 Thread Louis
It's in http://code.djangoproject.com/ticket/1262 .

Re: RoR Ajax helpers port to Django tags?

2006-01-21 Thread Louis
Thanks! It helped a lot. I only had to write small bridging Django tag to use his Rails Helpers. It saved a lot of time. -Louis

RoR Ajax helpers port to Django tags?

2006-01-20 Thread Louis
Hi, Has anybody ported RoR's JavascriptHelper functions to Django's tag library? Just want to make sure before I begin. Thanks.