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