Funkiest SonomaSunshine page ever... A slim, trim 30ish MB page,
leaves time for fetching a beer or some coffee. Takes about 10
minutes to watch. Yet another example of using Django to generate
frilly, colorful Flash pages instead of more of that hypertext
stuff...
:)
On Mon, 2007-10-29 at 04:35 +, Dan wrote:
> Hi
>
> In the i18n docs it says you can pass in translations to template tags
> in the following format:
>
> {% some_special_tag _("Page not found") value|yesno:_("yes,no") %}
>
> *
Hi
In the i18n docs it says you can pass in translations to template tags
in the following format:
{% some_special_tag _("Page not found") value|yesno:_("yes,no") %}
* http://www.djangoproject.com/documentation/i18n/#in-template-code
Has anyone got this working? I wrote a basic custom tag
the target fram should be specified in the form's target attribute ( ie,
target='parent')
On 10/29/07, Andreas Pfrengle <[EMAIL PROTECTED]> wrote:
>
>
> Depending on the user's input in a form, I want to redirect to a view
> that's content should be rendered in a corresponding target frame
>
return HttpResponseRedirect('/login/?next=%s' % request.path)
On 10/29/07, crybaby <[EMAIL PROTECTED]> wrote:
>
>
> For example, many php forums will redirect you to the previous page
> you were in, when you login to the forum. How do I do this in Python/
> Django?
>
> HTTP REFERER does not
On Mon, 2007-10-29 at 11:53 +1100, Malcolm Tredinnick wrote:
> On Sun, 2007-10-28 at 14:45 -0700, niklas.voss wrote:
> > I have a Problem, i have one Model, which has some Data, and another
> > Model, which has some Data.
> > Let's call it Model1 and Model2! The Problem ist there is a Field in
>
On Sun, 2007-10-28 at 14:45 -0700, niklas.voss wrote:
> I have a Problem, i have one Model, which has some Data, and another
> Model, which has some Data.
> Let's call it Model1 and Model2! The Problem ist there is a Field in
> Model1 which has an ID of a Model2-Object and Model1 has a function
>
On Sun, 2007-10-28 at 08:48 -0700, crybaby wrote:
> For example, you are at this url:
> www.site.com/post/id/1
>
> and view1.py display the view1.html for the above url.
>
> In the view1.html, I have a form and need to submit some value to
> another view2.py
>
> and validate, then send it back
I did a recent update on django and DualSessionMiddleware is not
working anymore.
http://code.djangoproject.com/wiki/CookBookDualSessionMiddleware
Seems like
from django.contrib.sessions.middleware import SessionWrapper is
replaced with
from django.contrib.sessions.middleware import
I have a Problem, i have one Model, which has some Data, and another
Model, which has some Data.
Let's call it Model1 and Model2! The Problem ist there is a Field in
Model1 which has an ID of a Model2-Object and Model1 has a function
that return the Model2-Object with that ID, too.
How can i call
IF you want to meet your old school & college mate's of your life
there is a chance, just enter school or college details in the below
site
http://www.batchmates.com/MGMhome.asp?refid=1385582=30264
PLEASE REGISTER IN THIS SITE.
IF U LIKE THEN FORWARD THIS MAIL TO U R FRIENDS...
For example, many php forums will redirect you to the previous page
you were in, when you login to the forum. How do I do this in Python/
Django?
HTTP REFERER does not work all the time. What is the best way to do
this?
--~--~-~--~~~---~--~~
You received this
Sorry for the spam, but as django users are (more or less) all python
users, I think this event might be considered relevant...? If not, I
won't do it again.
cheers, Giacomo
*
New meeting of the Python North-West community!
This month's talk is:
- Michael Sparks on "Greylisting with
Depending on the user's input in a form, I want to redirect to a view
that's content should be rendered in a corresponding target frame
(this can be either content in a "content"-frame or a new frameset in
"_top" if the user chooses a new personal layout). Is it possible to
do this via
Can someone please explain to me how to create a form which provides
not only the fields for the object but also the fiels for a related
object (foreign key) and the best method to validate and save the
data?
Thanks in advance,
Rob
--~--~-~--~~~---~--~~
You
Hmm, that's odd. I don't know what to say except the ever-infuriating
worksforme. When it doesn't work it is almost invariably because I have
changed code without restarting the server, so what I'm looking at and
setting breakpoints on in the editor doesn't match what's running under the
The other complication is that, in the United States, contractors have
to include in their hourly rate the employer's portion of payroll
taxes as well as enough money to pay for health insurance and other
benefits that might be provided by virtue of citizenship in other
countries, but which the
For example, you are at this url:
www.site.com/post/id/1
and view1.py display the view1.html for the above url.
In the view1.html, I have a form and need to submit some value to
another view2.py
and validate, then send it back to view1.py so view1.html is displayed
at the url:
Hi Malcolm
Many thanks for your verbose answer, i have to think the way i will
represent this. By the moment i don't have instance variables over the
state objects, so i was thinking that i could store the state "name"
and make a getter using something like a Factory. How much awful seem
to you
My question on the file object was a shot in the dark based on the only
thing that looked odd to me, given that the traceback information was
useless. So, if that seems to be correct per the docs, then I think you'll
need to get the traceback from the actual error in order to make progress.
>From
Thanks Karen,
yes, I use --noreload to run manage.py inside Eclipse. I can trace as
long as the code that is executed is from manage.py. If I use the
browser to execute views, then no breakpoints are stopped at...
On 27 oct, 18:57, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> I assume you are
Hi Malcolm
In my design i have a class called publication, that behaves
different depending on the "state", so i have an state hierarchy that
implement via polymorphism the different ways the publication behaves.
I have been reading the djangobook and searching the net, looking a
way to
On Sun, 2007-10-28 at 20:18 +1100, Malcolm Tredinnick wrote:
> On Sun, 2007-10-28 at 08:43 +, [EMAIL PROTECTED] wrote:
> > Hi Malcolm
> > In my design i have a class called publication, that behaves
> > different depending on the "state", so i have an state hierarchy that
> > implement via
On Sun, 2007-10-28 at 08:43 +, [EMAIL PROTECTED] wrote:
> Hi Malcolm
> In my design i have a class called publication, that behaves
> different depending on the "state", so i have an state hierarchy that
> implement via polymorphism the different ways the publication behaves.
> I have
On Sun, 2007-10-28 at 07:09 +, [EMAIL PROTECTED] wrote:
> Hi
> If i'm not wrong the model inheritance is not complete. How you
> turnaround this problem, when you had to implement the state pattern
> or the strategy?
> Any idea is welcome!!
Could you perhaps ask your question using less
On Sat, 2007-10-27 at 21:54 -0700, globophobe wrote:
> I checked out a recent copy of django from svn recently, and
> "path_info" returned to rear its ugly head. The patch as per
> http://code.djangoproject.com/ticket/3414 (mostly) resolves the
> issue.
One of my problems with the patch on #3414
> Is the value assigned to 'galleryfilename' really supposed to be an open
> file object? Just based on the name it sounds more like it should be a
> string containing the file name.
Ok. Let's be clear. I have a form with 3 inputs:
input type="text" name="name"
textarea name="annotation"
input
Hi
If i'm not wrong the model inheritance is not complete. How you
turnaround this problem, when you had to implement the state pattern
or the strategy?
Any idea is welcome!!
Thanks in advance!!
Sebastián
--~--~-~--~~~---~--~~
You received this message
On Oct 27, 10:57 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On 10/27/07, Joel Hooks <[EMAIL PROTECTED]> wrote:
>
> But firm is a ForeignKey. I think firm, by itself, without any __fieldname
> appended, is causing the whole search attempt to fail. The e=1 in where you
> get redirected to is
No, the cache was off all the time.
On Oct 19, 8:44 am, web-junkie <[EMAIL PROTECTED]> wrote:
> Did you activate the cache in Django? I once discovered an issue with
> that..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
30 matches
Mail list logo