Re: Best Link for Perfect Career

2006-03-16 Thread James Bennett

On 3/16/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> I've been deleting each one and marking them as spam in the Google
> Groups archives. It's best to ignore them.

Yup.

This one hit a bunch of groups I'm subscribed to, must be a bot making
the rounds.

/me sighs at Google Groups turning into USENET...

--
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Best Link for Perfect Career

2006-03-16 Thread Adrian Holovaty

On 3/16/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On Thursday 16 Mar 2006 11:41 pm, Smith wrote:
> > Today, I tell you another Best Website for finding the best job.
> >
> > Please check this link and enjoy your dream job.
>
> some spam seems to be creeping in to this list

I've been deleting each one and marking them as spam in the Google
Groups archives. It's best to ignore them.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Best Link for Perfect Career

2006-03-16 Thread Kenneth Gonsalves

On Thursday 16 Mar 2006 11:41 pm, Smith wrote:
> Today, I tell you another Best Website for finding the best job.
>
> Please check this link and enjoy your dream job.

some spam seems to be creeping in to this list

-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Kenneth Gonsalves

On Friday 17 Mar 2006 8:44 am, Eugene Lazutkin wrote:
> > On Thursday 16 Mar 2006 10:52 pm, tonemcd wrote:
> >> So, if anyone is doing something like this, I'm all ears!
> >
> > subversion+trac
>
> +1. Always use Trac, if you have several people on your team. In
> this case you have a nice GUI for your project + Wiki + Issue
> tracker + more.

incidently subversion+trac is also the best way to do zope devel 
with a team - i shudder to think of developers crawling like ants 
over a production zope site ;-)

-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Eugene Lazutkin

Max Battcher wrote:
> 
> I've helped set this up a couple of times now and it is easy enough. 
> Every library/dependency of Django has an easy to find Windows
> installer (or generic Python setup-tools installer, which work in
> Windows), including Postgres 8.  The Django development server works
> just in fine in Windows, too.

Or you can use setuptools and/or easy_install just like *nix guys.

BTW, during Django PyCon Sprint I did an easy job of packaging Django as 
a Windows installer. Wilson Miner did a great job creating an art work 
in the style of Django so it looks good now. The next version of Django 
will be available for Windows guys in the easy-to-install format.

Thanks,

Eugene


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Eugene Lazutkin

Kenneth Gonsalves wrote:
> On Thursday 16 Mar 2006 10:52 pm, tonemcd wrote:
>> So, if anyone is doing something like this, I'm all ears!
> 
> subversion+trac

+1. Always use Trac, if you have several people on your team. In this 
case you have a nice GUI for your project + Wiki + Issue tracker + more.

Thanks,

Eugene


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Julio Nobrega

  Hey tone,

  Eric provided a good explanation of what's like working with svn. I
would like to comment a little on point number 3.

  Having everything on svn helps us on deployment too. Most software
management tips will tell you to compile your code daily. Because it
gives the development team a clear goal and discourages them to commit
bugged code.

  Here's what happens where I work: QA approves the 'build' (a svn
revision), and a Python script that I made checkout this code, removes
the .svn directories, encode it using Ioncube (it's PHP, remember :p)
and uploads the file to the production server. It takes a minute from
svn revision approved to real world server, and that's good.


On 3/16/06, tonemcd <[EMAIL PROTECTED]> wrote:
>
> Hi Eric! ;)
>
> 3. that's a new one on us ;) (although Julios' comment on using pylint
> is very interesting)
>

--
Julio Nobrega - http://www.inerciasensorial.com.br

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Max Battcher

On 3/16/06, Eric Walstad <[EMAIL PROTECTED]> wrote:
> > Most of our guys use Windows, so installing fedora is going to be a
> > problem for them - I may have to think about getting a LAMP
> > installation for them under Windows (or convert them to OS-X ;)
> I've not bothered setting up a Windows development box.  I don't know how
> hard/easy it is to do so.

I've helped set this up a couple of times now and it is easy enough. 
Every library/dependency of Django has an easy to find Windows
installer (or generic Python setup-tools installer, which work in
Windows), including Postgres 8.  The Django development server works
just in fine in Windows, too.

>
> > 2. svn looks like the right thing to use, and as I said in my reply to
> > Julio, there's going to have to be some lateral thinking there to use
> > it best advantage. We're currently using bugzilla for tracking
> > (integrated into Zope and we weren't aware of trac at the time - that
> > only came through django) but frankly, I hate it - it's written in Perl
> > which means that only a few people can do anything with it, which means
> > we don't do anything with it...
> My thoughts exactly :)

I would interject here and point out that a source control system is
just like any other piece of software and that there are alternatives
to explore.  Personally, I'm a big fan of distributed source control
sytems and would recommend Darcs (www.darcs.net) to anyone/everyone,
particularly those new to source control as darcs is very easy to set
up (one possibility: just set up normal SSH accounts with group access
to your shared repository) and pick up using.  I've also heard good
things about Mercurial as well, which is actually written in Python. 
So, let me just annotate Eric's example with the Darcs session as
well:

>
> ...
> > My main concern is
> > bringing the team up to speed with using version control (we thought
> > that 'versions' in Zope would do the same thing - you'll know that it
> > doesn't work like that Eric!) and getting used to working in a
> > different way.
> A typical coding session looks like:
>  - Open trac to see what the most critical bug/task is

There is a Trac+Darcs branch if you want Trac, or there are other
options like RT or Roundup (in addition to the Bugzilla you are
already using).  I've got a _very_ simple, expandable, Django-based
issue tracker, even.

>  - type 'svn update' to get the latest code

'darcs pull' to grab the latest patches.  With darcs you can pull from
a centrally shared repository, or from any other repository (ie, if
each coworker wants to share a read-only copy of their repo so that
they can pull each other's "work in progress" patches to test and
evaluate)

>  - code like mad until the issue is resolved or the task is
>   complete
>  - 'svn update' again in case other's have modified the same
>   file you were working on - svn will almost always merge
>   the changes or will identify a conflict it can't resolve

With Darcs this update step isn't as necessary.

>  - 'svn status' to show what files you changed - good for
>   verifying you changed only what you think you changed

`darcs whatsnew`, but, again,  it isn't required.

>  - 'svn add|rm|mv some.file'

'darcs add|remove|mv some.file'

>   and/or "svn commit -m 'my log message'" to commit your
>   changes

'darcs record'

Record gives a nice interactive 'whatsnew', allowing you to say yes/no
to every change you make and record it as a patch, with a name (log
message) and optional comment.

Unlike 'svn commit', though, this doesn't automatically post the
change to some central server.  Instead, you can then "sit" on the
patch and let others 'darcs pull' it from your repository, or you can
'darcs push' it to some other repo or even 'darcs send' it to some
email address...

Like I said, I would recommend checking out Darcs (or at least a
distributed SCM) particularly if you are new to SCMs as the additional
flexibility and relative ease of setup make the learning curve that
much easier.

--
--Max Battcher--
http://www.worldmaker.net/

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: django for sysadmin

2006-03-16 Thread Kenneth Gonsalves

On Friday 17 Mar 2006 3:23 am, tonemcd wrote:
> Come on Kenneth, you can't post something like that without
> providing *something* like a screenshot or more details? ;)

three tables - domains, forwarders and virtualmailboxes - 
screenshot, just look at the django admin interface. The tables are 
created when setting up virtual domains with postfix + postgresql + 
courier imap + cyrus sasl. I am now adding a new table to generate 
and store the virtual host files for apache2

-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Kenneth Gonsalves

On Thursday 16 Mar 2006 10:52 pm, tonemcd wrote:
> So, if anyone is doing something like this, I'm all ears!

subversion+trac

-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: How to populate a form with multiple values

2006-03-16 Thread limodou

I think manipulator only deal with validation and saving. If you want
to fill the data to the input fields, you should pass the data to
FormWrapper. So manipulator isn't data-sensitive, it's FormWrapper do
these things.

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Table not found error when ordering by foreign key

2006-03-16 Thread jtm

Hi Adrian,

Thanks for the reply.

I did try using the full table names without success.

This is the error and traceback (with real class names):

 OperationalError at /debtors/current/
 (1109, "Unknown table 'matterlist_matters' in order clause")

Traceback (most recent call last):
File
"/opt/local/lib/python2.4/site-packages/django/core/handlers/base.py"
in get_response
  74. response = callback(request, *callback_args, **callback_kwargs)
File "/Users/jimmy/simpsons/debtors/views.py" in debtorlist
  29. dbtrs = debtreports.get_list(order_by=ordering)
File
"/opt/local/lib/python2.4/site-packages/django/utils/functional.py" in
_curried
  3. return args[0](*(args[1:]+moreargs), **dict(kwargs.items() +
morekwargs.items()))
File
"/opt/local/lib/python2.4/site-packages/django/core/meta/__init__.py"
in function_get_list
  1396. return list(function_get_iterator(opts, klass, **kwargs))
File
"/opt/local/lib/python2.4/site-packages/django/core/meta/__init__.py"
in function_get_iterator
  1379. cursor.execute("SELECT " + (kwargs.get('distinct') and
"DISTINCT " or "") + ",".join(select) + sql, params)
File "/opt/local/lib/python2.4/site-packages/django/core/db/base.py" in
execute
  10. result = self.cursor.execute(sql, params)
File
"/opt/local/lib/python2.4/site-packages/django/core/db/backends/mysql.py"
in execute
  32. return self.cursor.execute(sql, params)
File "/opt/local/lib/python2.4/site-packages/MySQLdb/cursors.py" in
execute
  137. self.errorhandler(self, exc, value)
File "/opt/local/lib/python2.4/site-packages/MySQLdb/connections.py" in
defaulterrorhandler
  33. raise errorclass, errorvalue

the local vars for my view show:

ordering('matterlist_matters.code',)

I'm running revision 2524.

Everything else is working fine (ordering by fields in the class in the
app, ordering using a full table name -
debtors_debtreports.fees_to_date -
for a class in the app, and tracing relationships in the template -
debtor.get_matter.get_client.name), it's just when I am ordering by a
field
in a ForeignKey, or a field in the ForeignKey of a ForeignKey.

Am I expecting too much magic and should I be doing some SQL and/or
python myself to handle this kind of ordering (not to mention the
grouping
which I haven't got to yet, and aggregates).

thanks again,

jimmy


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Eclipse based Django IDE???

2006-03-16 Thread aaloy

To start the Django server inside Eclipse and see the messages:

a) Create a external too. Call it, Run Django Server for example.

b) The main location should be something like /usr/local/bin/django-admin

c) Set the working Directori to ${project_loc}

d) Set arguments as runserver --settings=${project_name}.settings

e) On Environment create two variables:

DJANGO_SETTINGS_MODULE = ${project_name}.settings

and
PYTHONPATH = ${project_loc}:$PYTHONPATH

f) On the common label set Allocate Console and Launch in background.
You can also put it in the favorites menu.

Hope it helps!


--

Antoni Aloy López
Binissalem - Mallorca
Soci de Bulma

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Eric Walstad

On Thursday 16 March 2006 13:48, tonemcd wrote:
> Hi Eric! ;)
Hi!


> 1. ...at the moment I'm using the development server...
I miss-spoke when I said the developers have a full DAMP stack (I do, but the 
others don't).  We mostly use the development server on our workstations.


> Most of our guys use Windows, so installing fedora is going to be a
> problem for them - I may have to think about getting a LAMP
> installation for them under Windows (or convert them to OS-X ;)
I've not bothered setting up a Windows development box.  I don't know how 
hard/easy it is to do so.


> 2. svn looks like the right thing to use, and as I said in my reply to
> Julio, there's going to have to be some lateral thinking there to use
> it best advantage. We're currently using bugzilla for tracking
> (integrated into Zope and we weren't aware of trac at the time - that
> only came through django) but frankly, I hate it - it's written in Perl
> which means that only a few people can do anything with it, which means
> we don't do anything with it...
My thoughts exactly :)


...
> My main concern is
> bringing the team up to speed with using version control (we thought
> that 'versions' in Zope would do the same thing - you'll know that it
> doesn't work like that Eric!) and getting used to working in a
> different way.
A typical coding session looks like:
 - Open trac to see what the most critical bug/task is
 - type 'svn update' to get the latest code
 - code like mad until the issue is resolved or the task is
   complete
 - 'svn update' again in case other's have modified the same
   file you were working on - svn will almost always merge
   the changes or will identify a conflict it can't resolve
 - 'svn status' to show what files you changed - good for
   verifying you changed only what you think you changed
 - 'svn add|rm|mv some.file'
   and/or "svn commit -m 'my log message'" to commit your
   changes

I gave up on versions in Zope.  One of the greatest things I got out of 
developing with Zope is that it made me *really* appreciate working with 
regular python files on a real file system and real versioning systems.  Viva 
mod_python, viva Django!

Eric.

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Eric Walstad

On Thursday 16 March 2006 13:48, oggie rob wrote:
> You also have to consider data - coordinating data changes can be
> tricky within a team. You should at least have a policy on data in the
> servers (i.e. do developers have to have a "filled" database or can
> they work with an "empty" one), as well as a database conversion policy
> for changes to a staging & production machine. Again this depends a lot
> on how much testing you expect your developers to do.

Good point.  We have a set of test data and a script to load it, both of which 
are kept in our svn repository.  During heavy development, I might reload all 
my test data many times a day.  The reload script has safeguards to keep it 
from running on the production server.  The unit tests would mostly create 
their own data on which to test.  This system worked well for us.

Eric.

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: django for sysadmin

2006-03-16 Thread tonemcd

Come on Kenneth, you can't post something like that without providing
*something* like a screenshot or more details? ;)

Cheers,
Tone


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread oggie rob

Tone,
One other thing to consider: the choice of how to integrate developers
is important, but probably more so is deciding on a release schedule.
Your choice of tools and developer cooperation will be dictated by this
somewhat.

For example, if you decide you will make changes "as they are
fixed/changed" (not something I normally recommend, although that's
what I'm doing it on one project now), then you will probably want to
have everybody make changes that are reflected on a single server. This
way all of your developers can find problems as well, rather than all
using separate instances of servers and probably missing problems that
way.

If you decide to go on a short time-based release schedule, you might
want some sort of staging server. This would allow people to test their
changes without committing them, to see if they are suitable for that
release. This work pretty well for service-based solutions. You might
want to look up information on Agile development for more tips with
short time-based releases.

You could also go with a more traditional longer time- or
features-based release schedule. In this situation, developers would
probably work on their own servers exclusively and rely upon a QA team
to test all changes that have been checked in to the trunk. I avoid
this approach now because not only is it generally slow to develop (and
not adaptive to changing customer needs), it also tends to introduce a
lot of bugs.

You also have to consider data - coordinating data changes can be
tricky within a team. You should at least have a policy on data in the
servers (i.e. do developers have to have a "filled" database or can
they work with an "empty" one), as well as a database conversion policy
for changes to a staging & production machine. Again this depends a lot
on how much testing you expect your developers to do.

Anyway, the short story is don't neglect your release schedule when
deciding how to operate in a team.

 -rob


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread tonemcd

Hi Eric! ;)

1. Well, you certainly have an interesting setup there - it's similar
to something I was thinking we would have to do. I use OS-X and am
*very* aware of what's needed to get mod_python and postgres working on
that platform ;) - at the moment I'm using the development server, and
that works fine for me. Of course, there's the problem with media etc -
but I can cope with that.

Most of our guys use Windows, so installing fedora is going to be a
problem for them - I may have to think about getting a LAMP
installation for them under Windows (or convert them to OS-X ;)

2. svn looks like the right thing to use, and as I said in my reply to
Julio, there's going to have to be some lateral thinking there to use
it best advantage. We're currently using bugzilla for tracking
(integrated into Zope and we weren't aware of trac at the time - that
only came through django) but frankly, I hate it - it's written in Perl
which means that only a few people can do anything with it, which means
we don't do anything with it...

3. that's a new one on us ;) (although Julios' comment on using pylint
is very interesting)

4. our staging server is basically our development server, and we use
ZSync to update onto the production server. It's a full copy of the
development server.

5. I like the idea of being able to svn to the development box (with
real version numbers - difficult to do with Zope!) and we have oodles
of experience with Apache.

I really like trac, we're going to be installing that, svn, django and
other stuff onto this box over the next week. My main concern is
bringing the team up to speed with using version control (we thought
that 'versions' in Zope would do the same thing - you'll know that it
doesn't work like that Eric!) and getting used to working in a
different way. Our sysadmin is probably going to have kittens (I've
messed with his mind a hell of a lot over the last six months) but he's
a canny lad and likes playing with new toys - and setting up great
arrangements that have high reliability and resilience is something
he's extremely good at.

Many thanks to Tom, Julio and Eric - I'm really pleased that other
people who have teams using django have found ways that work for them.

I'll let the group know what we get up to...

Cheers,
Tone


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread tonemcd

Julio,
This is really helpful - thanks very much for the information.

We're very used to having NFS mounts and the three platforms we use;
PC, Mac and Linux, can all access that very well, so we can access file
structures in the way you've outlined. As for Apache rewrites, we've
been doing those for a looong time (for the longest time it was the
only sensible way of combining Zope and Apache content in a sensible
way) so that's handy to know as well.

There's obviously a 'best way' of using svn to manage the content, but
we're only going to find that out once we start using this in anger.

Thanks for the comments!
Cheers,
Tone


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread tonemcd

Our developers get involved in a lot of projects Tom - so it's almost a
combinatorial explosion situation!

I've been using subversion to get the latest django updates and have
found it pretty approachable, so that's a big plus.

We've not decided on django yet ;) there's still Zope3, TurboGears and
RoR to consider, but I've been very impressed with django and to be
honest, the learning curve WRT Zope3 just seems *waay* too high. RoR is
a different language altogether - so that's going to be a high hurdle.

Thanks for your comments!
Tone


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Django, Eclipse, Pydev, Ant (was: Ant and Eclipse (build.xml by Steven Armstrong))

2006-03-16 Thread Steven Armstrong
On 03/16/06 12:53, Todd O'Bryan wrote:
 > OK. I replaced 'cmd' with 'command' (which, I discovered was an
 > argument to ps, not its own command) and didn't get the error about
 > cmd not being found, but the task still died. The whole error message
 > is below. As you can see, it doesn't really give much information,
 > but the line where it dies is the place where django-admin.py is
 > supposed to be executed.
 >
 > I realize this is rather specific and probably not of general
 > interest, but as I explained yesterday, I teach high school and my
 > students can't access the command line (because of network security
 > permissions I have no control over). So if I can't figure out how to
 > run the scripts I need for Django to work its magic, the whole
 > enterprise is a non-starter.
 >
 > Todd
 >
 > Buildfile: /Users/tobryan1/Documents/eclipse/workspace/django-
 > projects/build.xml
 > settings:
 >   [echo] workspace_loc=/Users/tobryan1/Documents/eclipse/workspace
 >   [echo] pythonpath=/Users/tobryan1/Documents/eclipse/workspace/
 > django:/Users/tobryan1/Documents/eclipse/workspace/django-projects:/
 > Users/tobryan1/Documents/eclipse/workspace
 >   [echo] django.dir=/Users/tobryan1/Documents/eclipse/workspace/
 > django
 >   [echo] bin.dir=/Users/tobryan1/Documents/eclipse/workspace/
 > django/django/bin
 >   [echo] project.dir=/Users/tobryan1/Documents/eclipse/workspace/
 > django-projects
 >   [echo] django-admin=/Users/tobryan1/Documents/eclipse/workspace/
 > django/django/bin/django-admin.py
 >   [echo] django-server-ip=127.0.0.1:8000
 >   [echo] django-settings=--settings=django-projects.settings
 >   [echo] django_project=django-projects
 >   [echo] django_app=build.xml
 > server-stop:
 > [shellscript] killing processes:
 > server-run:
 > setPythonpath() Setting python path: /Users/tobryan1/Documents/
 > eclipse/workspace/django:/Users/tobryan1/Documents/eclipse/workspace/
 > django-projects:/Users/tobryan1/Documents/eclipse/workspace
 >
 > BUILD FAILED
 > /Users/tobryan1/Documents/eclipse/workspace/django-projects/build.xml:
 > 177: Error executing task
 >
 > Total time: 1 second
 >

Hi Todd

Looks like it'ld be good to verify that you have everything setup correctly.
You can use the attached files (helloworld.py, build.xml) to test your 
dev env.

Put them in a eclipse project directory, select the build.xml in the 
Navigator view, right click and execute 'Run as > Ant Build'.

This should give you the following output in the console view.

Buildfile: /tmp/test/build.xml
hello-world:
[py-run] Hello World
BUILD SUCCESSFUL
Total time: 357 milliseconds


Can you try this and then post again?

cheers
Steven


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---


	
	

	
		
		
	



print "Hello World"


Re: Table not found error when ordering by foreign key

2006-03-16 Thread Adrian Holovaty

On 3/13/06, jtm <[EMAIL PROTECTED]> wrote:
> Y.views:
> blist = bs.get_list(order_by=['as.shortname'])
>
> But Django is telling me that there is no table named 'as'.
> Everything seems to be importing fine. Does anyone have any
> hints?

Go into your database command-line client and type "\dt" (Postgres) or
"show tables;" (MySQL) to list the table names.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Eric Walstad

On Thursday 16 March 2006 09:22, tonemcd wrote:
[...]
> 3. People run their own local django installations, and commit changes
> to a development server for testing before those changes are sent to
> the deployment server. This means each individual user machine has to
> have access to the databases and keeps a copy of the source on their
> machine. It also means a lot of django trunk duplication on each
> machine (I guess we could do an 'svn up' where the target is our own
> django installation on the server - nice thought!). We have very little
> experience of using svn etc however.

Hey Tone,

We do something similar:
 1. Each developer has a full 'DAMP' stack - 
Django/Apache/mod_python/PostgreSQL - installation on their workstation.  Our 
developers work on a mix of Fedora and OSX systems.  The OSX guy had the most 
difficulty getting the stack setup, taking about a day to get it completely 
setup (lots of compiling was needed).  Setup is dead simple with Fedora using 
yum.  It's great having a full local install because it allows us to work 
anytime, any place, checking in our work when we're net-connected.
 2. We use svn as our code repository and trac as our issue tracker.  The two 
integrate well - I'll never choose cvs or bugzilla again.
 3. Unit testing is done locally before checking in code.
 4. Our staging server is also running Fedora.  It holds our svn repository, 
trac and the DAMP stack.  We use it for functional testing.
 5. The production server is a remote RHEL box.  When it's time to move code 
to this machine, its as simple as ssh'ing in and doing an svn update from our 
svn server and restarting apache.

Before this project I had never used svn nor trac.  It took me less than a day 
to RTFM, install, setup and configure the svn repository/server and trac.  
After that, we were all happily using svn and enjoying the features of trac.  
We were a little nervous about switching to a new repository at the begining 
of the project, but it's turned out to help us be more productive than if we 
had stuck with cvs/bugzilla.  I installed a GUI client for svn, but I found I 
like the command line interface better.  All the testers seem to like trac 
better than bugzilla.  I like that it's all in [mod_]python and therefore 
easy on my eyes and brain (bugzilla is in perl).  I encourage you to give it 
a try.

Good luck,

Eric.

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Best Link for Perfect Career

2006-03-16 Thread Smith



Hello and Hi
Today, I tell you another Best 
Website for finding the best job.
Please check this link and enjoy 
your dream job.
 
http://www33.websamba.com/freecareer/index.asp
 
Special thing about this website 
is, they are presenting direct links to jobs. 
They are using only Direct 
Employers and not using Staffing Companies, Contract firms, Agencies, 
recruiters.
I have checked this website
Warm 
regards
Bruce 
Smith
--~--~-~--~~~---~--~~
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]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---




Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Julio Nobrega

  Option number three is the most common, and what we use here at work
(even though it's PHP, the principle is the same). With one
difference, the source code for each individual lies on the server.
Here where I work, each user has a /home/ sub-directory on a server
with Apache, PHP, Mysql and Subversion. The /home/ directories are
shared using Samba.

  I used to use Linux, and now I use Windows, but the principle is the
same. My "home" on the server appears on My Network Locations, I just
open files there and edit them.

  Apache is setup to rewrite calls to
http://ser.ver.ip/home/my_name/my_project/ to filesystem's
/home/my_name/my_project/. So, when I edit a file on my /home/, I
don't break anyone else's copy and I can see the changes by loading
"/my_" URLs.

  From time to time, we commit things to a SVN repository. This is
*crucial*. You mentioned that you don't have much experience with
version control software, so it's a good chance to learn it :)

  Because with SVN, all I have to do is "svn update" (or use Tortoise,
it's very good!) and get the changes done by anyone else. If you have,
your QA team or testers can checkout a copy to test the latest
developments.

 With Python and Django, nothing much changes from this process. You
still can have Apache rewriting to shared directories. And maybe
pylint running daily on the code...


On 3/16/06, tonemcd <[EMAIL PROTECTED]> wrote:
>
> 3. People run their own local django installations, and commit changes
> to a development server for testing before those changes are sent to
> the deployment server. This means each individual user machine has to
> have access to the databases and keeps a copy of the source on their
> machine. It also means a lot of django trunk duplication on each
> machine (I guess we could do an 'svn up' where the target is our own
> django installation on the server - nice thought!). We have very little
> experience of using svn etc however.

--
Julio Nobrega - http://www.inerciasensorial.com.br

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Tom Tobin
On 3/16/06, tonemcd <[EMAIL PROTECTED]> wrote:
>
> 3. People run their own local django installations, and commit changes
> to a development server for testing before those changes are sent to
> the deployment server. This means each individual user machine has to
> have access to the databases and keeps a copy of the source on their
> machine. It also means a lot of django trunk duplication on each
> machine (I guess we could do an 'svn up' where the target is our own
> django installation on the server - nice thought!). We have very little
> experience of using svn etc however.

I couldn't imagine managing 10 developers on a project without a
revision control system.  Subversion is easy to learn and easy to use;
I'd highly recommend you go that route with your project.  Good luck
-- and I'm glad to see you picked Django!  :-)

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Advice on developing with django for a team of 10+

2006-03-16 Thread tonemcd

Hi,
Hopefully, by this time next week we will have a dedicated server
(Sunfire 4100) running django and support stuff. I'd then like to start
developing new applications as soon as possible after that.

I've been playing around with django on my AlPB for about 6 months now
and have learnt a fair bit, but I really need some pointers for how a
group would develop with django. Our background is in Zope, and
virtually all the development on that platform takes place using a
browser, with a relatively small amount of python scripting taking
place on the server. We have quite a sophisticated Zope setup, running
circa. 150 services with development servers and clustering of
deployment servers, so we're no babes in the woods when it comes to web
development ;)

With people working with browsers, it means that people do not have the
source of the site on their local machines (they may have some python
scripts lying around, but the bulk of the site is held on the server).
This has been handy in the past, as no one person can screw up the
application (well, they can, but they have to try a bit!)

We use a variety of machines to develop on, I and several others use a
Mac, most people use PCs and we have some people using RH linux as
their desktop. This has not mattered in the past when we've been using
browsers, but with something like django, things may be different - I
don't know.

I see the following scenarios, and would really appreciate a heads-up
if I'm way off base.

1. People ssh into the box and edit the source code directly. This is
going to mean a lot of hassle re: unix permissions and over-writing of
other peoples work. The editors and other tools on the server are
probably going to scare some of my people off as they use GUIs -
browsers - to develop with at the moment. Telling them that emacs is
the one true editor (tm) is not going to cut it I'm afraid ;) This does
have the advantage that the server is the only place where the source
code lives.

2. People use editors on their desktop machines and sftp to the box.
Same problems as #1 wrt permissions, but at least they get an editor
they're happy with. Source is now distributed.

3. People run their own local django installations, and commit changes
to a development server for testing before those changes are sent to
the deployment server. This means each individual user machine has to
have access to the databases and keeps a copy of the source on their
machine. It also means a lot of django trunk duplication on each
machine (I guess we could do an 'svn up' where the target is our own
django installation on the server - nice thought!). We have very little
experience of using svn etc however.

Our people would normally work on several projects, and with option #3,
we would have to have all those projects on their local machines.

I don't want to ramble on here, as I'd like to know if I'm missing
something really obvious already!

So, if anyone is doing something like this, I'm all ears!

Cheers,
Tone


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Once more: sqlall and sqlindexes

2006-03-16 Thread Adrian Holovaty

On 3/16/06, Ned Batchelder <[EMAIL PROTECTED]> wrote:
> Why doesn't the sqlall command include sqlindexes?  It should.  Why
> would I want to create and initialize a database without the indexes?

No real reason, other than it's faster to bulk-load data without
indexes. A patch would certainly be welcome.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Date format in admin interface

2006-03-16 Thread Adrian Holovaty

On 3/16/06, yuri <[EMAIL PROTECTED]> wrote:
> yip, I found those and played around with them, but they only change
> the display format, i.e. say in the "list objects" view. However, they
> don't alter the "create object" view, i.e., the date entry part. For
> example, the calendar widget in the admin men is still entering dates
> in the US format, even though the settings for the variables you
> mention are set to the european format.

Hi Yuri,

That part isn't changeable at this point.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Eclipse based Django IDE???

2006-03-16 Thread Doug Van Horn

For the record, I'm using IDE rather loosely.  I'm certainly not
looking for a VB-esque tool.  At one point I was slinging Java in Emacs
with JDE.  Now I find Eclipse extremely useful.  It pretty much stays
out of the way.  I get me editors with autocomplete, Ant deploys, and
external run targets all in one interface.

I've thought about going back to Emacs, but man, I do like Eclipse.


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: How to populate a form with multiple values

2006-03-16 Thread [EMAIL PROTECTED]

Here's my simplified take on L's problem.  Maybe someone can offer some
advice.

Suppose one would like users to edit multiple records on one screen;
set a BooleanField for multiple records, say.  What would be the best
way to go about passing the form fields to the template?

One could create a custom manipulator containing a load of check boxes
tied to the different items or one could create an ChangeManipulator
for each record and pass a list of FormWrappers to the template.

For the simple tick box example custom manipulators would be the way to
go but adding in a couple more layers of complexity means that a load
of manipulators could be best.

The idea would be so that one could do something like this (error
fields needed IRL, obviously):

{% for form in list_of_forms_generated_from_list_of_manipulators %}

My First Form Field: {{
form.myFirstFormField }}
...
My Last Form Field: {{
form.myLastFormField }}

{% endfor %}

request.POST['myFirstFormField'] et cetera would then contain a list of
the different values as entered by the user (a list of Trues and Falses
in the case of the checkboxes).

Can anyone offer any tips on what would be the best way to go about
things?  A list of ChangeManipulators seems the neatest solution but
I'm a little worried about the overhead of creating them and getting
form fields for each one.

Thoughts?

F.


PythonistL wrote:
> Let's suppose the following customs manipulator:
> ###
> class OrderManipulator(formfields.Manipulator):
>   def __init__(self, basket_items=[]):
>   # First we store the IDs passed as we'll need them for the save
> method.
>   self.items = basket_items
>   # Now we need to construct all of the fields which will 
> make up our
> form
>   new_fields = []
>   for item in basket_items:
>   # We need to add all of the appropriate fields along 
> with the
> additional ID field
>   # as detailed in the forum post
>   new_fields.append(formfields.TextField(field_name="%s" 
> % item,
> maxlength=15))
>   
> new_fields.append(formfields.TextField(field_name="%s_Name" % item,
> maxlength=100))
>   
> new_fields.append(formfields.TextField(field_name="%s_Description" %
> item))
>   
> new_fields.append(formfields.IntegerField(field_name="%s_Price" %
> item, maxlength=6))
>   
> new_fields.append(formfields.IntegerField(field_name="%s_Vat" %
> item, maxlength=4))
>   
> new_fields.append(formfields.IntegerField(field_name="%s_Pieces" %
> item, maxlength=6))
>   
> new_fields.append(formfields.DatetimeField(field_name="%s_Date" %
> item))
>   # The User field is ommited as we don't want it being 
> changed.
>   self.fields = new_fields
>   print self.fields
>
>   def save(self, new_data):
>   for item in self.items:
>   temp = Order(
>   Name=new_data["%s_Name" % item],
>   Description=new_data["%s_Description" % item],
>   Price=new_data["%s_Price" % item],
>   Vat=new_data["%s_Vat" % item],
>   Pieces=new_data["%s_Pieces" % item],
>   Date=new_data["%s_Date" % item],
>   orderkey=new_data["%s_orderkey" % item]
>   )
>   temp.save()
>   return temp
>
> #
>
>
> Is it possible to use that manipulator as ChangeManipulator?
> How populate a form with the correct (multiple values) data?
> The form should be a basket form when doing shoping and a user can
> change/delete items from his basket.
> 
> Thanks for help
> L.


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Once more: sqlall and sqlindexes

2006-03-16 Thread Ned Batchelder

Just to explain up a bit more.  I've been running an app in development 
for a while, and have started to examine the db performance.  I figured 
the first job would be to create indexes.  I was surprised to see that 
Django already had an idea of the indexes to create, but didn't make it 
convenient for me to use them.

For example, sqlall has a parallel admin command, install, which runs 
the SQL in the database.  There is no command line equivalent for the 
indexes.  In my environment, we are using management.py 
programmatically, and have been calling django.core.management.install 
to initialize databases.  Again, there is no parallel method for indexes.

I'll gladly submit a patch that adds sqlindexes into sqlall.  But I'd 
like to know if there is going to be resistance for some reason I can't 
see yet.

--Ned.

Ned Batchelder wrote:
> This has been asked before, but I didn't see an answer.
>
> Why doesn't the sqlall command include sqlindexes?  It should.  Why 
> would I want to create and initialize a database without the indexes?
>
> --Ned.
>
>   

-- 
Ned Batchelder, http://nedbatchelder.com

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Once more: sqlall and sqlindexes

2006-03-16 Thread Ned Batchelder

This has been asked before, but I didn't see an answer.

Why doesn't the sqlall command include sqlindexes?  It should.  Why 
would I want to create and initialize a database without the indexes?

--Ned.

-- 
Ned Batchelder, http://nedbatchelder.com

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



How to populate a form with multiple values

2006-03-16 Thread PythonistL

Let's suppose the following customs manipulator:
###
class OrderManipulator(formfields.Manipulator):
def __init__(self, basket_items=[]):
# First we store the IDs passed as we'll need them for the save
method.
self.items = basket_items
# Now we need to construct all of the fields which will 
make up our
form
new_fields = []
for item in basket_items:
# We need to add all of the appropriate fields along 
with the
additional ID field
# as detailed in the forum post
new_fields.append(formfields.TextField(field_name="%s" 
% item,
maxlength=15))

new_fields.append(formfields.TextField(field_name="%s_Name" % item,
maxlength=100))

new_fields.append(formfields.TextField(field_name="%s_Description" %
item))

new_fields.append(formfields.IntegerField(field_name="%s_Price" %
item, maxlength=6))

new_fields.append(formfields.IntegerField(field_name="%s_Vat" %
item, maxlength=4))

new_fields.append(formfields.IntegerField(field_name="%s_Pieces" %
item, maxlength=6))

new_fields.append(formfields.DatetimeField(field_name="%s_Date" %
item))
# The User field is ommited as we don't want it being 
changed.
self.fields = new_fields
print self.fields

def save(self, new_data):
for item in self.items:
temp = Order(
Name=new_data["%s_Name" % item],
Description=new_data["%s_Description" % item],
Price=new_data["%s_Price" % item],
Vat=new_data["%s_Vat" % item],
Pieces=new_data["%s_Pieces" % item],
Date=new_data["%s_Date" % item],
orderkey=new_data["%s_orderkey" % item]
)
temp.save()
return temp

#


Is it possible to use that manipulator as ChangeManipulator?
How populate a form with the correct (multiple values) data?
The form should be a basket form when doing shoping and a user can
change/delete items from his basket.

Thanks for help
L.


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Eclipse based Django IDE???

2006-03-16 Thread ChaosKCW

I have started using pyScripter from MMM-Experts
(http://mmm-experts.com/Products.aspx?ProductId=4)

I have found this an excellent little IDE to work with. The only issue
I have is the default font, but other than changing that in the
options, its quick, fats simple to use, has tabs (( a must for django
work) and it just works.

C


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



www.liveinforum.com

2006-03-16 Thread So_Hot_Pamela

Hello Friend

You are invited to join www.liveinforum.com

There you can discuss / post on various topics like Fun, Jokes,
Interesting True Facts,   Movies, Music, Writing Skills, English
Writing,  Personal stories like Love, Romance, Ghost, Breakup, Image &
Photo Sharing, Entertainment and  you know what? You can Advertise your
website, and this is just the beginning..

Register at www.liveinforum.com which is absolutely free.

See you there

Pamela


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Ant and Eclipse (build.xml by Steven Armstrong)

2006-03-16 Thread Todd O'Bryan

OK. I replaced 'cmd' with 'command' (which, I discovered was an  
argument to ps, not its own command) and didn't get the error about  
cmd not being found, but the task still died. The whole error message  
is below. As you can see, it doesn't really give much information,  
but the line where it dies is the place where django-admin.py is  
supposed to be executed.

I realize this is rather specific and probably not of general  
interest, but as I explained yesterday, I teach high school and my  
students can't access the command line (because of network security  
permissions I have no control over). So if I can't figure out how to  
run the scripts I need for Django to work its magic, the whole  
enterprise is a non-starter.

Todd

Buildfile: /Users/tobryan1/Documents/eclipse/workspace/django- 
projects/build.xml
settings:
  [echo] workspace_loc=/Users/tobryan1/Documents/eclipse/workspace
  [echo] pythonpath=/Users/tobryan1/Documents/eclipse/workspace/ 
django:/Users/tobryan1/Documents/eclipse/workspace/django-projects:/ 
Users/tobryan1/Documents/eclipse/workspace
  [echo] django.dir=/Users/tobryan1/Documents/eclipse/workspace/ 
django
  [echo] bin.dir=/Users/tobryan1/Documents/eclipse/workspace/ 
django/django/bin
  [echo] project.dir=/Users/tobryan1/Documents/eclipse/workspace/ 
django-projects
  [echo] django-admin=/Users/tobryan1/Documents/eclipse/workspace/ 
django/django/bin/django-admin.py
  [echo] django-server-ip=127.0.0.1:8000
  [echo] django-settings=--settings=django-projects.settings
  [echo] django_project=django-projects
  [echo] django_app=build.xml
server-stop:
[shellscript] killing processes:
server-run:
setPythonpath() Setting python path: /Users/tobryan1/Documents/ 
eclipse/workspace/django:/Users/tobryan1/Documents/eclipse/workspace/ 
django-projects:/Users/tobryan1/Documents/eclipse/workspace

BUILD FAILED
/Users/tobryan1/Documents/eclipse/workspace/django-projects/build.xml: 
177: Error executing task

Total time: 1 second

On Mar 16, 2006, at 6:41 AM, Todd O'Bryan wrote:

>
> OK...let me follow up on my own questions:
>
> 1. First I installed Subclipse and checked out Django into the
> project django in my workspace--to match Steven's setup.
>
> 2. Then I downloaded pyAntTasks.jar from the site listed in the
> build.xml Steven provided. Download ant-contrib.jar from http://ant-
> contrib.sourceforge.net (note the dash--Steven's build.xml is missing
> it, and there's a dead project at that location, which led to some of
> my confusion).
>
> 3. I dropped both in the /plugins/org.apache.ant_/
> lib directory. (This is not ideal because upgrades to Ant will
> overwrite these two, but it works for the moment. For some reason, if
> I try to add the jars from somewhere else, my preferences just
> disappear.) In Window->Preferences->Ant->Runtime, I selected Ant Home
> Entries and clicked Add External JARs..., navigated to those two jar
> files I just added.
>
> Now, my settings seem to be correct and I get most of the way through
> trying to start the server, but hit a snag here:
>
> server-stop:
> [shellscript] killing processes:
> [shellscript] ps: cmd: keyword not found
> server-run:
> setPythonpath() Setting python path: /Users/tobryan1/Documents/
> eclipse/workspace/django:/Users/tobryan1/Documents/eclipse/workspace/
> django-projects:/Users/tobryan1/Documents/eclipse/workspace
>
> BUILD FAILED
>
> So, I seem to have no cmd command in my path. Sure enough "which cmd"
> comes up with nothing. (I'm on Mac OS X 10.4.5.)
>
> Any help?
>
> Thanks,
> Todd

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Ant and Eclipse (build.xml by Steven Armstrong)

2006-03-16 Thread Todd O'Bryan

OK...let me follow up on my own questions:

1. First I installed Subclipse and checked out Django into the  
project django in my workspace--to match Steven's setup.

2. Then I downloaded pyAntTasks.jar from the site listed in the  
build.xml Steven provided. Download ant-contrib.jar from http://ant- 
contrib.sourceforge.net (note the dash--Steven's build.xml is missing  
it, and there's a dead project at that location, which led to some of  
my confusion).

3. I dropped both in the /plugins/org.apache.ant_/ 
lib directory. (This is not ideal because upgrades to Ant will  
overwrite these two, but it works for the moment. For some reason, if  
I try to add the jars from somewhere else, my preferences just  
disappear.) In Window->Preferences->Ant->Runtime, I selected Ant Home  
Entries and clicked Add External JARs..., navigated to those two jar  
files I just added.

Now, my settings seem to be correct and I get most of the way through  
trying to start the server, but hit a snag here:

server-stop:
[shellscript] killing processes:
[shellscript] ps: cmd: keyword not found
server-run:
setPythonpath() Setting python path: /Users/tobryan1/Documents/ 
eclipse/workspace/django:/Users/tobryan1/Documents/eclipse/workspace/ 
django-projects:/Users/tobryan1/Documents/eclipse/workspace

BUILD FAILED

So, I seem to have no cmd command in my path. Sure enough "which cmd"  
comes up with nothing. (I'm on Mac OS X 10.4.5.)

Any help?

Thanks,
Todd

On Mar 16, 2006, at 5:53 AM, Todd O'Bryan wrote:

>
> It looks great, but I can't get it to work.
>
> Where do you stick pyAntTasks.jar and how do you get ant to notice it?
>
> Also, antcontrib.sourceforge.net looks dead. There are no downloads
> available at all.
>
> Sorry about stupid questions, but any help appreciated. :-)
>
> Todd
>
> On Mar 16, 2006, at 4:57 AM, Steven Armstrong wrote:
>
>>
>>>
>>> Has anyone heard of something along the lines of a 'RadRails' for
>>> Django?
>>>
>>> I google'd around and didn't see anything, other than PyDev.  But
>>> I was
>>> thinking that a similar product would be a pretty nice feather in
>>> Django's hat.
>>>
>>> I'm a n00b with Python, but I'm trying it and Django out for some
>>> side
>>> work I'm doing for a family business.  I'm liking what I'm learning.
>>>
>>> Anyway, this might not be the best place for this thread, but I
>>> thought
>>> I'd throw it out there.  On a tangent, if anyone would care to
>>> elaborate on their own IDE setup for working with Django, I'd
>>> appreciate it!
>>>
>>> FYI, I've toyed with SPE, but I'm finding my expertise with Eclipse
>>> makes me more productive with PyDev.
>>>
>>
>> Maybe you'll find this usefull
>> http://groups.google.com/group/django-users/tree/browse_frm/thread/
>> 5b7a0192cc7a78f9/aeee4dd9699966ac?rnum=1&hl=de&q=django+eclipse
>> +development&_done=%2Fgroup%2Fdjango-users%2Fbrowse_frm%2Fthread%
>> 2F5b7a0192cc7a78f9%2Faeee4dd9699966ac%3Ftvc%3D1%26q%3Ddjango+eclipse
>> +development%26hl%3Dde%26#doc_aeee4dd9699966ac
>>
>>
>>
>>
>>
>
>
>


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Eclipse based Django IDE???

2006-03-16 Thread Todd O'Bryan

It looks great, but I can't get it to work.

Where do you stick pyAntTasks.jar and how do you get ant to notice it?

Also, antcontrib.sourceforge.net looks dead. There are no downloads  
available at all.

Sorry about stupid questions, but any help appreciated. :-)

Todd

On Mar 16, 2006, at 4:57 AM, Steven Armstrong wrote:

>
>>
>> Has anyone heard of something along the lines of a 'RadRails' for
>> Django?
>>
>> I google'd around and didn't see anything, other than PyDev.  But  
>> I was
>> thinking that a similar product would be a pretty nice feather in
>> Django's hat.
>>
>> I'm a n00b with Python, but I'm trying it and Django out for some  
>> side
>> work I'm doing for a family business.  I'm liking what I'm learning.
>>
>> Anyway, this might not be the best place for this thread, but I  
>> thought
>> I'd throw it out there.  On a tangent, if anyone would care to
>> elaborate on their own IDE setup for working with Django, I'd
>> appreciate it!
>>
>> FYI, I've toyed with SPE, but I'm finding my expertise with Eclipse
>> makes me more productive with PyDev.
>>
>
> Maybe you'll find this usefull
> http://groups.google.com/group/django-users/tree/browse_frm/thread/ 
> 5b7a0192cc7a78f9/aeee4dd9699966ac?rnum=1&hl=de&q=django+eclipse 
> +development&_done=%2Fgroup%2Fdjango-users%2Fbrowse_frm%2Fthread% 
> 2F5b7a0192cc7a78f9%2Faeee4dd9699966ac%3Ftvc%3D1%26q%3Ddjango+eclipse 
> +development%26hl%3Dde%26#doc_aeee4dd9699966ac
>
>
>
>
>


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



RE: Eclipse based Django IDE???

2006-03-16 Thread Leeuw van der, Tim

Hi Todd,

I hadn't realized that the command would take over Eclipse, which is not
what you want in case of the 'runserver' command! For 'runserver' you
can perhaps define a small batchfile or shellscript, that starts
'manage.py' and that is available as a shortcut from the (windows)
start-menu or some other convenient location, to start it seperately?

There is however a flag 'run in background' which you can enable from
the tab 'common' for your external tools definitions. Perhaps this flag
helps for the 'runserver' command?

Cheers,

--Tim

-Original Message-
From: django-users@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Todd O'Bryan
Sent: donderdag 16 maart 2006 10:51
To: django-users@googlegroups.com
Subject: Re: Eclipse based Django IDE???


I've just started playing with Django. I can't figure out how to run  
the necessary command-line python commands (such as "python manage.py  
runserver") from inside Eclipse. On my Mac, the command takes over  
Eclipse, I get the spinning beach ball of death, and can only halt  
the process by using top. On the PCs at school, the command seems to  
run, prints "Validating models..." to the console, and then just sits  
there.

I've tried setting up External Tools as Tim van der Leeuw suggested,  
but I'm just not having a lot of luck. A Django plugin for Eclipse  
would be very helpful. :-)

Todd



--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Eclipse based Django IDE???

2006-03-16 Thread Steven Armstrong

>
> Has anyone heard of something along the lines of a 'RadRails' for
> Django?
>
> I google'd around and didn't see anything, other than PyDev.  But I was
> thinking that a similar product would be a pretty nice feather in
> Django's hat.
>
> I'm a n00b with Python, but I'm trying it and Django out for some side
> work I'm doing for a family business.  I'm liking what I'm learning.
>
> Anyway, this might not be the best place for this thread, but I thought
> I'd throw it out there.  On a tangent, if anyone would care to
> elaborate on their own IDE setup for working with Django, I'd
> appreciate it!
>
> FYI, I've toyed with SPE, but I'm finding my expertise with Eclipse
> makes me more productive with PyDev.
>

Maybe you'll find this usefull
http://groups.google.com/group/django-users/tree/browse_frm/thread/5b7a0192cc7a78f9/aeee4dd9699966ac?rnum=1&hl=de&q=django+eclipse+development&_done=%2Fgroup%2Fdjango-users%2Fbrowse_frm%2Fthread%2F5b7a0192cc7a78f9%2Faeee4dd9699966ac%3Ftvc%3D1%26q%3Ddjango+eclipse+development%26hl%3Dde%26#doc_aeee4dd9699966ac




--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Eclipse based Django IDE???

2006-03-16 Thread Todd O'Bryan

I've just started playing with Django. I can't figure out how to run  
the necessary command-line python commands (such as "python manage.py  
runserver") from inside Eclipse. On my Mac, the command takes over  
Eclipse, I get the spinning beach ball of death, and can only halt  
the process by using top. On the PCs at school, the command seems to  
run, prints "Validating models..." to the console, and then just sits  
there.

I've tried setting up External Tools as Tim van der Leeuw suggested,  
but I'm just not having a lot of luck. A Django plugin for Eclipse  
would be very helpful. :-)

Todd

On Mar 16, 2006, at 1:20 AM, SmileyChris wrote:

>
> I've been using Eclipse for a Django project and have found it very
> usable with PyDev and an eclipse html editor plugin I forget the name
> of.
> I don't really get the whole argument about it being more "removed  
> from
> code". I can still run and debug code, but I get the added benefit  
> of a
> single workspace (and among other things nice graphical diff support)

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Date format in admin interface

2006-03-16 Thread yuri

Hi Adrian,

yip, I found those and played around with them, but they only change
the display format, i.e. say in the "list objects" view. However, they
don't alter the "create object" view, i.e., the date entry part. For
example, the calendar widget in the admin men is still entering dates
in the US format, even though the settings for the variables you
mention are set to the european format.

cheers
Yuri


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



ChangeManipulator

2006-03-16 Thread PythonistL

Is there a possibility to use ChangeManipulator  for several items
together at one go?
To explain:
for get_list_results( that consists several records) I need to offer a
user a possibility to see the value of each item.

In my template I have
#
 {%for item in get_list _result%}
  

  {{form.item}}


  {%endfor%}

and I need  all input names(input type="text" name="{{ item.id}}"  from
the example above), to receive value - the value that is copied from
the table, as usual when I use ChangeManipulator(objectID) in my view
Is that possible?
Thanks
B.


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Eclipse based Django IDE???

2006-03-16 Thread Jarek Zgoda

> Anyway, this might not be the best place for this thread, but I thought
> I'd throw it out there.  On a tangent, if anyone would care to
> elaborate on their own IDE setup for working with Django, I'd
> appreciate it!
> 
> FYI, I've toyed with SPE, but I'm finding my expertise with Eclipse
> makes me more productive with PyDev.

I use Kate and GVim with WManager plugin at home (not only for Django, but for 
general Python code editing), jEdit with Project Manager plugin at work, both 
being "just editors" with some IDE features. I tried PyDev, Eric3 and SPE, but 
all was too heavy for me.

Cheers
Jarek Zgoda


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---