Django begins part 4

Since Python3 & Django & MySQL could be linked, I will try DB migration.

Development environment

PC: MacOS X 10.9.4 Python3.4.1 Django1.7

Start the server

$ python3 manage.py runserver

When I start the server, the Django screen is now displayed. http://localhost:8000/

スクリーンショット 2014-10-07 21.05.50.png

DB migration with Django

When you migrate, the tables you need for your Django admin will be created.

$ python3 manage.py migrate

Display of management screen

http://localhost:8000/admin

スクリーンショット 2014-10-07 20.55.26.png

However, I can't log in because I haven't created a user. Therefore, create a super user.

Create superuser

$ python3 manage.py createsuperuser

スクリーンショット 2014-10-07 20.26.33.png

When I log in as a super user and look inside the DB, the user is created properly.

スクリーンショット 2014-10-07 20.55.06.png

Recommended Posts

Django begins part 1
Django begins part 4
Django starting from scratch (part: 2)
Django starting from scratch (part: 1)
Django
Test Driven Development with Django Part 3
Test Driven Development with Django Part 4
Test Driven Development with Django Part 6
Test Driven Development with Django Part 2
Test Driven Development with Django Part 1
Test Driven Development with Django Part 5
How to authenticate with Django Part 2
How to authenticate with Django Part 3
datetime part 1
django update
Django note 4
Tkinter begins
django search
numpy part 1
Django installation
Jupyter begins
Django Summary
Django test
Poetry begins
argparse part 1
[Django] Error encountered when deploying heroku Part 2
Deploy the Django app on Heroku [Part 2]
PyCharm begins
Deploy the Django app on Heroku [Part 1]
Django # 2 (template)
Django Note 5
[Django] Trouble encountered when deploying heroku Part 1
Django hands-on
Touch django
django notes
Django Summary
Django basics
Django Shoho
Django defaults
Django + Docker
Django Glossary
Django search
Install Django
numpy part 2
Django: References
Django Note 1
Django note 3
Django note 2
Django startup
Django notes
Django NullCharField
Make Django's environment Docker (Docker + Django + Gunicorn + nginx) Part 2
Django Getting Started Part 2 with eclipse Plugin (PyDev)
Django Getting Started Part 3 about Python3 & MySQL Connector
Make Django's environment Docker (Docker + Django + Gunicorn + nginx) Part 3