0
votes
25
views
How to export database mongodb
posted at Aug. 15, 2019, 2:21 p.m. - 1 week, 4 days 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
19
views
django address model
posted at Aug. 12, 2019, 4:34 p.m. - 1 week, 6 days 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
1
votes
42
views
How to Install SSL Certificate on NGINX
posted at July 19, 2019, 4:30 p.m. - 1 month, 1 week 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
43
views
How to fix the XSS injection on Django
posted at July 30, 2019, 3:07 p.m. - 3 weeks, 6 days 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> …

0
votes
31
views
Creating a django logs with mongodb
posted at July 18, 2019, 11:24 a.m. - 1 month, 1 week 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
106
views
Markdown syntax to resize or styling the image
posted at March 3, 2019, 5:42 a.m. - 5 months, 3 weeks ago

This case was issued by muradaliyev88 in django-markdown-editor repository. as answered by rudolfbyker If you are writing MarkDown for PanDoc, you can do this: ![image-alt](drawing.jpg){height=100px} or ![image-alt](drawing.jpg){style="border: 1px solid;height:100px"} result …

1
votes
106
views
Deploy Django at Heroku
posted at March 16, 2019, 8:31 a.m. - 5 months, 1 week ago

1. Install heroku cli https://devcenter.heroku.com/articles/heroku-cli 2. Add Procfile to your project, and add this command below: $ cd yourenv/yourproject/ $ vim Procfile # then, add this command below to the …

server django python project
1
votes
147
views
IDGenerator
posted at March 16, 2019, 8:46 a.m. - 5 months, 1 week 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
0
votes
93
views
How to implement the ForeignKey for multi databases Django
posted at July 12, 2018, 10:13 p.m. - 1 year, 1 month ago

Previously i had confused how to handle this problem, this problem also already asked by someone on stackoverflow (Cross Database foreign key error) and has the best answered by someone …

0
votes
112
views
move multiple files using bash
posted at March 16, 2019, 8:37 a.m. - 5 months, 1 week ago

# This method if the files has no extentions. $ for file in *; do mv "$file" "$file.png"; done # This method if the files has extentions before. $ for …

bash linux