This entry aims to collect all the helpful command that I always forget, but are essential to build a django project from scratch.
We’ll assume that you have Django installed already and you have strong knowledge of python. More concretely
The information showed here has been taken from the official Django webpage
1 create the site
2 Run the server
3 Create an app
4 Collect static
5 Data base operations
run the server
create an app
The first time that I created any static file in my project, I thought that it was enough. I was wrong, you have to run the following script to move either the new and modified static files to the path defined in your config file.
I always forget what are the scripts to migrate any change in database.
- Make migration
- Migrate from specified point number
- Check for any problem in your project
- Migrate all changes executing the SQL sentences