On 9/30/06, anil <[EMAIL PROTECTED]> wrote:
> how do i use cheetah templates with django
> I have heard a lot about phenomenal decoupling abilities of django
Do everything just as you would normally with Django, but when it
comes time to render a template, import and use Cheetah's
template-loadin
On 9/30/06, anil <[EMAIL PROTECTED]> wrote:
> Please help me out by telling where i can find this
> and is there an easy way to add this to other parts of the django web
It's usually pretty easy to think through and figure out where to find
something, without having to wait for a mailing list rep
Hi guys
I m trying to get to the code of date and time widget so that I can use
it elsewhere in the django
app
Please help me out by telling where i can find this
and is there an easy way to add this to other parts of the django web
app
Thanks
Anil
Each DateTimeField gets free JavaScript shortcut
how do i use cheetah templates with django
I have heard a lot about phenomenal decoupling abilities of django
thanks
ANil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On 30-Sep-06, at 10:52 AM, RajeshD wrote:
> In your custom manipulator, self.fields needs to be a sequence...try a
> comma after the first field, like this:
>
> self.fields = (
> forms.CheckboxField(field_name="vote"),
> )
i am an idiot - if i only had a rupee for ev
Replace your __repr__ methods with __str__ and you should get your
expected results.
--~--~-~--~~~---~--~~
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@googlegrou
In your custom manipulator, self.fields needs to be a sequence...try a
comma after the first field, like this:
self.fields = (
forms.CheckboxField(field_name="vote"),
)
--~--~-~--~~~---~--~~
You received this message because you are su
Hi,I just updated to the latest development version, and since then I am facing a very curious problem. This is a simple blog app I am writing for a friend, and everything seems to work till we reach the admin side.
When I try to populate the datebase using the admin interface, I am unable to see t
On 30-Sep-06, at 8:50 AM, RajeshD wrote:
> What does your view function look like?
this is from the view:
class PollManipulator(forms.Manipulator):
422 def __init__(self):
423 self.fields = (
424 forms.CheckboxField(field_name="vote")
425
Hi Anil,
You have multiple problems here.
On Sat, 2006-09-30 at 03:57 +, anil wrote:
> Hi djangoers
> class Poll(models.Model):
> question = models.CharField(maxlength=200)
> pub_date = models.DateTimeField(default='now()','date created')
>
> gives me an error saying
>
> python man
Hi djangoers
class Poll(models.Model):
question = models.CharField(maxlength=200)
pub_date = models.DateTimeField(default='now()','date created')
gives me an error saying
python manage.py syncdb
Error: Couldn't install apps, because there were errors in one or more
models:
sodahead.polls
What does your view function look like?
--~--~-~--~~~---~--~~
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 e
On 9/29/06, a <[EMAIL PROTECTED]> wrote:
> this sounds serious how do we implement rollbacks
from django.db import connection
connection._rollback()
This behavior, by the way, is a *good* thing; rather than try to sort
things out and go on, PostgreSQL is saying, "An error happened, and
I'm going
this sounds serious how do we implement rollbacks
i use postgres 8.1
thanks
Anil
Eric Walstad wrote:
> anil wrote:
> > psycopg2.ProgrammingError : current transaction is aborted, commands
> > ignored until end of transaction block
>
> Anil,
>
> I get these errors when a call to psycopg fails and t
Dear Jon Atkinson
upload to some server probably mine or some hosted site, basically some
simple fileuploads
thanks
Jon Atkinson wrote:
> Upload to where? For what? There isn't really enough information in
> this and the previous posts in this thread to get any sensible answer
> :-)
>
> --Jon
>
>
On Fri, 2006-09-29 at 07:19 -0700, mamcxyz wrote:
> Mmm
>
> How detect it?
>
> I'm not a linux expert... If I can't run commands in the shell...
You need to talk to your hosting provider or whoever admins the machine,
then. It is impossible to debug a problem like this on a mailing list.
>
On Fri, 2006-09-29 at 19:27 +, Paul Childs wrote:
> Could someone please tell me if this is an unfixed bug in Django 0.95.
> If it is I will submit a ticket.
>
> I created a many-to-many relationship using an intermediate table
> similar to
> http://www.djangoproject.com/documentation/models/
On Fri, 2006-09-29 at 07:21 -0700, Spider wrote:
> My application allows the user to select one or more days of the week
> to apply to the current item. My model looks like
> applys_Mon = models.BooleanField("Mon")
> applys_Tue = models.BooleanField("Tue")
> applys_Wed = models.Boolean
Thanks Jay :)
--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
Quoting Chris Moffitt <[EMAIL PROTECTED]>:
>
> >
> > Oh yeah, to the Satchmo dudes, whoever you are, the about link on the
> > trac page is broken.
> >
> >
> >
> As one of the "satchmo dudes", welcome to the group. We have a nice
> foundation but there's plenty of room for improvement so w
On Sat, 2006-09-30 at 06:32 +0530, Kenneth Gonsalves wrote:
>
> On 29-Sep-06, at 9:16 PM, RajeshD wrote:
>
> > It's not a good idea to mark the field_name for i18n translation. The
> > field name's value behaves like a variable name so you want that value
> > to be fixed and not translated.
> >
On 9/30/06, Enrico <[EMAIL PROTECTED]> wrote:
>
> I can't imagine someone needing to authenticate a non-active user, and
> even if someone do, he'll be able to do it manually, or passing
> "is_active=False" to the authenticate method.
I can think of one obvious use case - notifying a user that th
On 9/30/06, patrickk <[EMAIL PROTECTED]> wrote:
>
>
> Am 29.09.2006 um 18:35 schrieb Onno Timmerman:
>
> >
> > Hello,
> >
> > I started to learn Django this week and have a lot of questions. My
> > background is PHP.
> > I hope to save time with Django and be able to do more.
> >
> > My first ques
Maximillian Dornseif wrote:
> I built one myself and it was quite easy, yust to give you an
> impression of the LoC used:
>
> [EMAIL PROTECTED]:/usr/local/web/diamond $ wc -l shop/*
> shop/templates/shop/*
>0 shop/__init__.py
> 105 shop/models.py
> 14 shop/urls.py
> 153 sho
>
> Oh yeah, to the Satchmo dudes, whoever you are, the about link on the
> trac page is broken.
>
>
>
As one of the "satchmo dudes", welcome to the group. We have a nice
foundation but there's plenty of room for improvement so we welcome your
comments.
Once you get on the list, let me kno
On 30-Sep-06, at 4:31 AM, Raghu wrote:
> I haven't used django yet and only read the tutorial briefly. The
> object relational mapper sounds nice but it immediately brings up the
> question of schema changes. What happens if I add/remove class
> variables to "model" definition? Would the existin
On 29-Sep-06, at 10:05 PM, Onno Timmerman wrote:
> Are there books about Django, and what books do you recomend to get me
> up to speed with Python!
python in a nutshell - o'reilly
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~-
On 29-Sep-06, at 9:16 PM, RajeshD wrote:
> It's not a good idea to mark the field_name for i18n translation. The
> field name's value behaves like a variable name so you want that value
> to be fixed and not translated.
>
> Your field would be defined like this:
>
> forms.CheckboxField(field_nam
On 9/30/06, Onno Timmerman <[EMAIL PROTECTED]> wrote:
>
> Second questions:
> Are there books about Django, and what books do you recomend to get me
> up to speed with Python!
www.diveintopython.org is one of the best Python primers I know of.
It's also available in dead tree version.
As for D
In your model, set the "num_in_admin" parameter on your Foreign Key as
follows:
product = models.ForeignKey(Product, edit_inline=models.TABULAR,
num_in_admin=5, num_extra_on_change=3)
With this, you'll get 5 objects in the Product form.
--~--~-~--~~~---~--~~
Yo
Hi,
I agree. I'm just not so sure about the is_valid_user method, people
will have to start checking for this method instead of checking for an
existent user.
I can't imagine someone needing to authenticate a non-active user, and
even if someone do, he'll be able to do it manually, or passing
"i
Hi,
I haven't used django yet and only read the tutorial briefly. The
object relational mapper sounds nice but it immediately brings up the
question of schema changes. What happens if I add/remove class
variables to "model" definition? Would the existing data be converted
to new schema?
I am so
Adrian,
I guess what I don't understand is how to use GET and POST...and what
exactly they are GETting and POSTing...and what to name things and how
to get those named things in the view to get to a template.
I want to learn the basics and apply them.
Gabor,
I understand the "Hello World!" e
anil wrote:
> psycopg2.ProgrammingError : current transaction is aborted, commands
> ignored until end of transaction block
Anil,
I get these errors when a call to psycopg fails and the transaction in
which it failed is not rolled back. All further database actions will
fail until you roll ba
Hi anil, with this message we can't see what error is happen, you need
say if you create some manual query, or if you edit something...What
steps you follow?On 9/29/06, anil <[EMAIL PROTECTED]> wrote:
psycopg2.ProgrammingError : current transaction is aborted, commandsignored until end of transacti
> About this, I just thought that the authenticate method should require
> an active user. But it won't hurt to check myself or use the default
> AuthenticationForm.
This was my understanding as well, from reading the docs. I would consider
an "is_active = False" to be the same as user/password
psycopg2.ProgrammingError : current transaction is aborted, commands
ignored until end of transaction block
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Wilson Miner wrote:
> That was actually a conscious decision to keep from needing support
> images for the debug pages. I wanted them to be completely
> self-contained, which is why we used the unicode glyph for the
> disclosure triangle (a pretty universal UI indicator) to indicate that
> those s
You could also check this out:
http://code.djangoproject.com/wiki/ajax_shop_basket
--~--~-~--~~~---~--~~
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
I built one myself and it was quite easy, yust to give you an
impression of the LoC used:
[EMAIL PROTECTED]:/usr/local/web/diamond $ wc -l shop/*
shop/templates/shop/*
0 shop/__init__.py
105 shop/models.py
14 shop/urls.py
153 shop/views.py
56 shop/templates/shop/cart.
On Sep 29, 2006, at 11:56 AM, Wilson Miner wrote:
>
> That was actually a conscious decision to keep from needing support
> images for the debug pages. I wanted them to be completely
> self-contained, which is why we used the unicode glyph for the
> disclosure triangle (a pretty universal UI indic
I think that can be nice
Specially when is necesary setup other dependencies I know some
things can not be automated easily because the diversity of linux
distros, but something in the lines to show what is need to deploy is a
*good* start.
--~--~-~--~~~---~-
Am 29.09.2006 um 18:35 schrieb Onno Timmerman:
>
> Hello,
>
> I started to learn Django this week and have a lot of questions. My
> background is PHP.
> I hope to save time with Django and be able to do more.
>
> My first question:
> Many frameworks are working with a ajax framework. I realy lik
Hello mamcxyz,
On Fri, Sep 29, 2006 at 07:43:49AM -0700, mamcxyz wrote:
> - Deployment. I work on Delphi and the idea of put a EXE and all is
> working right (tm) is a feeling I lost with python on hosting.
So what about writing a small script that will do this for you?
Something like
tar cC /l
On Fri, 2006-29-09 at 12:14 -0700, alex kessinger wrote:
> http://satchmo.python-hosting.com/
>
> is an attempt to make an ecommerce site using django
Wicked cool. I'll subscribe. When do we get name something Lester or
Prez? Guess I'd have to invent it. ;)
Thanks
Iain
Oh yeah, to the Satchmo
Could someone please tell me if this is an unfixed bug in Django 0.95.
If it is I will submit a ticket.
I created a many-to-many relationship using an intermediate table
similar to
http://www.djangoproject.com/documentation/models/m2m_intermediary/
(see model below.)
I am able to successfully ex
http://satchmo.python-hosting.com/
is an attempt to make an ecommerce site using django
On 9/29/06, iain duncan <[EMAIL PROTECTED]> wrote:
>
> Hi everyone. I've done a couple of few django CMS sites now and have in
> the past done a complete custom ecommerce-cms-order tracking system in
> php. N
Hi everyone. I've done a couple of few django CMS sites now and have in
the past done a complete custom ecommerce-cms-order tracking system in
php. Now I have a client that I would like to use Django with and they
need a simple but customized shopping cart system. Wondering what folks
are using to
At our company we have various legacy websites that we've created using
different toolsets (mostly PHP/MySQL). We're looking at building a
public facing authentication system that logs in a user and presents a
list of authorized websites they can visit. This list is a launching
point to various
That was actually a conscious decision to keep from needing support
images for the debug pages. I wanted them to be completely
self-contained, which is why we used the unicode glyph for the
disclosure triangle (a pretty universal UI indicator) to indicate that
those sections could be expanded.
On
book on python www.thinkpython.comOnno Timmerman <[EMAIL PROTECTED]> wrote: Hello,I started to learn Django this week and have a lot of questions. My background is PHP.I hope to save time with Django and be able to do more.My first question:Many frameworks are working with a ajax framework. I realy
Hello,
I started to learn Django this week and have a lot of questions. My
background is PHP.
I hope to save time with Django and be able to do more.
My first question:
Many frameworks are working with a ajax framework. I realy like
Jquery.com... It's easy and very intiutive, the same philosop
try using maybe {% trans Vote %} as a name in the template. I used such
solution for simple text, it may work for forms too.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this grou
In my application I'm not concerned about people giving the urls of
static files to others but people guessing filenames (this is called
"Browsing" or "URL Tampering" by some.)
I counter this by setting "Options -Indexes" in the apache
configuration and changing the filename to something 'random'
Hi Russel,
Nice to see that my "report" was useful, I'll try to keep with the
pickyness then. :)
> This is a slightly different matter; is_authenticated() only validates
> that the user has provided a username and password that match.
About this, I just thought that the authenticate method shou
DavidA wrote:
> I agree that the UI could be tweaked to make it more obvious, like
> changing "Local vars" to "Click here to show local vars".
This will just make this pile of text look more scary :-). You and
Daniel didn't read it in the first place so changing text won't help.
But what will h
It's not a good idea to mark the field_name for i18n translation. The
field name's value behaves like a variable name so you want that value
to be fixed and not translated.
Your field would be defined like this:
forms.CheckboxField(field_name='vote')
The template is where you would mark the lab
On 9/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Damn...
>
> I really would like a more structured tutorial course than the
> scattered ones about right now. Are there any others out there apart
> from the Django Projects page aimed at real beginners?
There's an IBM DeveloperWorks tu
[EMAIL PROTECTED] wrote:
>
> Here's my anecdote on that.
>
> Even though it was literally staring me in the face, it took me AGES to
> discover that the error dump page is actually interactive and has
> little sections that expand and collapse.
> I kept running into error messages which told me a
puyuus wrote:
> hello everybody!
> i start working with django this week and i want ot say that until now
> it looks great.
> one question for you, Django-gurus :-), because i didnt find this thing
> in documentation
> how can i initiate HTTPS, obtain the certificate, and everything
> els
adamjspooner wrote:
> I don't understand writing my own views. I have little (more like no)
> experience in using POST and GET and the lot. I've used generic views
> to death in order to beat having to use custom views, but I'm now at
> the point where I must write my own view (to access a PHP web
On 9/29/06, adamjspooner <[EMAIL PROTECTED]> wrote:
> I don't understand writing my own views. I have little (more like no)
> experience in using POST and GET and the lot. I've used generic views
> to death in order to beat having to use custom views, but I'm now at
> the point where I must write
On 9/29/06, puyuus <[EMAIL PROTECTED]> wrote:
> one question for you, Django-gurus :-), because i didnt find this thing
> in documentation
> how can i initiate HTTPS, obtain the certificate, and everything
> else.??
Hi Petru,
This is outside the scope of the Django Web framework. It
I don't understand writing my own views. I have little (more like no)
experience in using POST and GET and the lot. I've used generic views
to death in order to beat having to use custom views, but I'm now at
the point where I must write my own view (to access a PHP web service).
Does anyone know
I'm in the same boat. I've started work on some e-commerce in Django
and have been doing some research on this. As a side-note, I'm
connecting to a web service and have had trouble doing that in Python
(though Mark Pilgrim's DIP was a huge help in wrapping my brain around
this). I've ended up hook
Damn...
I really would like a more structured tutorial course than the
scattered ones about right now. Are there any others out there apart
from the Django Projects page aimed at real beginners?
--~--~-~--~~~---~--~~
You received this message because you are sub
On Sep 29, 2006, at 7:43 AM, mamcxyz wrote:
> - I dislike the indirection to run django class... the thing about run
> python manage.py shell to really touch the classes... is not very
> "pythonic", or mainly, convenient.
How can the python shell not be pythonic?
Don
--~--~-~--~~
On 9/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> No one know about this?
>
I believe that the word from on-high is that the current release date
for the book is... wrong. Expect it later rather than sooner, Adrian
et. al. are still working on it.
Jay P.
--~--~-~--~~-
Thanks Russ, I was missing __init__.py in the templatetags dir
Now I've got other error messages to fix ;)
Gareth
-Original Message-
From: django-users@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Russell Keith-Magee
Sent: 29 September 2006 15:41
To: django-users@googlegroup
No one know about this?
--~--~-~--~~~---~--~~
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 to [EMAIL P
I have some feelings with Django too, however after working two years
with ASP.NET (I'm certified by MS, if that show my commitment) and try
first with Clastle (a try on rails for .NET, but with the non-sense of
java-like framework) I found django.
I hate:
- Deployment. I work on Delphi and the
hi,
noticed django now has finnish - thanks to whoever did it. w00t.
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group
hello everybody!
i start working with django this week and i want ot say that until now
it looks great.
one question for you, Django-gurus :-), because i didnt find this thing
in documentation
how can i initiate HTTPS, obtain the certificate, and everything
else.??
best regards,
Petru
hi,
i am defining a check box like so:
forms.CheckboxField(field_name=_("Vote"))
what do i put in the template to display a checkbox with the word
'Vote' next to it. The custom manipulator docs dont give an example
of the template
--
regards
kg
http://lawgon.livejournal.com
http://nrcfossh
Hi all,
Sorry, I fired that
one off a bit early! Here it is again with readable english!
Here's a quick
question from a newbie:
How do I include
template tags from within the application directory?
I have TEMPLATE_DIRS
= ( "path-to-my/templates/",) in my settings file
Importing templates
On 9/29/06, DOUTCH GARETH-GDO003 <[EMAIL PROTECTED]> wrote:
>
> However, I get the error message:
> "x is not a valid tag library: Could not load template library from
> django.templatetags.x"
Django will automatically discover any templatetags that you have
defined, as long as they are contained
In lieu of using a manipulator for this simple task, you could use yourown HTML form. Have your form submit to a view method that grabs your
product's id/slug from the request.POST MultiValueDict and performs anupdate of your model as needed.Rajesh, thank you very much! I knew it was overkill. Nama
Hi
all,
Here's a quick
question from a newbie:
How do include
template tags from within the application directory also?
I have TEMPLATE_DIRS
= ( "path-to-my/templates/",) in my settings file
Importing templates
is ok, but templatetags (which resides next
However, I get the
error message:
"
This doesn't directly help but I just wanted to say here for the record
that there are production quality apps that are successfully using AJAX
+ Django. For example, Tabblo (http://www.tabblo.com)
I am sure there are others.
Also, checkout James' informative article on the topic
http://www.b-li
My application allows the user to select one or more days of the week
to apply to the current item. My model looks like
applys_Mon = models.BooleanField("Mon")
applys_Tue = models.BooleanField("Tue")
applys_Wed = models.BooleanField("Wed")
applys_Thu = models.BooleanField("Thu")
Mmm
How detect it?
I'm not a linux expert... If I can't run commands in the shell...
But I don't understand why the site works fine if no new process can be
created...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
In lieu of using a manipulator for this simple task, you could use your
own HTML form. Have your form submit to a view method that grabs your
product's id/slug from the request.POST MultiValueDict and performs an
update of your model as needed.
--~--~-~--~~~---~--~---
Hello djangonauts!I'm facing the task of writing my first manipulator, and they look extremely cool -- (un)fortunately, my needs are extremely simple. I must allow users to 'reserve' a certain product, by just clicking on a button, which in turn would only need to modify a couple fields in the DB (
On 9/29/06, Marco Amato <[EMAIL PROTECTED]> wrote:
> Hi to all !
>
> In the last svn version I can't use django-admin createsuperuser name mail
> passw
That particular option to django-admin was deprecated with the 0.95
release of Django. It was replaced with the syncdb option, which
prompts the
viestards wrote:
> thanks, suppose I have to do it this way. I just hoped to have a
> sollution that works in admin pages too.
I also ran into this problem so I did it that hard way: I created a
custom model DateField and a custom form DateField. (I call them
RelaxedModelDateField and RelaxedForm
On 9/29/06, Enrico <[EMAIL PROTECTED]> wrote:
>
> I think he shouldn't be able to log in at all, instead of logging in
> and being able to do nothing.
That is my reading of the docs, too; I was a little surprised when
testing revealed that this wasn't the actual behaviour. I've just
committed r38
Hi to all !
In the last svn version I can't use django-admin createsuperuser name mail passw
How to add a super user by python shell ?
ps:I think that if createsuperuser is deprecated , the doc must be updated
Thanks
Bye
--~--~-~--~~~---~--~~
You received this
Sean Schertell wrote:
> Instead of
> providing some simple facility to let you override parts of the
> standard manipulators
In fact you can do just that. Though it's not clearly documented. I
recently wrote about it here:
http://groups.google.com/group/django-users/tree/browse_frm/thread/f
> I kept running into error messages which told me about
> exceptions in the Django source code (this is the top part of
> the error page) and I kept thinking "well, where's the bloody
> use in that??? I want to know what MY error was! Grmbl.".
Django your easily find out if a module name in it's
> I have a small function:
> I use the usual form stuff. But if I detect an error on the date field
> (Fecha in Spanish) I just throw the string to the previous function. If
> it doesn't raise an exception I use the return to build a sting that
> django will accept and call get_validation_errors
On Fri, 2006-09-29 at 10:57 +0100, Tom Smith wrote:
> As everyone knows (or as yet to learn) the success of many
> technologies is down to how snazzy the end result is...
>
> So it surprises me that I can't find any reference to anyone uses
> MochKit (or any other client-based toolkit) with D
Tom Smith schrieb:
> As everyone knows (or as yet to learn) the success of many
> technologies is down to how snazzy the end result is...
>
> So it surprises me that I can't find any reference to anyone uses
> MochKit (or any other client-based toolkit) with Django... in fact
> that seems t
Thank you, Maximillian, thanks to your tip i resolved the problem!!
--
Carlo Caponi
http://www.karolvs.it
icq #: 73707983
* Maximillian Dornseif <[EMAIL PROTECTED]> [29.09.06 11:03]:
>
> When I add a field I usually use "manage.py sqlall produktpass | grep
> " to get the S
As everyone knows (or as yet to learn) the success of many
technologies is down to how snazzy the end result is...
So it surprises me that I can't find any reference to anyone uses
MochKit (or any other client-based toolkit) with Django... in fact
that seems to be be the key differentiator
James Bennett wrote:
> Tracebacks are a really hard thing to handle well in an application
> stack with more than a couple of components; generally the debug pages
> are nice, though, because they give you the local vars at each level
> -- when (as is often the case) an error occurred because some
Hm... you could check Pylons, which would "solve" some of your problems.
--~--~-~--~~~---~--~~
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 un
You can also just use the "next" parameter in the login form. Here's how I did it
type="hidden"
name="next" value
="{% if next %}{{ next }}{% else %}/{% endif %}" />
On 29/09/06, Don Arbow <[EMAIL PROTECTED]> wrote:
On Sep 28, 2006, at 6:26 PM, Sean Schertell wrote:>> (2) This is a biggie for me.
When I add a field I usually use "manage.py sqlall produktpass | grep
" to get the SQL. So when adding something like
preference = models.IntegerField(verbose_name='Präferenz', core=True,
choices=PREFERENCE_CHOICES, default=0)
I take the following steps:
$ manage.py sqlall produktpass | grep pre
viestards escribió:
>> Using the 'date' filter, you can format the output however you want,
>> within templates.
>>
>> For example, to format a date as "September 17, 2006", you would do
>> the following in a template:
>>
>> {{ object.pub_date|date:"F d, Y" }}
>
> thanks for reply, but will it wo
> #Create a chapter, have it automatically set the position
You may amend the model's save() method to do that for you:
def save(self):
# Fiddle with the positon field
self.position =
# And now the actual save operation
super(Item, self).save()
> move_higher
100 matches
Mail list logo