kopia lustrzana https://github.com/ahmetkotan/restpi
cleaned small bugs
rodzic
71b7879e98
commit
a0e48a4b6c
10
install.sh
10
install.sh
|
@ -1,6 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
if [ -z $VIRTUAL_ENV ];
|
||||
then
|
||||
sudo pip install --upgrade pip
|
||||
sudo pip install -r requirements.txt
|
||||
else
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
fi;
|
||||
python manage.py migrate
|
||||
echo "yes" | python manage.py collectstatic
|
||||
python manage.py createsuperuser
|
|
@ -28,7 +28,7 @@
|
|||
}
|
||||
],
|
||||
"request": {
|
||||
"url": "http://192.168.1.29:8001/tokens/",
|
||||
"url": "{{raspi_url}}/tokens/",
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
|
@ -67,7 +67,7 @@
|
|||
}
|
||||
],
|
||||
"request": {
|
||||
"url": "http://192.168.1.29:8001/pins/api/11",
|
||||
"url": "{{raspi_url}}/pins/api/11",
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
|
@ -111,7 +111,7 @@
|
|||
}
|
||||
],
|
||||
"request": {
|
||||
"url": "http://192.168.1.29:8001/pins/api/11",
|
||||
"url": "{{raspi_url}}/pins/api/11",
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Django==1.11.18
|
||||
djangorestframework==3.9.1
|
||||
pytz==2018.9
|
||||
tokenauth==0.9.1
|
||||
django-cors-headers==2.4.0
|
||||
RPi.GPIO==0.6.5
|
||||
Django>=1.11.6
|
||||
djangorestframework
|
||||
pytz>=2018.9
|
||||
tokenauth>=0.9.1
|
||||
django-cors-headers
|
||||
RPi.GPIO>=0.6.5
|
|
@ -1,5 +1,5 @@
|
|||
{% extends 'base.html' %}
|
||||
{% block title %}Login{% endblock %}
|
||||
{% block title %}Homepage{% endblock %}
|
||||
|
||||
{% block mainarea %}
|
||||
<main class="main-bar">
|
||||
|
@ -16,7 +16,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
{% endblock %}
|
Ładowanie…
Reference in New Issue