-
Create folder for your project.
-
Create virtual environment: "python -m venv venv".
-
Activate virtual environment: ".\venv\Script\activate(using cmd or any other cli).
-
Install Django "pip install django".
-
"pip list" to see if packages have been installed.
-
make sure your python is in path of your system otherwise nothing will work and we are creating the virtual environment in case dependencies are only installed in the v-env not in the entire system itself.
-
"django-admin startproject crm" to create your backend.
-
Now above command will create a django app(manage.py file) in crm folder.
-
In our root directory CRM there is now two folders one id venv and other I made is crm and in that we have two files one is manage.py and when you run this file with command "python manage.py" remeber run in this command in the CRM/crm directory.
-
This command will make db.sqlite3 file.
-
"django-admin startapp webapp" to create webapp.
-
"python manage.py migrate" migrate to your environment.
-
"python manage.py createsuperuser" after than follow the instructions in terminal.p
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|