All Posts Create a Post  
1
votes
298
views
Django Standard API Response Middleware for DRF
Posted at 1 week, 2 days ago / Oct. 11, 2020, 8:04 a.m.

As you can see, if you using django-rest-framework, you will found many different response format. This middleware to solve all of these problems with implement the Standard API Response. All …

100 1 1 0
0
votes
135
views
Understanding @user_passes_test Django
Posted at 1 week, 2 days ago / Oct. 11, 2020, 8:04 a.m.

Django decorator has a function to manage the user, once of it is user_passes_test. But, in my implementation i found this problem: ERR_TOO_MANY_REDIRECTS, or ‘AnonymousUser’ object is not iterable. I …

100 1 1 0
0
votes
160
views
How to implement the ForeignKey for multi databases Django
Posted at 1 week, 2 days ago / Oct. 11, 2020, 8:04 a.m.

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 …

100 1 1 0
0
votes
128
views
Implement Realtime Search using Django and Ajax
Posted at 1 week, 2 days ago / Oct. 11, 2020, 8:04 a.m.

Hello guys and welcome back, this night i want to share a simply tutorial how to Implement Realtime Search using Django and Ajax. Lets goo… ^_^ 1. yourapp/models.py from django.db …

100 1 1 0
0
votes
153
views
Django Contact Form Widget
Posted at 1 week, 2 days ago / Oct. 11, 2020, 8:04 a.m.

Django contact widget is once of plugin i already released. This is simple contact widget plugin for Django. inspired from https://github.com/ubernostrum/django-contact-form, but made more simple and easy to use. Demo …

100 1 1 0
0
votes
155
views
Step by step how to use multiple databases with database routers in Django
Posted at 1 week, 2 days ago / Oct. 11, 2020, 8:04 a.m.

1. Please create a new superuser for the second/default/current database. Because you will getting this issue that i already asked before: https://gitter.im/django/django?at=5810b0b5806316005dc11f46 i use multiple site, multiple env, multiple project, …

100 1 1 0
0
votes
124
views
How to implement Django Internationalization
Posted at 1 week, 2 days ago / Oct. 11, 2020, 8:04 a.m.

Django is real fucking awesome, this morning i want to share a basic tutorial how to implement the django internationalization with GeoIP. Of course this tutorial if you need to …

100 1 1 0
0
votes
138
views
Djipsum: Plugin to generate the lorem ipsum (fake content) for django model
Posted at 1 week, 2 days ago / Oct. 11, 2020, 8:04 a.m.

Djipsum Plugin to generate the lorem ipsum (fake content) for django model. Sometimes, I feel bored when i want to create many contents such as fake content in once time. …

100 1 1 0
0
votes
128
views
Djipsum already in new version 1.0.9
Posted at 1 week, 2 days ago / Oct. 11, 2020, 8:04 a.m.

Djipsum already in new version 1.0.9. Djipsum is awesome command plugin to generate fake content for Django. What news? Fixed ManyToManyField (return the random objects from many to many field). …

100 1 1 0
0
votes
130
views
Understanding Google reCAPTCHA in Django
Posted at 1 week, 2 days ago / Oct. 11, 2020, 8:04 a.m.

Understanding Google reCAPTCHA in Django. I found this awesome answer to simply understand how to use API from Google reCAPTCHA. import urllib, urllib2 def recaptcha(request, postdata): rc_challenge = postdata.get('recaptcha_challenge_field', '') …

100 1 1 0
  Page 1 of 9