Create a new app
myproject directory.If all went well, the myproject directory should now have the following structure:Setting up Nile Database
Edit the You can find your database credentials in the Nile dashboard.
myproject/settings.py file to include the Nile database URL:Run the migrations built-in migrations
Django has several default modules that need database tables created. To create these tables, run the following command:This will create the tables in the database.
Create a new model
In And update the installed apps in
myapp/models.py, create a new model:myproject/settings.py to include your app:Create a new migration
To create a new migration, run the following command:This will create a new migration file in the
myapp/migrations directory.