Reputation: 26425
Django is a great framework, but after seeing a couple of learning videos I realized those people have great knowledge of the Django framework and libraries, which enable them to use any class very easily.
I just wonder how can one remember all those classes and function in an environment where IDEs are not powerful enough.
What should be the learning process?
Are there any tips or tricks to remember the Django class library?
Any suggestion would be a great help for lots of people like me.
Upvotes: 18
Views: 5180
Reputation: 2686
i recommend you to check out http://djangolinks.com/tag/tutorial/ all learning resource for django
Upvotes: 1
Reputation: 129754
Are there any tips or tricks to remember the Django class library?
django.http
; you want context containers - that's template-related, so it's probably somewhere in django.template
).That's how I'm doing it, and it works pretty well.
Upvotes: 16
Reputation: 32394
Further to this answers, don't be afraid to look at django's sources when you're stuck. It's very well written and you can get tons of examples out of tests.
Upvotes: 1
Reputation: 24956
Make a "cheat sheet" page. For the various components of Django where you'll be writing code (e.g., urls, views, models), capture the common imports you'll need (which you can gather from examples or reading other code), and add some short examples or links to the django docs. As you're writing code, you can copy/paste the imports from your reference page.
That's how I remember useful stuff like
from django.shortcuts import get_object_or_404
from django.shortcuts import render_to_response
The biggest hurdle for me is remembering the imports.
You can find cheat sheets if you Google around. But making your own can give you exactly what you need, and the act of typing it up will help you remember useful bits.
Upvotes: 4
Reputation: 11559
Have you considered web2py? Although Django, TurboGears, web2py are all good frameworks, I found the latter quite simple and flexible. You can see a comparison here (don't worry about this document being on their website, it's quite honest).
To answer your question, there are a couple of free IDE's you can use and that will help you find your way:
Komodo is good too, but not free, and not open like Eclipse is.
You will find all the IDE's in another question here.
Upvotes: 5
Reputation: 9811
Just try create smth... like blog (I know it is obvious), building this simple example you will know ManyToMany relation (post's tag), foreign key(user and his comments) and much more. If you will need help you could always google for answer or just ask on SO ;)
PS I am new in dJango too, so I know what i am talking ;)
Upvotes: 1
Reputation: 36832
You should start reading the Django Book.
When you have a problem you want to solve (an itch to scratch), you will try to learn, and that knowledge will be in your head forever. Next time you have a problem, you'll at least know where to look.
You can set up Eclipse with PyDev to get autocompletion. Also, remember to install the Django Docs, so you have the documentation right in the admin.
Upvotes: 2