Initial database setup with Django

For this example, I am using Sqlite.  Once your Django server is setup, execute the following within your project forlder.

$ python manage.py migrate

You should see similar output in your screen

Screen Shot 2015-11-01 at 9.44.05 AM

At this point, the database is initialized.  Now, you have to create an admin user to administer your database.  Execute the following within your project folder

$ python manage.py createsuperuser

You screen output should look like the following

Screen Shot 2015-11-01 at 9.48.45 AM

 

Initial database setup with Django

Leave a Reply

Your email address will not be published. Required fields are marked *