Recently want to learn Python Django, according to the online God's instructions, try to do a bit, here to record, make a note.
Reference http://www.cnblogs.com/linjiqin/p/3595891.html
Note the point:
1. Local Environment
Eclipse Luna Service Release 2 (4.4.2), Django 1.9, Pydev 4.4, DB SQLite
2. When you create a table,
Because the Django used is 1.9. When synchronizing the database,
Project right--Django-> Make Migrations
Project right--Django->migrate
3. When creating Superuser for admin.
directly in the console.
CMD into the engineering catalog.
C:\pyworkspace\djangopj>python manage.py Createsuper
User
Username (leave blank to use ' xxx '): Peterx
Email address: [Email protected]
Password:
Password (again):
Superuser created successfully.
The others are written in the same way as the reference, and no problem runs smoothly.
Use python+django1.9 to develop Web sites in an Eclipse environment