mirror of
https://github.com/Sosokker/Inventory-Management-System.git
synced 2025-12-19 15:34:04 +01:00
Add fixtures
This commit is contained in:
parent
d2a924a7ea
commit
04130994c8
25
README.md
25
README.md
@ -122,9 +122,10 @@ Generate` Secret key` from [Djecrety](https://djecrety.ir/)
|
|||||||
|
|
||||||
**Don't forget to change `your_secret_key` to your secret key (without quote)**
|
**Don't forget to change `your_secret_key` to your secret key (without quote)**
|
||||||
|
|
||||||
2. Migrate database then runserver
|
2. Migrate database, load fixture, and then runserver
|
||||||
```bash
|
```bash
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
|
python manage.py loaddata fixtures/data.json
|
||||||
python manage.py runserver
|
python manage.py runserver
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -135,6 +136,28 @@ or you can change port by
|
|||||||
python manage.py runserver <PORT>
|
python manage.py runserver <PORT>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## For Testing
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Username</th>
|
||||||
|
<th>Password</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>sirin</td>
|
||||||
|
<td>helloworld123</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
Or you can create new super user by
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python manage.py createsuperuser
|
||||||
|
```
|
||||||
|
|
||||||
## Resource
|
## Resource
|
||||||
|
|
||||||
|
|||||||
1680
fixtures/data.json
Normal file
1680
fixtures/data.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user