Trending
Heat Index
Latest Headlines
 
 
 

Trending Topics
Web
Python
Flask
Uncategorized
valve
sqlalchemy
Jquery
wordpress
Tech
The News
Most Recent
 
Read More
July 23, 2020

Quick and easy datatables with jquery

You want a nice looking, easy to use, table to display some data.

You can spend some time custom coding the table with various sorting functions and perhaps hiding the odd column but that’s all done for you already. Using Jquery Datatables.

I will show a couple of quick examples on how I now use the datatables Jquery plugin to quickly be able to control various functions of the table to make it simple and easy to use.

First off you include the two required files, A Css file and a JS file.

//cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css //cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js

Then you can just include one piece of js code [...]

393
 
Read More
May 24, 2020

Redirect Nginx Magento front end to new website while maintaining admin access on old website

I had a client who wanted their old Magento based site to redirect all front end users to their new domain while still maintining admin access so they could continue to use their Amazon integration for managing orders and stock.

This is actually fairly straightforward with Nginx but needs a couple of entries to ensure it works.

You will have an entire nginx conf file for this site but qwe will just be modifying the following line

location / { try_files $uri $uri/ /index.php?$args; }

This line usually just sends all requests to be processed by php and we want to change that so that all instead redirected to the new domain

We do this by changing this [...]

63
 
Read More
April 26, 2020

How to use Blueprint static folders correctly in Python – Flask

In a sentence. Static folders don’t inherit as templates do. Ill explain.

In Flask you have a concept called Blueprints.

In most Flask tutorials you see throughout the web they will have a single file which contains everything including your routes, models and any other code. You may do some includes to pull in additional functions but that is probably it.

As your Flask application grows in size this is obviously not feasible and the different sections of code need to be separated out into different folders or separations of concerns as it were.

For this, you can use Blueprints. you create a folder for example /lists/ and in there you define an [...]

3742
Load More
End of the line!
Top Stories
 
 
 
 
 
 
 
 
Right Now
 
 
 
 
 
 
 
How to get updates working if you use Proxmox without a subscription
 
Change a letsencrypt SSL certificate to a webroot renewal instead of spinning up a standalone server.
 
Converting Formidable Forms date to a Unix Timestamp
 
Quick and easy datatables with jquery
More
Popular Now
 
 
 
 
 
The Latest
 
Editor's Picks
Try a different filter
Go To
You need to choose at least one section to display in this widget
Top 5
Heat Index
 
1
How to use Blueprint static folders correctly in Python – Flask
 
2
How to forward emails to Freshdesk correctly in Office Exchange 365
 
3
Hass.io Homeassistant Rfxtrx setup for LightwaveRF Devices
 
4
Nginx proxy caching with multiple php pools and WordPress
 
5
Python Flask SQLalchemy Mixins at the end of existing columns