Hi!
We have been used our owned modpy web applications without any
frameworks.
Now we want to use (and test) some framework, like django, pylons, or
other.
We used DBISAM ODBC connections in out sites.
Can django handle these connections as normal db connections?
Can we use other native databa
Hi all
I'm having problems working out how to pass messages to a form when using a
Redirect.
One example I found on the web of a Contact form set a variable
message='Contact
Added' or message='Contact Updated' depending on what happened. This example
didn't
use any Redirect after a POST.
M
I am using python 2.5 with django 0.96 rev 5005 using mysql database.
When I try to cast a vote via web forms in part 4 of the tutorial, I
get the following error after I select a choice and submit the form:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versio
Hello,
I am running django 0.95. I am going through the tutorial. My problem is
this:
I have 4 polls. If I run python manage.py shell and Poll.objects.all()
it shows them. Unfortunately when I go mysite/polls
(http://binarymanipulations.com:8157/polls/) it says "No polls are
available." Also if
I'm looking for a talented local programmer to help with a growing
workload, on a regular contract basis. All projects in django :-)
Or if you have experience working remotely that could work too.
--~--~-~--~~~---~--~~
You received this message because you are su
All you need is the idea what your forum is going to be about... We
sort you out with the rest. With ForumsGoGo, you don't need to pay for
hosting, maintenance, installation, support etc... We've got that
covered. All you need is the idea for what your forum will be about.
We host for free bands,
if you have no hosting,I suggest you apply for a free forum.
http://www.forumgogo.comMore powerful than the phpbb
Trait:
100% free and no pop-ups. Unlimited Bandwidth, Unlimited Storage,
Unlimited users, unlimited threads, unlimited topics.Fast, Friendly
Tech Support.You have total control ov
http://www.forumgogo.com More powerful than the phpbb
This is a great site that is completely free, and can make some cool
forums, here's an example of one, you can make your own topic, polls,
and replies etc, and you can have an accout for every member. This
next link is an example of a forum
So basically, it's like the difference between range() and xrange().
Thanks Niels, that helped a lot.
On Apr 12, 3:42 pm, "Niels" <[EMAIL PROTECTED]> wrote:
> Your understanding is basically correct. Gettext_lazy returns an
> object that will be stored inside the form class definition. The
> actu
Find Your Programming Job Vacancy and resources here -->
http://www.jobbankdata.com/job-programming.htm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [EMA
On 4/13/07, Tyson Tate <[EMAIL PROTECTED]> wrote:
>
> Any ideas here on the list? I know fixtures are a bit new, so
> hopefully this is just a minor issue.
Hi Tyson,
I just tried this on my machine, using Postgres and SQLite, and it
worked fine. I was able to round trip dumpdata/loaddata using t
On 4/13/07, Saik <[EMAIL PROTECTED]> wrote:
>
> But i have no problem with json serializing (the ticket is about
> that), what is the correct way in this case? do i add my problem with
> xml serialize in that ticket? or do i have to open a new one?
>
> thx for the info, im a bit lost...
I'd raise
Hi Masuran!
Nice, I'm glad you've made it.
I'm pretty sure that it's possible to clean up or dismiss some of
those JS files, most of them are related to Django admin and won't be
needed just to use the widget.
The 'jsi18n' path is a Django admin view, it's path is relative
because the Admin app
ehm... take 2:
which has the same effect
:$
On Apr 13, 1:16 am, "Niels" <[EMAIL PROTECTED]> wrote:
> Things don't need be more complicated than neccessary:
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
Things don't need be more complicated than neccessary:
Apache config snippet:
SetEnv DJANGO_SETTINGS_MODULE yourapp.settings
SetHandler python-program
PythonHandler django.core.handlers.modpython
Which matches root, as well as some selected paths and everything
bel
Got the same Problem here. On my Laptop all is fine but on the Server
I got an Unicode Error. Seems to me, that the german month "März"
isn't correctly encoded.
Can someone help? On both PCs is DEFAULT_CHARSET = 'utf-8' in the
settings and a postgres database running.
Christian.
--~--~---
I was having the same problem with {{ object_list.count }}, but from
the first link above found that {{ object_list|length }} does the
trick.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
I ran a JSON dump on one of my models and got the following:
--
$ python manage.py dumpdata databases
[{"pk": "3", "model": "databases.subject", "fields": {"slug": "boom",
"title": "Boom"}}, {"pk": "2", "model": "databases.subject",
"fields": {"slug": "more-testing", "title": "More Testing"}}
I have a model which has a ForeignKey to itself, intended to mark
duplicates similar to a bug/ticket-tracking system:
class Bug(models.Model):
name = models.CharField(maxlength=64)
duplicate_of = models.ForeignKey('self', related_name='duplicates',
null=True)
def __str__(self):
sjol,
this is fairly easy to do on some level. We have django integrated
into a PHP site for the Python Conference:
http://us.pycon.org/
All the django apps are under 1 root url '/apps07/'
This is the easiest way to integrate things in the beginning. By
having a specific root all the django
Hi,
I would like to integrate Django to an "old" site. By this I mean that
reworking the whole site from scratch will not be possible I have to
change it piece by piece. But I would like the first piece to be the
root but other parts of the URL would stay the same ( it is all php
code or jsp ).
Your understanding is basically correct. Gettext_lazy returns an
object that will be stored inside the form class definition. The
actual translation then occurs when that object is evaluated as a
string. And there is quite some magic going on behind the scenes:
>>> from django.utils.translation i
I think this discussion has reached its logical end as it often does.
With that I will end it the way all the other discussions have ended
^_^.
Write the integration framework for the Javascript library you like
and get community support for it.
If that support gets enough steam it will be consid
Find Your Programming Job Vacancy and resources here -->
http://www.jobbankdata.com/job-programming.htm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [EMA
> I like jQuery. You like mochikit. Others like YUI, or Prototype, or
> Dojo. Who's right? Everybody. Nobody. It depends.
I probably shouldn't have brought mochikit into it:) I like it, true
enough, but I'd actually be happy to abandon it if there was some
strong benefit like community involveme
Does anybody know away to change edit_inline via _meta? Much like:
Model._meta.get_field('some_field').editable=False
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
That worked, thanks very much. I'm not quite clear on the difference
between gettext and gettext_lazy however. As I understand it, gettext
will translate the string when the Python file is loaded (imported)
and gettext_lazy will translate the string when the template is
rendered. Is that it?
V
Ben,
> the middleware can handle the transformation.
I think that is a good next step for the response to be updated.
>
> I can put this on djangosnippets, but since you're the original author
> I figured I'd give you the opportunity first.
>
Please feel free, what I wrote is pretty trivial.
Hi. I think you need the to add following import statement after
importing newforms as well:
from django.utils.translation import gettext_lazy as _
On Apr 12, 5:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I have the following form:
>
> from django import newforms as forms
>
> class
But i have no problem with json serializing (the ticket is about
that), what is the correct way in this case? do i add my problem with
xml serialize in that ticket? or do i have to open a new one?
thx for the info, im a bit lost...
regards,
Saik.
On 12 abr, 02:36, "Russell Keith-Magee" <[EMAIL
We have a report in our system that is generating a temporary table,
that we need to access ( via custom sql ) we tried doing this
through django objects raw sql method...but since each request closes
the connection... the temporary table then seems to disappear
another developer is worki
Jesse,
I think that this is a decent idea. One thing that I think would be
useful though is for this sort of transform to be transparent... that
way templates can be constructed properly and
the middleware can handle the transformation.
I've put together a quick example combining your code and
>> Yes, I can see that, but PUT is idempotent, while POST
>> isn't. It seems to me that treating one verb as another
>> will at least make HTTP caching odd.
>
> None of PUT/POST/DELETE are cacheable (with the exception of
> POST with Expires or Cache-Control headers)... so I don't know
> that yo
On 4/12/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
>
> Yes, I can see that, but PUT is idempotent, while POST isn't. It
> seems to me that treating one verb as another will at least make HTTP
> caching odd.
None of PUT/POST/DELETE are cacheable (with the exception of POST with
Expires or Cache-
On 4/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I think the idea is to embrace the value of the HTTP methods (the
> standard) even in an imperfect world. So, while IE might not support
> a form with method "PUT", we can provide a band-aid that will let a
> non-compliant browser work
I think the idea is to embrace the value of the HTTP methods (the
standard) even in an imperfect world. So, while IE might not support
a form with method "PUT", we can provide a band-aid that will let a
non-compliant browser work while offering seemless functionality for
browsers that do.
jll
O
I have the following form:
from django import newforms as forms
class ContactForm(forms.Form):
to = forms.ChoiceField(label=_('To'), choices=CONTACTS)
sender = forms.EmailField(label=_('Email'))
subject = forms.CharField(label=_('Subject'), max_length=50)
message = forms.Ch
On 4/12/07, Jesse Lovelace <[EMAIL PROTECTED]> wrote:
> I've been interested in the idea of faking HTTP methods that
> browsers/servers might not support
I'm not sure I understand the motivation to munge the request from the
browser to use different verbs. Surely if you're inspecting a
particula
Hi all,
I've been interested in the idea of faking HTTP methods that
browsers/servers might not support like the rails people are doing in
1.2 so I've written a very minimal middleware to do this--if someone
else has done this already sorry for the repetition. (It does the
method faking using a p
On 4/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> pcad, there's some good points there, and maybe many of us could share
> more code showing how we've integrated whatever JS toolkit with
> Django. But I like the agnostic stand. They give the tools to connect
> easily. HOW you connect is
pcad, there's some good points there, and maybe many of us could share
more code showing how we've integrated whatever JS toolkit with
Django. But I like the agnostic stand. They give the tools to connect
easily. HOW you connect is up to you.
I like jQuery. You like mochikit. Others like YUI, or
Hi, again
Found a solution which doesn't seem to be documented:
If you need a special manager for the admin interface, then you should
add this one to the Admin class of your model:
class Admin:
manager = MyManager()
Regards,
Laurent
On 12 avr, 15:39, "asrenzo" <[EMAIL PROTECTED]> wr
> thread when I first came to Django. In hindsight, it was pure
> inability to write the javascript myself, and reluctance to properly
> learn javascript. In the end I've seen that writing javascript
> manually results in much cleaner html output, using less code and it
> sometimes just performs b
Hi,
We can read in the model reference that we can create an unlimited
number of managers in a single model. The documentation gives example
of how to create and use a custom manager. We can also read:
"""
If you use custom Manager objects, take note that the first Manager
Django encounters (in
Micha Reiser schrieb:
> I created an upload page, but the problem is, that the server load the
> whole file in the Ram.
I have only some links for you:
- http://code.djangoproject.com/ticket/1484
- http://code.djangoproject.com/ticket/2070
- http://jesusphreak.infogami.com/blog/vrp1 (sear
Hello
I created an upload page, but the problem is, that the server load the
whole file in the Ram. I have a limit (80MB) and when i will upload a
big file the server will kill my procress.
I want not to load the file in the database, it shoud be stored on the
harddrive. Have you any idea, h
Olivier Guilyardi wrote:
> I'm still a python newbie, but it seems to me that there could be a way to
> modify the model definition before Django knows about it:
Okay, I found the Field.contribute_to_class() method which seems to work just
fine. I'm calling it right after my model class declarati
Finally, problem solved :)
These are the javascript functions included in the admin page that
works:
The problem was the fact that the jsi18n script is included by a
relative path. If your URL path is just one directory longer or
shorter than the admin URL path, the i18n script can't be fo
Thanks! that was it. Now I can reproduce the error. Which is the
"correct" solution?
An easy and not really nice one is to encode title into
DEFAULT_CHARSET, but I'd rather
have _() return an unicode object. How should I do to obtain this?
sandro
*:-)
--~--~-~--~~~
49 matches
Mail list logo