0
votes
9
views
How to create a database view in Django
posted at Sept. 17, 2019, 10:25 a.m. - 1 day, 10 hours ago

A database view is a searchable object in a database that is defined by a query. Though a view doesn’t store data, some refer to a views as “virtual tables,” …

0
votes
10
views
Django ORM Optimization Tips
posted at Sept. 15, 2019, 7:01 a.m. - 3 days, 13 hours ago

When it comes to optimizing an ORM, your greatest weapon is your understanding of how your ORM works under the hood (at least at a high level). This makes understanding …

0
votes
9
views
Uploading files or images to aws s3 with django
posted at Sept. 13, 2019, 9:07 p.m. - 4 days, 23 hours ago

Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of services like Amazon S3 and Amazon …

aws solution module api django
0
votes
16
views
How to handle timezone (localtime) in django
posted at Sept. 12, 2019, 4:44 p.m. - 6 days, 3 hours ago

Previously, this issue I was searched how to fix this for a long time. And finally I found the best solution how to fix the timezone.localtime for django. In fact, …

0
votes
51
views
How to export database mongodb
posted at Aug. 15, 2019, 2:21 p.m. - 1 month ago

To export your mongodb, you can using mongoexport command, but previously you should install the mongodb-clients: sudo apt install mongodb-clients mongoexport is a command-line tool that produces a JSON or …

mongodb bash database
0
votes
34
views
django address model
posted at Aug. 12, 2019, 4:34 p.m. - 1 month, 1 week ago

Django Address Model ‘ ‘ django abstract model that provide the complete address, eg: no, na/rt, ca/rw, village/desa, sub district/kecamatan, district/kabupaten, province, country, postal code, currency code, phone code, etc. …

project app news django
0
votes
62
views
How to fix the XSS injection on Django
posted at July 30, 2019, 3:07 p.m. - 1 month, 2 weeks ago

In django, I think the better way to handle the XSS injection is when you save the object. It is inside your models.py, and using strip_tags If value is "<b>Joel</b> …

1
votes
57
views
How to Install SSL Certificate on NGINX
posted at July 19, 2019, 4:30 p.m. - 2 months ago

How to Install SSL Certificate on NGINX 1. Generate file .key and .csr Don’t miss to set Common Name as *.mydomain.com because we use GlobalSign Wildcard AlphaSSL. $ openssl req …

ssl server linux security
0
votes
51
views
Creating a django logs with mongodb
posted at July 18, 2019, 11:24 a.m. - 2 months ago

Previously, you need to install the mongodb first before using this django mongodb log; This installation is for Ubunntu 16.04 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 echo "deb http://repo.mongodb.org/apt/ubuntu …

1
votes
155
views
IDGenerator
posted at March 16, 2019, 8:46 a.m. - 6 months ago

Generate a unique identifier of a specified fixed length consisting of the characters 0-9 and a-z. For example: zcgst5od 9x2zgn0l qa44sp0z 61vv1nl5 umpprkbt ylg4lmcy dec0lu1t 38mhd8i5 rx00yf0e kc2qdc07 Here is …

tricks python solution