Hi... I am using python2.5 with django 0.97 pre on windows xp.I am new
to this and I have to use captcha... I can't find any source. Can
anybody help? Thanking you all...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
> Hi... I am using python2.5 with django 0.97 pre on windows xp.I am new
> to this and I have to use captcha... I can't find any source. Can
> anybody help? Thanking you all...
I used this:
http://svn.navi.cx/misc/trunk/pycaptcha/
I've defined my own, customized captcha in a k_captcha.py:
# ---
try this one http://code.google.com/p/django-captcha/
On Aug 29, 11:12 am, Ani Nair <[EMAIL PROTECTED]> wrote:
> Hi... I am using python2.5 with django 0.97 pre on windows xp.I am new
> to this and I have to use captcha... I can't find any source. Can
> anybody help? Thanking you all...
hi all...
I have a problem.
After I edited the models.py,
and added class Admin: pass,
and off course in settings.py 'mysite.myproject'
it don't apear in the admin page!! Why ??
What I do wrong ?
this is the code of models.py
models.py
from django.db import models
import datetime
try converting it into string with smart_str
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group,
THANK YOU > It's working fine now..
.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this
solved.
I don't added everywhere class Admin: pass
On Aug 29, 9:44 am, Sheriff26 <[EMAIL PROTECTED]> wrote:
> hi all...
>
> I have a problem.
>
> After I edited the models.py,
> and added class Admin: pass,
> and off course in settings.py 'mysite.myproject'
>
> it don't apear in the admin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sheriff26 schrieb:
> hi all...
>
> I have a problem.
>
> After I edited the models.py,
> and added class Admin: pass,
> and off course in settings.py 'mysite.myproject'
>
> it don't apear in the admin page!! Why ??
> What I do wrong ?
>
> this is
Yes, me too.
I am desperately seeking this kind of job offering here in southern
Europe.
I hope it will happen before I retire (if I am not already too old).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hello everyone
I was wondering if anyone in this group had built a django powered
site in the welsh language, that is, with Welsh Language content and
using Django's built in Welsh Admin backend?
I'd be really interested in starting up a conversation.
you shouldn't limit your chances so much
"must be US citizens with no criminal history"
that's half the americans gone for starters :-)
Why live in New York?
People can do this from anywhere in the world. You use cutting edge
technology like django, good choice, but you're not prepard to use
On 29-Aug-07, at 12:58 PM, vanderkerkoff wrote:
> I was wondering if anyone in this group had built a django powered
> site in the welsh language, that is, with Welsh Language content and
> using Django's built in Welsh Admin backend?
is there a separate admin backend for welsh? I was under
thanks jeremy.
here´s the information:
CACHE_BACKEND = 'memcached://dedhost-sil-076.sil.at:11211/'
I´m not using the cache_middleware, because I´m using the per-view-
cache. Just re-checked the django-docs and hope I don´t misunderstand
the whole caching-thing - but according to the docs, the
Im using a 2knob slider from blueshoes
I have the following code that prints out the url of the site
{% url full-filter
old_origin,length=old_length,area=old_area,from_price=old_from_price,to_price=old_to_price,shipdate=ship_shipdate
%}
and I need to pass a price range in the url like this
olive napisał(a):
> Yes, me too.
>
> I am desperately seeking this kind of job offering here in southern
> Europe.
>
> I hope it will happen before I retire (if I am not already too old).
We are desperately seeking talented developers with Django skills.
Unfortunately - in central Europe.
On 8/29/07, Matt Davies <[EMAIL PROTECTED]> wrote:
> you shouldn't limit your chances so much
>
> "must be US citizens with no criminal history"
Somewhat OT, but for some companies this is a legal requirement.
Citizenship for certain firms who do government work, no criminal
record is common in
On 29-Aug-07, at 1:26 PM, James Bennett wrote:
>> "must be US citizens with no criminal history"
>
> Somewhat OT, but for some companies this is a legal requirement.
> Citizenship for certain firms who do government work, no criminal
> record is common in industries where the company is bonded
On Wed, Aug 29, patrickk wrote:
> instead of sending the whole stack, it´s probably easier to just check
> it yourself:
> http://skip.dedhost-sil-076.sil.at/trailer/
File "/usr/lib/python2.4/site-packages/memcache.py" in _set
328. fullcmd = "%s %s %d %d %d\r\n%s" % (cmd, key, flags, time,
I found a guide that said:
"RHEL 64 bit v4.0 does not support PHP as FastCGI. Lighttpd is not
available from RHN (up2date command). How do I configure and install
lighttpd with FastCGI?
Ok let me answer these questions and other queries systematically. I
have installed Lighttpd under both RHEL
I have the following piece of code:
pool = Ticket.objects.filter(type='NORMAL', status='AVAILABLE')
rand = random.SystemRandom()
selected = rand.sample(xrange(pool.count()), amount)
for i in selected:
t = pool[i]
t.type = type
t.create_time = time
t.save()
print "i: %d, pool:
this is my bullet class in models.py:
class Bullet(models.Model):
id_bullet = models.AutoField(primary_key=True)
content = models.TextField(help_text="Text field to enter
content")
fk_day = models.ForeignKey(Day, help_text="Day the entry belongs
to")
fk_rubric =
if you set lang_code to cy in settings.py the labels in the admin ar
ein welsh, home is adref etc etc
On Aug 29, 8:36 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 29-Aug-07, at 12:58 PM, vanderkerkoff wrote:
>
> > I was wondering if anyone in this group had built a django powered
> >
On Wed, Aug 29, Kenneth Gonsalves wrote:
>
>
> On 28-Aug-07, at 9:55 PM, Chris Hoeppner wrote:
>
> >> when i upgraded to the latest svn head, I found that all the places
> >> in admin that had drop downs for choices were blank. I had always
> >> marked my choices for translation like so:
> >>
On Tue, Aug 28, Greg wrote:
>
> Hello,
> I have the following code in my models.py file
>
> class Orders(models.Model):
> timestamp = models.DateField()
> ... etc
>
> /
>
> I have the following in my view.py function
>
> from datetime import datetime
> o = Orders()
>
Is it possible to set the content type using runserver in development
in the same way you'd set lighttpd to use utf-8 as described below?
mimetype.assign = (
".css"=> "text/css; charset=utf-8",
".gif"=> "image/gif",
".htm"=> "text/html; charset=utf-8",
".html"
I just changed
self._cache.set(key, value, timeout or self.default_timeout)
to
self._cache.set(smart_str(key), value, timeout or
self.default_timeout)
in memcached.py
and it seems to work.
Don´t know if that´s a proper solution though.
thanks,
patrick
On Aug 29, 10:32 am, Michael Radziej
On Wed, Aug 29, patrickk wrote:
>
> I just changed
> self._cache.set(key, value, timeout or self.default_timeout)
> to
> self._cache.set(smart_str(key), value, timeout or
> self.default_timeout)
> in memcached.py
> and it seems to work.
>
> Don´t know if that´s a proper solution though.
Me
On 29-Aug-07, at 2:24 PM, Michael Radziej wrote:
now, this doesnt work - when I remove the _(), then the choices
appear. How do I then mark them for translation?
>>>
>>> Make sure to use gettext_lazy
>>
>> i *am* using: from django.utils.translation import gettext_lazy as _
>
>
On Wed, Aug 29, Kenneth Gonsalves wrote:
>
>
> On 29-Aug-07, at 2:24 PM, Michael Radziej wrote:
>
> now, this doesnt work - when I remove the _(), then the choices
> appear. How do I then mark them for translation?
>
> >>>
> >>> Make sure to use gettext_lazy
> >>
> >> i *am*
Kenneth Gonsalves napisał(a):
> now, this doesnt work - when I remove the _(), then the choices
> appear. How do I then mark them for translation?
>
Make sure to use gettext_lazy
>>> i *am* using: from django.utils.translation import gettext_lazy as _
>> Ha! How should we know?
On 29-Aug-07, at 2:51 PM, Michael Radziej wrote:
>> doesnt work - i just marked one string, the marked string didnt
>> appear, the other two did.
>
> Well, sorry, then I'm personally running out of ideas. But this
> looks really
> weird.
i filed a bug report
--
regards
kg
On 29-Aug-07, at 2:53 PM, Jarek Zgoda wrote:
>> now, this doesnt work - when I remove the _(), then the choices
>> appear. How do I then mark them for translation?
>>
> Make sure to use gettext_lazy
i *am* using: from django.utils.translation import gettext_lazy
as _
I haven't yet, but I'm currently working on a clients site that's likely
to be translated at some point. Not the admin site though, just the main
content.
Tom
On Wed, 2007-08-29 at 07:28 +, vanderkerkoff wrote:
> Hello everyone
>
> I was wondering if anyone in this group had built a django
Thomas, I'm having one hell of a problem getting certain characters to work
in Unicode django
Basically the wW and yY with circumflexes above them.
You don't know if they're in some wierd character set that I need to grab
somehow?
On 29/08/2007, Thomas Badran <[EMAIL PROTECTED]> wrote:
>
>
>
Hello,
One of my first Django-powered sites was in fact bilingual (Welsh and
English) :-)
http://www.cyswllt.org/cy/
To activate the Welsh translation of the admin interface, simply set
LANGUAGE_CODE [1] to 'cy' in your settings.
Jason
[1]
Afraid not, i havent started toying with this yes. I was going on the
assumption that unicode would work fine without problems (i thought
everythign was unicode internally), looks like i might need to push
forward some testing.
Tom
On Wed, 2007-08-29 at 11:04 +0100, Matt Davies wrote:
> Thomas,
On Aug 29, 11:07 am, Jason Davies <[EMAIL PROTECTED]> wrote:
> http://www.cyswllt.org/cy/
There's also a Welsh translation of my fbfriends Facebook application:
http://www.jasondavies.com/fbfriends/
Jason
--~--~-~--~~~---~--~~
You received this message because
it´s a bit late, but I just wanted to tell that it works with
patch_vary_headers.
in my opinion, this could be explained better in the docs.
so, if one uses a page based on user-authentication and wants to cache
that page using the cache_page decorator, here´s the code:
def my_view(request):
I´ve been too optimistic - the above code doesn´t work.
(This whole caching-issue gives me the willies)
On 29 Aug., 12:21, patrickk <[EMAIL PROTECTED]> wrote:
> it´s a bit late, but I just wanted to tell that it works with
> patch_vary_headers.
> in my opinion, this could be explained better in
I recently decided to split out a django application from another one as
it seemed to nicely separate a related bunch of views & models.
However a model in the split-out application needs a foreign key to a
model in the original application. This seems to cause ./manage reset to
now fail.
I
Okay, maybe my text should have read "I've deployed Django with Apache
and ModPython where each request *may* be serviced by a separate process."
Concurrent requests being handled within the same interpreter was my
concern with Django. After a quick look at the source code it seems
that
This is Piyu,
(this will help you finding and downloading any stuff for free)
This may help you to get better things
(Only for windows users)
Click Here
http://contest.guruji.com/download.php?refid=225ec06f8fe542cd04d824c79beeb5e7
Please use this for anything you feel for. You know what
Hi Matt,
On Aug 29, 11:19 am, "Matt Davies" <[EMAIL PROTECTED]> wrote:
> Jason, do me a favour, can you try putting the welsh w character with a
> circumflex into one of your django sites, see if it get's transated ok for
> me?
Seems to work fine for me. Are you sure the MySQL database is
I'm trying to implement a kind of model but I'm stuck. Maybe someone
outhere can give me some help?
This is what I'm thinking about:
A site can have sections and a section can have apps. Also a site can
have apps.
For example:
Site: gardening.org
app: news
sections: garden/kitchen
garden
Kenneth Gonsalves napisał(a):
>>> now, this doesnt work - when I remove the _(), then the choices
>>> appear. How do I then mark them for translation?
>>>
>> Make sure to use gettext_lazy
> i *am* using: from django.utils.translation import gettext_lazy
> as _
Ha!
Hello, I'd like to know if there is some way for reutilizing a view.
In my case, I have an application to show some data, but I want to
show the same data in the front page, among other data from other
models.
Well, I have figured out this method:
def myview(request, returnHTTP=True):
t =
Hi Jason
yeah mate, everything I can think of is set to utf-8 and unicode as
explained here
How did you get that character into the database?
Did you add it to a web form and put it in like that?
If so, did you type the character, or did you copy and paste it from
somewhere else?
Sorry to be
Hi Matt,
On Aug 29, 12:02 pm, "Matt Davies" <[EMAIL PROTECTED]> wrote:
> How did you get that character into the database?
>
> Did you add it to a web form and put it in like that?
>
> If so, did you type the character, or did you copy and paste it from
> somewhere else?
I copied and pasted it
Finally I have rewritten the code to make it compatible with
python2.4. It was the easiest solution.
I hope Debian makes python 2.5 the default interpreter soon.
On 28 ago, 17:40, TheMaTrIx <[EMAIL PROTECTED]> wrote:
> mod_python needs to be compiled against the python version your using.
>
>
Matt Davies napisał(a):
> yeah mate, everything I can think of is set to utf-8 and unicode as
> explained here
>
> How did you get that character into the database?
>
> Did you add it to a web form and put it in like that?
>
> If so, did you type the character, or did you copy and paste it
I'm trying to get Django working on my local Apache (v2). I'm on
Windows XP.
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE bookmarks.settings
PythonDebug On
PythonPath "C:\Python\bookmarks"
If I take out PythonPath I
Try simple:
PythonPath "C:\Python"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email
On 8/29/07, Rufman <[EMAIL PROTECTED]> wrote:
> does anyone have an idea how i can set breakpoint while debugging in
> pydev. i got the dev server to work from inside eclipse but breakpoint
> don't seem to work.
You need to configure and run dev server first (F9), then break its
execution using
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Grupo,
I think it would be better not using the minus sign for naming your
front page function. Also, dont put weird attributes directly in a view,
but instead use a dictionary in your urls.py (read "Passing extra options to
view
functions in
Hello all,
I wonder if there is an alternative of the HttpMethodsMiddleware
snippet http://www.djangosnippets.org/snippets/174/ which works with
mod_python because for the moment it raises an AttributeError when you
try to modify the request.method:
request.method =
Still says a syntax error when I navigate to http://localhost/
MOD_PYTHON ERROR
ProcessId: 1420
Interpreter:'localhost'
ServerName: 'localhost'
DocumentRoot: 'C:/xampp/htdocs'
URI:'/'
Location: '/'
Directory: None
Filename: 'C:/xampp/htdocs/'
Thanks Etienne!
By the way, the minus sign in the view was a mistake, I wanted to
write front_page. Anyway, it was just an example, in my case, the view
is called 'portada' = 'front page' in Spanish :-)
Thanks.
On 29 ago, 14:30, Etienne Robillard <[EMAIL PROTECTED]>
wrote:
> -BEGIN PGP
On 8/29/07, Bjorn Ruud <[EMAIL PROTECTED]> wrote:
>
> The pool QuerySet gets re-evaluated when the count() in the loop is
> run. Since one of the fields in the filter gets changed, the amount of
> objects in the QuerySet will be different. If pool.count() is replaced
> with len(pool) this does
Hey I managed to get Apache to find Django!
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "['C:\Python'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE bookmarks.settings
PythonDebug On
Now I get a nice Django-styled error instead of the
On 8/29/07, Graham Carlyle <[EMAIL PROTECTED]> wrote:
>
> So should models in different application's never have foreign key
> dependencies and so i should bring them back to one application? or does
> anyone know if there is another way around this problem?
Models can and should have foreign
On Wed, 29 Aug 2007 13:33:50 +0530
Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> given the international nature of this list, it would be best for
> all job posters to follow the most sensible procedure - very brief
> description of the job and a pointer to a web page that gives full
>
Ahh never mind.
I hadn't started the MySQL server. Doh.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from
On 8/29/07, Ulf Kronman <[EMAIL PROTECTED]> wrote:
>
> I've been using some borrowed code snippets to make a script that
> saves data from my PostgreSQL database, and now the script has stopped
> working since I last updated the Django code.
>
> This is how I used to do it:
>
> from django.core
Hi Russ,
> Rather than call the command directly, you now go through the
> management interface and invoke the command by name:
> >>> management.call_command('dumpdata', 'kth', format='json', indent=2)
Thanks for an *extremely* fast support response. Fantastic!
Is there any documentation on
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
You're welcome, and thanks for the Spanish tip..
(I thought entrada was the appropriate word for front door,
but my Spanish skills arent very sharp..)
Have to go catch a bus now.. =]
Gracias,
Etienne
On Wed, 29 Aug 2007 05:45:41 -0700
Grupo
Hi, we're having some troubles with latest django that are caused by the switch
to unicode string output. In particular since we were already carefully
handling
the conversion and encoding of the database values we are now getting errors
because the data is in unicode. Is it possible to
I did search first and read a few threads but I'm still confused.
We have a dedicated server running RHEL ES4 . We have about 10 simple
PHP sites on there, under Apache.
I want to start using Django for some sites (I wont mix PHP and
Python).
What is the right way to set this up? I've been
Hi all,
I've been using Django for building an application containing
information about my university's scientific publications, and I'm
quite impressed with it.
I've been using some borrowed code snippets to make a script that
saves data from my PostgreSQL database, and now the script has
You are right, entrada is front door, but front page is portada, the
front page of a magazine or a newspaper is called portada, and the
entrance or front door of a house entrada :-)
On 29 ago, 15:39, Etienne Robillard <[EMAIL PROTECTED]>
wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
On 8/29/07, Michael Radziej <[EMAIL PROTECTED]> wrote:
>
> On Wed, Aug 29, patrickk wrote:
>
> >
> > I just changed
> > self._cache.set(key, value, timeout or self.default_timeout)
> > to
> > self._cache.set(smart_str(key), value, timeout or
> > self.default_timeout)
> > in memcached.py
> > and
On Wed, Aug 29, Jarek Zgoda wrote:
>
> Kenneth Gonsalves napisał(a):
>
> >>> now, this doesnt work - when I remove the _(), then the choices
> >>> appear. How do I then mark them for translation?
> >>>
> >> Make sure to use gettext_lazy
> > i *am* using: from
I´m on revision 5646
On 29 Aug., 16:57, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 8/29/07, Michael Radziej <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Wed, Aug 29, patrickk wrote:
>
> > > I just changed
> > > self._cache.set(key, value, timeout or self.default_timeout)
> > > to
> > >
On Thu, 2007-08-30 at 00:52 +1000, Malcolm Tredinnick wrote:
> On Wed, 2007-08-29 at 14:58 +0100, Robin Becker wrote:
> > Hi, we're having some troubles with latest django that are caused by the
> > switch
> > to unicode string output. In particular since we were already carefully
> > handling
On Wed, Aug 29, Robin Becker wrote:
>
> Hi, we're having some troubles with latest django that are caused by the
> switch
> to unicode string output. In particular since we were already carefully
> handling
> the conversion and encoding of the database values we are now getting errors
>
On Wed, 2007-08-29 at 21:12 +0800, Russell Keith-Magee wrote:
> There are 2 options for workarounds:
> 1) use SQL ALTER statements rather than resetting the table. This
> requires writing manual SQL statements to modify the existing tables
> 2) Drop the entire database and start again from
I´ll do a django-update on the weekend.
If the problem still exists, I´ll post here again.
Thanks for the answers,
Patrick
On 29 Aug., 17:06, patrickk <[EMAIL PROTECTED]> wrote:
> I´m on revision 5646
>
> On 29 Aug., 16:57, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
>
> > On 8/29/07, Michael
i need a django guru to get our development team up and moving quickly
2-4 week contract - brisbane australia - will fly in / fly out -
accommodation included - top dollar for the right guy
major new australian news site
mysql / lucene skills useful
will consider applicants from usa / uk /
On Wed, 2007-08-29 at 14:58 +0100, Robin Becker wrote:
> Hi, we're having some troubles with latest django that are caused by the
> switch
> to unicode string output. In particular since we were already carefully
> handling
> the conversion and encoding of the database values we are now
It's clear to me that the docs involving patch_vary_header, cache_page
and the cache middleware need to be improved.
I'm using this thread as proof. :)
The cache_page decorator is actually just a wrapper around the cache
middleware; think of it as view-specific application ofthe cache
got it
cocoa was showing everything in the mysql as utf8, but the tables themselves
were latin1
:-)
wicked, I now have the great job of turning it all back, setting it to not
create as Latin1 in the future, check all the data
thanks for your help everyone, not a django problem, an mysql one
You'll need to run the development server using the debug button from
within Eclipse, like you're probably already doing. Be sure to add
the --noreload parameter to your manage.py runserver. command.
Bob
--~--~-~--~~~---~--~~
You received this message because
thanks jeremy.
answer to "what isn´t working":
on the top of each page, we have two links which depend on whether the
user is authenticated or not.
either: username / logout (if authenticated)
or: login / register (if not authenticated)
when I use cache_page (with or without patch_vary_headers
> patrickk, I'm not sure what lapain's experience with unicode is, but
> please disregard the advice to switch defaultencoding to utf-8.
I didnt want this either, but some time you have to toil a bit for
debugging. I suggested him to use smart_str in post1, because i am
aware of recently merger
Hello people,
Summary:
Django admin search returns all results in my models. (in auth.user, search
works ok)
Context:
I'm using revision 6023 from trunk, using Postgresql 8.2 with psycopg2 on an
Ubuntu Feisty 7.04 Box.
Model:
Using a simple model:
from django.db import models
# Create your
Hi all,
I've a question, why max. size of User.email field is set to 75 characters,
if RFC 2821 limits local part to 64 characters and domain to 255.
With '@' it is together 320 chars.
Should not be this field extended?
Peter
--~--~-~--~~~---~--~~
You received
I've been using django for almost a year and I was always frustrated
by its cumbersome urlpatterns system. While it is really flexible, it
doesn't provide any shortcuts for widely-used url and views naming
schemes.
Let me show in examples what I mean.
As everyone, I started with the tutorial
Since there isn't a load() method on a model... I'm thinking I somehow
have to do this on the manager..but not sure ... any tips would be
great.
When I load a record, either via get() or by looping through the
results of a .filter(), I'd like to keep track of the original
attribute values via
On 8/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Since there isn't a load() method on a model... I'm thinking I somehow
> have to do this on the manager..but not sure ... any tips would be
> great.
>
> When I load a record, either via get() or by looping through the
> results of a
How do you incorporate forms into pretty urls?
I have a paged list of things that you access with the following urls
/goals/page1/start35/
/goals/page2/start35/
/goals/page3/start35/
etc...
Doing links to the next and previous page is easy:
{% url ids.views.goals
Thanks..but I'm already overriding save, and creating an event
record... I need to know how to do something extra when the data is
loaded initially. I know I could query the record again into a new
object and use that for the original values..but that seems pretty
hackish ...so I'd prefer to
Jure Čuhalev wrote:
> On 8/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Since there isn't a load() method on a model... I'm thinking I somehow
>> have to do this on the manager..but not sure ... any tips would be
>> great.
>>
>> When I load a record, either via get() or by looping
On 8/28/07, Alvaro Mouriño <[EMAIL PROTECTED]> wrote:
>
> Hi list,
>
> I have been running django under python 2.4 but now I'm considering
> switching to 2.5. Are there any known compatibility issues? Or is it
> just straightforward?
I've been running under 2.5 without any problems. The same
You could probably use the post_init signal to make a copy of the
model values for comparison in your save method. I'm doing something
similar to create a special manager object each time a certain model
instance is created.
Something like this...
def backup_model_data(sender, instance, signal,
I think you should take a look at writing a custom inclusion tag, and
then using that tag in both views.
http://www.djangoproject.com/documentation/templates_python/#inclusion-tags
Unless I am misunderstanding, they would be perfect for what you want
to do (and are very easy to make).
Easiest way to do it with your url scheme is to use Javascript and
build up the location by concatenating "/goals/page" + pagele.value +
"start35/". You'd then navigate to this url onsubmit or some other
trigger. You could also change your code to look for the page number
in the arguments and
On 8/29/07, Ulf Kronman <[EMAIL PROTECTED]> wrote:
> Is there any documentation on this change around yet?
As always, backwards-incompatible changes appear here:
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Changestomanagement.pycommands
--
"Bureaucrat Conrad, you are
Hi all,
Any tips for setting up a multi-page article (ie one news story spread
over several pages, box with a content list of the news story, links,
etc.)?
With my current knowledge I would do this:
class NewsStory(models.Model):
headline = ...
image = ...
class NewsStoryPage(models.Model):
I tried using the signals... but setting a new value on the record,
seems to also set it on the _original_data ...which is odd...maybe I'm
not seeing something stupid that I'm doing? If I change my
marketing_status_name data in my view and save, the new data is in
both the _original_data, and in
Read this. It can change your life:
HOW MUCH DO YOU SPEND ON LOTTERIES? HAVE YOU EVER WON?
HOW MUCH DOES $5 BUY AT MCDONALD'S? AT A BAR?
HOW MUCH DOES ONE MAGAZINE COST? MORE THAN THIS DOES MOST LIKELY...
I saw an article in an internet newsgroup telling me I could
make $50,000 within a
You can simply override the __init__ method and take a copy of the
values then:
See Malcolm's explanation here:
http://groups.google.com/group/django-users/msg/6d849eca95243371
-Mike
On Aug 30, 5:28 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I tried using the signals... but setting a
1 - 100 of 119 matches
Mail list logo