Posts under tag: "Project"

Automatic asset versioning in Django

By: summonagus ● at Sept. 6, 2017, 7:36 p.m. ● Posted under: #Tricks, #Django, #Project, #Solution, #Performance

Following on from Ed's "Automatic versioning of CSS, JavaScript and Images" here is a method to version filenames based on modification times to be used in Django as a template tag.This is really handy technique for when you set expires headers to a long way into the future. With headers ...

Read More →

Deploying Django Project at Pythonanywhere

By: summonagus ● at July 21, 2017, 6:46 p.m. ● Posted under: #APP, #Django, #News, #Project

PythonAnywhere is an online Integrated Development Environment (IDE) and Web hosting service based on the Python programming language. It provides in-browser access to server-based Python and Bash Command-line interfaces, along with a code editor with Syntax highlighting. Program files can be transferred to and from the service using the user's ...

Read More →

DracEditor - Django Markdown Editor built for Dracos Linux

By: summonagus ● at Jan. 1, 2017, 9:18 p.m. ● Posted under: #Module, #APP, #Django, #Project

DracEditor - Django Markdown Editor built for Dracos Linux. Few days ago i created package django markdown editor. I created this plugin specially to handle the new forum of Dracos Linux. Demo Video: https://youtu.be/DZCZD7Y8P0YFeatures Integrated with Ace Editor Integrated with Semantic-UI Live Preview Upload Image to imgur.com (via API) Emoji ...

Read More →

Top 10 Python libraries of 2016

By: summonagus ● at Dec. 24, 2016, 10:31 a.m. ● Posted under: #Module, #News, #Project

Last year, we did a recap with what we thought were the best Python libraries of 2015, which was widely shared within the Python community (see post inr/Python). A year has gone by, and again it is time to give due credit for the awesome work that has been done ...

Read More →

How to implement Django Internationalization

By: summonagus ● at Nov. 17, 2016, 8:27 p.m. ● Posted under: #Tricks, #Database, #Settings, #Module, #Django, #Project, #Solution, #Internationalization, #Multi Languages

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 make a site with multiple languages. Default django already integrated with common / modern translation system. as the docs warning ...

Read More →

Django Contact Form Widget

By: summonagus ● at Nov. 3, 2016, 2:42 p.m. ● Posted under: #APP, #Django, #Project, #Ajax

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. Demohttps://github.com/agusmakmun/django-contact-widget/tree/master/contact_widget_demoInstallDjango Contact Widget is available directly from PyPI: $ pip install django-contact-widget *). And don't forget to add "contact_widget" to your ...

Read More →

Step by step how to use multiple databases with database routers in Django

By: summonagus ● at Oct. 26, 2016, 11:29 p.m. ● Posted under: #Tricks, #Problem, #Database, #Settings, #APP, #Django, #Project, #Solution, #SSO, #Multi Databases

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, multiple database. and found this error message if use DATABASE_ROUTERS. insert or update on table "django_admin_log" violates foreign key constraint ...

Read More →

How to implement the ForeignKey for multi databases Django

By: summonagus ● at Oct. 23, 2016, 6:12 a.m. ● Posted under: #Tricks, #Problem, #Database, #APP, #Django, #Project, #Solution, #SSO, #Multi Databases, #Ajax

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 http://stackoverflow.com/a/23273703/6396981 with quote: If you have used a router to partition models to different databases, any foreign key and many-to-many ...

Read More →

Djipsum: Plugin to generate the lorem ipsum (fake content) for django model

By: summonagus ● at Oct. 11, 2016, 4:51 p.m. ● Posted under: #Module, #APP, #Django, #News, #Project, #Solution

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. and thid Djipsum specially maded to solved it. This plugin is made using management.commands from django. InstallDjipsum is available directly ...

Read More →

Django Blog Python Learning released v.3.6 with feature autobackup

By: summonagus ● at Oct. 4, 2016, 9:28 a.m. ● Posted under: #Problem, #Database, #APP, #Django, #News, #Project

Previously, the Django already has a method to backup the database to the json file with quick command: $ ./manage.py dumpdata --format=json > outfile.json Yup, with dumpdata. But why this "Django Blog Python Learning" not use it? We need to explore and use another method, so we know what we ...

Read More →