[Django] Starting a project
For Windows:
1. Starting up a new project
Inside the project directory(folder),
2. Try running the project
After cd-ing into the myproject folder, run the local server.
3. Database Setting (Migrations)
Django’s default database is SQLite. Migrations are Django’s method of making changes made to the models into the database.
‘makemigrations’ command creates the migrations (generates the SQL commands)
‘migrate’ command applies igrations. (executes the SQL commands)
4. Create Superuser (admin)
5. Create an app
If you want to add a functionality to your website, an app does it.
In settings.py - INSTALLED_APPS, add the new app’s name.
Leave a comment