Skip to content

Commit

Permalink
Update to 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
pamelafox committed Mar 1, 2023
1 parent 8c0bac9 commit 1409a28
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Expand Up @@ -7,7 +7,7 @@ services:
dockerfile: .devcontainer/Dockerfile
args:
# [Choice] Python version: 3, 3.8, 3.7, 3.6
VARIANT: 3.9
VARIANT: "3.10"
# On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000.
USER_UID: 1000
USER_GID: 1000
Expand Down
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -26,28 +26,28 @@ then it's best to first [create a Python virtual environment](https://docs.pytho
1. Install the requirements:

```shell
pip install -r requirements.txt
python3 -m pip install -r requirements.txt
```

2. Create an `.env` file using `.env.sample` as a guide. Set the value of `DBNAME` to the name of an existing database in your local PostgreSQL instance. Set the values of `DBHOST`, `DBUSER`, and `DBPASS` as appropriate for your local PostgreSQL instance. If you're in the devcontainer, copy the values from `.env.sample.devcontainer`.

3. Run the migrations: (or use VS Code "Run" button and select "Migrate")

```shell
python manage.py migrate
python3 manage.py migrate
```

4. Run the local server: (or use VS Code "Run" button and select "Run server")

```shell
python manage.py runserver
python3 manage.py runserver
```

### Deployment

This repo is set up for deployment on Azure App Service (w/PostGreSQL server) using the configuration files in the `infra` folder.

🎥 Watch me deploy the code in [this screencast](https://www.youtube.com/watch?v=JDlZ4TgPKYc).
🎥 Watch a deployment of the code in [this screencast](https://www.youtube.com/watch?v=JDlZ4TgPKYc).

Steps for deployment:

Expand All @@ -68,7 +68,7 @@ Steps for deployment:
5. If you'd like to access `/admin`, you'll need a Django superuser. Navigate to the Azure Portal for the App Service, select SSH, and run this command:

```shell
python manage.py createsuperuser
python3 manage.py createsuperuser
```

6. When you've made any changes to the app code, you can just run:
Expand Down
2 changes: 1 addition & 1 deletion infra/resources.bicep
Expand Up @@ -92,7 +92,7 @@ resource web 'Microsoft.Web/sites@2022-03-01' = {
serverFarmId: appServicePlan.id
siteConfig: {
alwaysOn: true
linuxFxVersion: 'PYTHON|3.9'
linuxFxVersion: 'PYTHON|3.10'
ftpsState: 'Disabled'
appCommandLine: 'startup.sh'
}
Expand Down

0 comments on commit 1409a28

Please sign in to comment.