Update README.md
This commit is contained in:
Родитель
66c5cf8d34
Коммит
7b62ef0955
|
@ -28,6 +28,7 @@ d) django-pymssql
|
|||
2. Git clone this project
|
||||
|
||||
`git clone https://github.com/Azure/azure-sql-database-samples.git`
|
||||
``
|
||||
|
||||
|
||||
3. cd into the django folder
|
||||
|
@ -36,6 +37,7 @@ d) django-pymssql
|
|||
4. Run setup.py
|
||||
|
||||
`python setup.py servername datbasename username password`
|
||||
``
|
||||
|
||||
|
||||
5. Edit settings.py with your database settings. Replace the sqllite settings to this one
|
||||
|
@ -50,16 +52,16 @@ d) django-pymssql
|
|||
'PASSWORD': 'avengersA1',
|
||||
'OPTIONS': {
|
||||
# ...
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
6. Run Django migrations
|
||||
From your project folder where manage.py is located run the following:
|
||||
|
||||
python manage.py migrate
|
||||
python manage.py migrate
|
||||
|
||||
7. Run your django app
|
||||
|
||||
python manage.py runserver
|
||||
python manage.py runserver
|
||||
|
|
Загрузка…
Ссылка в новой задаче