Re: How well should I know Python before using Django?

2007-05-10 Thread Bryan Veloso

> To use Django, a developer should have an  exceptionally strong
> knowledge of the following area(s) of Python: __
>
> dictionaries

Amen. Those things still baffle me a bit. Other than that, I'd say #1.


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: How well should I know Python before using Django?

2007-05-09 Thread Kenneth Gonsalves


On 10-May-07, at 2:37 AM, walterbyrd wrote:

> Before attempting to use Django, a person should have a Python
> programming skill level of:

none - but he would be advised to do the python tutorial side by side  
with the django tutorial
>
> 1) beginner
> 2) intermediate
> 3) expert
>
> To use Django, a developer should have an  exceptionally strong
> knowledge of the following area(s) of Python: __

dictionaries

-- 

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.
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?hl=en
-~--~~~~--~~--~--~---



Re: How well should I know Python before using Django?

2007-05-09 Thread James Bennett

On 5/9/07, walterbyrd <[EMAIL PROTECTED]> wrote:
> Thanks to all who replied. BTW: I have programmed professionally in
> about a dozen different languages, and  have a degree in math with a
> concentration in comp sci. But, I'm new to Python. I've been reading
> up, and writing a few simple programs, but I'm still a beginner.

The core Python language is fairly small, and a weekend spent with a
good tutorial can teach you everything you'll need for daily tasks;
similarly, the parts of Django you'll use most often can be picked up
pretty quickly and without much more than basic Python knowledge.

As you go forward, developing a good working knowledge of Python's
standard library and some of the web-oriented third-party modules
(particularly things like BeautifulSoup[1], feedparser[2] and
httplib2[3], and dateutil[4] even though it's not really directed at
the "web") will pay big dividends, as will exploration of some of
Python's more advanced features (understanding how Django model
classes work internally, for example, isn't necessary for working with
Django, but if you ever want to extend the system you'll need to dig
into metaprogramming and desriptors).

Probably the best introduction to Python for those who already have
some programming experience is Mark Pilgrim's "Dive Into Python"[5];
it goes pretty quickly and the examples move from Python basics to
useful advanced topics.

[1] http://www.crummy.com/software/BeautifulSoup/
[2] http://feedparser.org/
[3] http://bitworking.org/projects/httplib2/
[4] http://labix.org/python-dateutil
[5] http://diveintopython.org/toc/index.html

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: How well should I know Python before using Django?

2007-05-09 Thread Aldarion

http://ipython.scipy.org/
An enhanced Python shell designed for efficient interactive work.
walterbyrd wrote:
> I'm sorry, what is iPython?
>
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: How well should I know Python before using Django?

2007-05-09 Thread walterbyrd

Thanks to all who replied. BTW: I have programmed professionally in
about a dozen different languages, and  have a degree in math with a
concentration in comp sci. But, I'm new to Python. I've been reading
up, and writing a few simple programs, but I'm still a beginner.

> iPython.  First thing after django you should install.  Specifically
> the dir and vars functions which let you inspect objects
> interactively, and even write/test code snippets before putting them
> in your project.

I'm sorry, what is iPython?



--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: How well should I know Python before using Django?

2007-05-09 Thread dballanc

As someone who jumped in as new to python, and  django both.  I'd say
you won't have much trouble, if you're comfortable with another
language.  You can start out knowing nothing about it, but you'll need
some basics pretty quickly.  Things about Python that I wish I'd
focused on before starting with django...

Lists, and List comprehensions.  [(m.id,m.name) for m in Model] for
example

None,[],{},'',False, and NULL.  Little things, but hard to track down
if you misuse.

Reference.  Everything is by reference, so when modifying variables
keep that in mind. or it can hurt.

Dictionaries.  .copy() and .deepcopy().  Everything is by reference!
** in front of a dict can expand it so you can use a dict to generate
function
keyword arguments: fuction(a=1,b=2,c=3) is the same as dict={'a':1,'b':
2,'c':3} and then function(**dict).  This is really handy.  Keys are
any immutable object, so you can even do things like use a class
definition or a function as a key.
dict.get('name',value_if_not_present).

When things get evaluated. Most things get evaluated when the module
is loaded, not on every view.  So if you are doing dynamic choices for
example it takes a little different approach since defining them in
the class definition will only evaluate them once when the class is
first interpreted, not each time an instance is created.

class __init__(*args,**kwargs), and super().  You'll need them. args
is a tuple of non-keyword, kwargs is a dict.  Any changes you want
done to a class, but on a per-instance basis are done here.  Like
specifying dynamic choices.

iPython.  First thing after django you should install.  Specifically
the dir and vars functions which let you inspect objects
interactively, and even write/test code snippets before putting them
in your project.

Django code.  Don't be afraid of it, it's well commented and not
nearly as complicated as you might expect.  It really helped me to
look at the newforms library, looking up pythonisms that I didn't
understand.

tuples: ('value') is not the same as ('value',).  Always toss in that
trailing comma.


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: How well should I know Python before using Django?

2007-05-09 Thread Nic James Ferrier

"Greg Donald" <[EMAIL PROTECTED]> writes:

>> 1) beginner
>> 2) intermediate
>> 3) expert
>
> 0) None
>
> But what about experience in other programming languages?  If you
> currently know zero programming languages, learning any new
> programming language or framework will require some significant
> effort.  IMO Python is an excellent first language.

I'd go along with that... actually when you're writing a Django app
you don't need to know much of anything except Django. It's pretty
declarative.


-- 
Nic Ferrier
http://www.tapsellferrier.co.uk   

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: How well should I know Python before using Django?

2007-05-09 Thread Greg Donald

On 5/9/07, walterbyrd <[EMAIL PROTECTED]> wrote:
> Before attempting to use Django, a person should have a Python
> programming skill level of:
>
> 1) beginner
> 2) intermediate
> 3) expert

0) None

But what about experience in other programming languages?  If you
currently know zero programming languages, learning any new
programming language or framework will require some significant
effort.  IMO Python is an excellent first language.

> To use Django, a developer should have an  exceptionally strong
> knowledge of the following area(s) of Python: __

Debugging.  When you get stuck, and you will get stuck, you need to
know best way to get unstuck.  Being able to interrogate your
environment is debugging skill #1.


-- 
Greg Donald
http://destiney.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?hl=en
-~--~~~~--~~--~--~---



Re: How well should I know Python before using Django?

2007-05-09 Thread John DeRosa

(1) If you're making a simple web site.  (2) If you're making a site 
with a non-trivial use of authentication, session variables, complicated 
db lookups; or uses complicated algorithms under the hood.

$.02,

John

walterbyrd wrote:
> Before attempting to use Django, a person should have a Python
> programming skill level of:
> 
> 1) beginner
> 2) intermediate
> 3) expert
> 
> To use Django, a developer should have an  exceptionally strong
> knowledge of the following area(s) of Python: __
> 
> 
> > 
> 
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How well should I know Python before using Django?

2007-05-09 Thread [EMAIL PROTECTED]

I was (and really still am) an utter newb to python.

Then again, I think I've proven that more than I'd like.

On May 9, 4:08 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote:
> Beginner, at least in my opinion. YMMV.
>
> On 5/9/07, walterbyrd <[EMAIL PROTECTED]> wrote:
>
> > Before attempting to use Django, a person should have a Python
> > programming skill level of:
>
> > 1) beginner
> > 2) intermediate
> > 3) expert
>
> > To use Django, a developer should have an  exceptionally strong
> > knowledge of the following area(s) of Python: __


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How well should I know Python before using Django?

2007-05-09 Thread Joseph Heck

Beginner, at least in my opinion. YMMV.

On 5/9/07, walterbyrd <[EMAIL PROTECTED]> wrote:
> Before attempting to use Django, a person should have a Python
> programming skill level of:
>
> 1) beginner
> 2) intermediate
> 3) expert
>
> To use Django, a developer should have an  exceptionally strong
> knowledge of the following area(s) of Python: __
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



How well should I know Python before using Django?

2007-05-09 Thread walterbyrd

Before attempting to use Django, a person should have a Python
programming skill level of:

1) beginner
2) intermediate
3) expert

To use Django, a developer should have an  exceptionally strong
knowledge of the following area(s) of Python: __


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---