PythonDjango

Wiki.PythonDjango History

Hide minor edits - Show changes to output

Changed line 1 from:
!! Nveau projet/app
to:
!! Nouveau projet/app
Deleted line 0:
Changed line 28 from:
Pour pousser la conf: [@
to:
Pour pousser la conf dans MySQL: [@
Added line 2:
!! Nveau projet/app
Changed lines 4-5 from:
django-admin.py startproject mysite@]
to:
django-admin.py startproject mysite
cd mysite/@]
Changed lines 14-15 from:

to:
Full doc: https://docs.djangoproject.com/en/1.7/ref/django-admin/

!! Dev
On y va !

!!! Modification du modèle
Après chaque modification du modèle, il faut faire le diff:[@
python manage.py makemigrations polls@]

Le diff apparait dans:[@
polls/migrations/0001_initial.py@]

Pour afficher le dernier diff:[@
python manage.py sqlmigrate polls 0001@]

Pour pousser la conf: [@
python manage.py migrate@]
Added lines 1-14:

Créer un nouveau projet:[@
django-admin.py startproject mysite@]

Créer une nouvelle app (dans un projet en général):[@
python manage.py startapp polls@]

Lancer le serveur web de développement:[@
python manage.py runserver
python manage.py runserver 0.0.0.0:8000@]



Page last modified on January 19, 2015, at 12:45 AM EST