Changes between Initial Version and Version 1 of IrcFAQ


Ignore:
Timestamp:
Feb 19, 2007, 7:59:08 PM (18 years ago)
Author:
Paul <pb@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IrcFAQ

    v1 v1  
     1This is a work in progress, answering questions that do indeed get asked frequently on the Django IRC channel.
     2
     3----
     4
     5= Python =
     6
     7== How do I learn Python if I'm new to programming? ==
     8
     9http://www.ibiblio.org/obp/thinkCSpy/
     10http://wiki.python.org/moin/BeginnersGuide/NonProgrammers
     11
     12== How do I learn Python if I'm '''not''' new to programming? ==
     13
     14http://docs.python.org/tut/tut.html
     15http://www.diveintopython.org/
     16http://wiki.python.org/moin/BeginnersGuide/Programmers
     17
     18== Are there any books on Python? ==
     19
     20Yes. http://wiki.python.org/moin/PythonBooks
     21
     22----
     23
     24= Django =
     25
     26== Which version should I use, the 0.95 release or the Subversion checkout? ==
     27
     28The 0.95 release is the most well-tested. That said, many people run sites based on a Subversion checkout happily. If you '''do''' use a Subversion checkout, note that you don't need to run {{{setup.py}}} -- just make sure that the checkout is on your Python path.
     29
     30== Should I read the documentation on the djangoproject.com website, or djangobook.com? ==
     31
     32Start with the documentation here. This is especially true if you're using 0.95, since the version that djangobook.com describes has some significant differences.
     33
     34== How do I extend a model? I want to subclass django.contrib.auth.models.User. ==
     35
     36Can't do that right now, sorry. More: http://code.djangoproject.com/wiki/ModelInheritance
     37
     38== If I change my model, will {{{manage.py syncdb}}} update my database table? ==
     39
     40No. Sorry. See the SchemaEvolution page for more.
     41
     42== What should I use for development -- the built-in server, mod_python, FastCGI? ==
     43
     44It's generally best to use the built-in development server. It automatically reloads your Python source files when it detects changes.
     45
     46== What's the difference between {{{null=True}}} and {{{blank=True}}} in models? ==
     47
     48{{{null=True}}} tells Django that the DB schema should allow the storage of nulls in that field. {{{blank=True}}} indicates that the field is optional (e.g. the admin will not complain if you leave it blank).
     49
     50== I think Ajax is awesome! How do I do Ajax with Django? ==
     51
     52Choose your favorite excellent Javascript library and go to it. Django provides serializers to JSON and XML, which you can read about in the documentation: http://www.djangoproject.com/documentation/serialization/
     53
     54Also see this helpful article from James Bennett (with bonus anti-Javascript-helpers rant!): http://www.b-list.org/weblog/2006/07/02/django-and-ajax
     55
     56== What database should I use? ==
     57
     58For development, most people find SQLite to be fastest and simplest to run with. (But make sure the database and its directory are writeable by the owner of the web server process!)
     59
     60== The admin is working, but it can't find the Javascript and CSS and image files. ==
     61
     62You're running the development server, right?  Read this: http://www.djangoproject.com/documentation/static_files/
     63
     64== I'm trying to install Django on Windows and something is weird. ==
     65
     66Have you looked here? http://code.djangoproject.com/wiki/WindowsInstall
     67
     68== What editor is best for Django? ==
     69
     70Vim. No, wait, Emacs. A lot of people seem to like TextMate, too.
     71
     72== Is Django better than Ruby on Rails, Pylons, Turbogears, Zope, or chunky bacon? ==
     73
     74Yes.
Back to Top