Showing posts with label Django. Show all posts
Showing posts with label Django. Show all posts

Saturday, May 31, 2014

Crack Sublime Text 3 (100% successful)

    Sublime Text 2 & 3 License Key, Sublime Text Full Version

    Sublime Text License Key

    How to activate license key

    1. Go to menu Help > Enter License.
    2. Copy the license key below and paste it into the textbox > Click the Use License button.
    3. Enjoy! :+1:
    ----- BEGIN LICENSE -----
    J2TeaM
    2 User License
    EA7E-940282
    45CB0D8F 09100037 7D1056EB A1DDC1A2
    39C102C5 DF8D0BF0 FC3B1A94 4F2892B4
    0AEE61BA 65758D3B 2EED551F A3E3478C
    C1C0E04E CA4E4541 1FC1A2C1 3F5FB6DB
    CFDA1551 51B05B5D 2D3C8CFE FA8B4285
    051750E3 22D1422A 7AE3A8A1 3B4188AC
    346372DA 37AA8ABA 6EB30E41 781BC81F
    B5CA66E3 A09DBD3A 3FE85BBD 69893DBD
    ------ END LICENSE ------

Monday, March 3, 2014

Optimizing Django: tricks for faster page loads

By reducing the file size of your CSS, JavaScript and images, as well as the number of unnecessary browser requests made to your site, load time of your applications pages can be drastically reduced, not to mention the load on your server.
Yahoo have created a list of the 35 best practices to speed up your website, a recommended read for any web developer. I wanted to summarize a few I recently implemented in a Django application.
In a nutshell:
  • Serve compressed static media files. This one is obvious, the smaller the file size, the quicker it is to download.
  • Once a browser has already downloaded the static media, it shouldn't have to download it again. This is what actually happens, as the server will respond with 304 Not Modified, which means that the cached file is still up-to-date.
  • However, the HTTP request is still sent. This is unnecessary and should be avoided by setting the HTTP Expire header to a date in the future.
  • When files are updated, you need to give them a new URL so the browser will request them. This is referred to as versioning. A common scheme is to use the modification time/date of the file in its URL, either as part of the name or in the query string. This is obviously tedious and error prone, so automation is required.
     

Thursday, February 27, 2014

Django migrations with South module

Django migrations with South

South is an “intelligent schema and data migrations for django projects”
In this post we will go through the steps required in order to set up south in your django project.

JavaScript based charts in Django made easy with Chartkick application

Installation

We start with the usuwall pypi installation:
pip install chartkick
W settingsach Django dodajemy:
INSTALLED_APPS = (
    'chartkick',
)

import chartkick
STATICFILES_DIRS = (
    chartkick.js(),
)
Now we have to add some JS files in our templates. We have to pick which chart backend we want to use - Google Charts or Highcharts (you can change that any time). For Google Charts add:
<script src="http://www.google.com/jsapi"></script>
<script src="static/chartkick.js"></script>
For Highcharts:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="static/chartkick.js"></script>