Commit | Line | Data |
---|---|---|
970c90e9 TN |
1 | |
2 | Inspiration http://fxp0.org.ua/2007/jan/31/setup-libpam-mysql-libnss-mysql-bg-django-admin/ | |
3 | ||
4 | Nécessite Django 1.0 | |
5 | ==================== | |
6 | * Ubuntu Hardy : prendre le .deb de Intrepid (http://packages.ubuntu.com/intrepid/python-django) | |
7 | * Debian Etch : python-django dans backports.org | |
8 | * Debian Lenny, Ubuntu Intrepid : aptitude install python-django | |
9 | ||
10 | Mise en place | |
11 | ============= | |
12 | $ cd bases | |
13 | $ ./manage.py syncdb | |
14 | Creating table auth_permission | |
15 | (...) | |
16 | You just installed Django's auth system, which means you don't have any superusers defined. | |
17 | Would you like to create one now? (yes/no): yes | |
18 | Username (Leave blank to use 'thomas'): admin | |
19 | E-mail address: nobody@nowhere.com | |
20 | Password: admin | |
21 | Password (again): admin | |
22 | Superuser created successfully. | |
23 | (...) | |
24 | Installing index for nssauth.User model | |
25 | $ manage.py runserver | |
26 | ||
27 | et aller sur http://localhost:8080/admin/ | |
28 | ||
29 | ||
30 | TODO pour continuer à s'amuser | |
31 | ============================== | |
32 | * customizer un peu l'admin form | |
33 | * faire des vues | |
34 | * prog outils en ligne de commande | |
35 | * quelques formulaires (newform) | |
36 |