2022-12-30 00:25:56 +01:00
|
|
|
# Suitable Phones
|
|
|
|
|
|
|
|
|
2023-01-04 14:27:06 +01:00
|
|
|
## Installation
|
2022-12-30 00:25:56 +01:00
|
|
|
|
|
|
|
```
|
2023-01-04 14:27:06 +01:00
|
|
|
git clone https://git.lattuga.net/d0c/suitablephones.git
|
|
|
|
virtualenv .
|
2023-01-04 17:33:13 +01:00
|
|
|
source bin/activate
|
|
|
|
pip install -r requirements.txt
|
|
|
|
python manage.py migrate
|
|
|
|
python manage.py createsuperuser
|
2022-12-30 00:25:56 +01:00
|
|
|
```
|
2023-01-04 17:33:13 +01:00
|
|
|
|
2022-12-30 00:25:56 +01:00
|
|
|
|
2023-01-04 14:27:06 +01:00
|
|
|
Download Lineage official wiki as data source.
|
2023-01-04 17:33:13 +01:00
|
|
|
Yaml files descripting all devices are in _"lineage_wiki/_data/devices/"_
|
2022-12-30 00:25:56 +01:00
|
|
|
|
2023-01-04 14:27:06 +01:00
|
|
|
```
|
|
|
|
git clone https://github.com/LineageOS/lineage_wiki.git
|
|
|
|
```
|
2023-01-03 11:28:00 +01:00
|
|
|
|
2023-01-04 14:27:06 +01:00
|
|
|
Set _LINEAGEWIKI_ variable in _mysuitablephone/settings.py_ with the proper path of lineage_wiki.
|
2023-01-03 11:28:00 +01:00
|
|
|
|
2023-01-04 14:27:06 +01:00
|
|
|
es.
|
|
|
|
```
|
|
|
|
LINEAGEWIKI = '/home/d0c/lineage_wiki'
|
2023-01-03 12:35:43 +01:00
|
|
|
```
|
2023-01-04 17:33:13 +01:00
|
|
|
|
|
|
|
Populate database:
|
|
|
|
```
|
|
|
|
python manage.py fetchphones
|
|
|
|
```
|
|
|
|
|
|
|
|
Run
|
|
|
|
|
|
|
|
```
|
|
|
|
python manage.py runserver
|
2023-01-12 18:31:23 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
### ToDo
|
|
|
|
|
|
|
|
- [] add .env
|