IMPORTANT: Backup your nginx site configs (usually under /etc/nginx/sites-available)!
Remove old nginx incl. nginx-common:
apt-get autoremove --purge nginx nginx-common| from django.http import HttpResponse | |
| PIXEL_GIF_DATA = """ | |
| R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7 | |
| """.strip().decode('base64') | |
| def pixel_gif(request): | |
| return HttpResponse(PIXEL_GIF_DATA, content_type='image/gif') |
| #!/usr/bin/env python3 | |
| # | |
| # This is a simple script to encrypt a message using AES | |
| # with CBC mode in Python 3. | |
| # Before running it, you must install pycryptodome: | |
| # | |
| # $ python -m pip install PyCryptodome | |
| # | |
| # Author.: José Lopes | |
| # Date...: 2019-06-14 |
Hopefully this will answer "How do I setup or start a Django project using REST Framework and ReactJS?"
This is a guide to show you step by step how this can be setup. If you just want to get started, use the cookiecuter I set up cookiecutter-django-reactjs. It basically is a fork of pydanny's cookiecutter, just added the front-end stuff :).
I created this because it was SUCH a pain in the ass setting up a project using all the latest technologies. After some research, I figured it out and have it working. The repo that implements this is located here. Feel free to use it as a boilerplate ;)
Main features:
| SELECT table, | |
| formatReadableSize(sum(bytes)) as size, | |
| min(min_date) as min_date, | |
| max(max_date) as max_date | |
| FROM system.parts | |
| WHERE active | |
| GROUP BY table |