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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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',))
--
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
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
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
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
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
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
**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(
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: ",
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
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
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
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
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
Ben: RJS sounds interesting. How does it work different from other
helpers?
Eugene: Your article is excellent. I like it a lot.
-Louis
It's in http://code.djangoproject.com/ticket/1262
.
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
Hi,
Has anybody ported RoR's JavascriptHelper functions to Django's tag
library? Just want to make sure before I begin.
Thanks.
35 matches
Mail list logo