Changes between Version 20 and Version 21 of IrcFAQ


Ignore:
Timestamp:
Feb 28, 2007, 2:37:41 PM (18 years ago)
Author:
Paul Bx <pb@…>
Comment:

created nicer named anchors

Legend:

Unmodified
Added
Removed
Modified
  • IrcFAQ

    v20 v21  
    55= Python questions =
    66
    7 == How do I learn Python if I'm new to programming? ==
     7== How do I learn Python if I'm new to programming? == #LearnPython1
    88
    99 * http://www.ibiblio.org/obp/thinkCSpy/
    1010 * http://wiki.python.org/moin/BeginnersGuide/NonProgrammers
    1111
    12 == How do I learn Python if I'm '''not''' new to programming? ==
     12== How do I learn Python if I'm '''not''' new to programming? == #LearnPython2
    1313
    1414 * http://docs.python.org/tut/tut.html
     
    1616 * http://wiki.python.org/moin/BeginnersGuide/Programmers
    1717
    18 == Are there any books on Python? ==
     18== Are there any books on Python? == #PythonBooks
    1919
    2020Yes. http://wiki.python.org/moin/PythonBooks
     
    2222= Django questions =
    2323
    24 == Which version should I use, the 0.95.1 release or the Subversion checkout? ==
     24== Which version should I use, the 0.95.1 release or the Subversion checkout? == #WhichVersion
    2525
    2626The 0.95.1 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.
    2727
    28 == Should I read the documentation on the djangoproject.com website, or djangobook.com? ==
     28== Should I read the documentation on the djangoproject.com website, or djangobook.com? == #WhichDocs
    2929
    3030Start with the [http://www.djangoproject.com/documentation/ documentation] here. This is especially true if you're using 0.95.1, since the version that djangobook.com describes has some significant differences.
    3131
    32 == What does `'function' object has no attribute 'rindex'` mean? ==
     32== What does `'function' object has no attribute 'rindex'` mean? == #WeirdError1
    3333
    3434This error is a telltale sign that you're trying to follow djangobook.com with a version of Django that's too old. See previous question.
    3535
    36 == How do I extend a model? I want to subclass django.contrib.auth.models.User. ==
     36== How do I extend a model? I want to subclass django.contrib.auth.models.User. == #ModelSubclassing
    3737
    3838You can't do this at the moment, but model subclassing is being worked on. Also, see here. http://www.b-list.org/weblog/2007/02/20/about-model-subclassing
    3939
    40 == If I change my model, will {{{manage.py syncdb}}} update my database table? ==
     40== If I change my model, will {{{manage.py syncdb}}} update my database table? == #ModelChanges
    4141
    4242No, you'll need to manually change your database table. If you use `manage.py sqlall` on your app to produce a SQL file before editing your models, you can run it again afterwards and use the difference between the two to see what you need to change in the database.
    4343
    44 == What should I use for development -- the built-in server, mod_python, FastCGI? ==
     44== What should I use for development -- the built-in server, mod_python, FastCGI? == #WhichServer
    4545
    4646It's generally easiest to use the built-in development server, since it automatically reloads your Python source files when it detects changes. (Some prefer to replicate the production environment as closely as possible, meaning that if their deployed project uses mod_python then their development server does as well.)
    4747
    48 == What's the difference between {{{null=True}}} and {{{blank=True}}} in models? ==
     48== What's the difference between {{{null=True}}} and {{{blank=True}}} in models? == #NullVsBlank
    4949
    5050`null=True` means that the database will accept a `NULL` value for that field; `blank=True` means that Django's validation system won't complain about a missing value. If you use `blank=True` but ''not'' `null=True` you will need to have your code fill in a value before storage in the database -- specifying a default on a field, or putting something in the model's `save` method to generate a value are two good ways to handle this, and can be extremely useful when you want to calculate one field's value based on others.
    5151
    52 == I think Ajax is awesome! How do I do Ajax with Django? ==
     52== I think Ajax is awesome! How do I do Ajax with Django? == #Ajax
    5353
    5454Choose 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/
     
    5656Also 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
    5757
    58 == Is there a free CMS available for Django? ==
     58== Is there a free CMS available for Django? == #CMS
    5959
    6060At this point there is nothing well-established (like Plone, for instance). In practice, people mean so many different things by "CMS" that it may be hard to get a straight answer. This question is often asked by newcomers; one recommendation is to learn a bit of Django and see just how easy it is to make a site that does what you want. If you're in a big rush, there's always Ellington:  http://www.ellingtoncms.com/
    6161
    62 == What database should I use? ==
     62== What database should I use? == #WhichDB
    6363
    6464For 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!)
    6565
    66 == The admin is working, but it can't find the Javascript and CSS and image files. ==
     66== The admin is working, but it can't find the Javascript and CSS and image files. == #AdminFiles
    6767
    6868You're running the development server, right?  Read this: http://www.djangoproject.com/documentation/static_files/
    6969
    70 == I'm trying to install Django on Windows and something is weird. ==
     70== I'm trying to install Django on Windows and something is weird. == #Windows
    7171
    7272Have you looked here? http://code.djangoproject.com/wiki/WindowsInstall
    7373
    74 == What editor is best for Django? ==
     74== What editor is best for Django? == #WhichEditor
    7575
    7676[wiki:UsingVimWithDjango Vim]. No, wait, [wiki:Emacs Emacs]. A lot of people seem to like TextMate, too.
    7777
    78 == When will the next release be out? -or- When will X branch be done? ==
     78== When will the next release be out? -or- When will X branch be done? == #AreWeThereYet
    7979
    8080"When it's done" is the short answer. Fixed release dates are rarely set, but searching or browsing the developer list (http://groups.google.com/group/django-developers/) can be informative.
Back to Top