Install Django
Create a new Django project
myproject
directory.Create a new app
myproject
directory.If all went well, the myproject
directory should now have the following structure:Setting up Nile Database
myproject/settings.py
file to include the Nile database URL:Run the migrations built-in migrations
Create a new model
myapp/models.py
, create a new model:myproject/settings.py
to include your app:Create a new migration
myapp/migrations
directory.Run the migration
myapp_mymodel
.