Skip to content

Commit c6766a6

Browse files
committed
enh: a few edits to readme instructions
Added instructions for resetting the database before development.
1 parent 74da419 commit c6766a6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# pyopensci-django
22

33
A repository to migrate the pyOpenSci Jekyll site to Django with Wagtail CMS.
4-
I am making a pull request demo.
54

65
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
76
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
@@ -31,6 +30,13 @@ uv sync
3130
npm install
3231
```
3332

33+
If you are running a development server locally and you have set things up previously, you may want to delete your existing
34+
database and start from scratch. To do this, delete the `db.sqlite3` file in the project root:
35+
36+
```bash
37+
rm db.sqlite3
38+
```
39+
3440
### 2. Build CSS and Set Up Database
3541

3642
```bash
@@ -68,7 +74,7 @@ uv run python manage.py create_dummy_posts --delete
6874
```
6975

7076
This command creates:
71-
- Blog posts distributed across multiple years (for testing year filters)
77+
- Blog posts distributed across multiple years (for testing the drop down, year filters)
7278
- Events with both past and upcoming dates
7379
- Random tags, authors, and excerpts
7480
- All posts are automatically published and visible

0 commit comments

Comments
 (0)