Skip to content

Commit

Permalink
Add README and default debug setting
Browse files Browse the repository at this point in the history
  • Loading branch information
wil93 committed Nov 10, 2023
1 parent 82251bf commit 1f17a9f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# ITACPC teams registration

Ensure that:

1. you have Python 3.11 installed.
2. you have [pipenv](https://docs.pipenv.org/en/latest/) installed.

Then you can proceed.

## Project setup

You need to do this only the first time:

### Install dependencies

```
pipenv install
```

### Initialize the DB

```
python3 manage.py migrate
python3 manage.py loaddata universities
python3 manage.py createsuperuser
```

## Running the project

You need to do this everytime:

### Access your virtual shell

```
pipenv shell
```

### Run the development app

```
python3 manage.py runserver
```
2 changes: 1 addition & 1 deletion itacpc/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
BASE_DIR = Path(__file__).resolve().parent.parent

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = eval(os.getenv("DEBUG"))
DEBUG = eval(os.getenv("DEBUG", default="True"))

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
Expand Down

0 comments on commit 1f17a9f

Please sign in to comment.