If this is your first time using Django, you’ll have to take care of some initial setup. Namely, you’ll need to auto-generate some code that establishes a Django project – a collection of settings for an instance of Django, including database configuration, Django-specific options and application-specific settings.
From the command line, cd into a directory where you’d like to store your code, then run the following command:
If you wanted to sort a Model by a certain field in this case take the field “created” which is a date. We can simply tell cakePHP to pagnate entries by the order they were created by the following example.
// we prepare our query, the cakephp way!
More Examples can be found here;
While at college or work its a real pain when you login to have to open up 3 different websites and maybe 2 more applications.
Well with a simple “batch” file you can do it all. Simply open notepad and paste the following code into it and save it as “.bat” file then double click it to run it and hey presto no more annoying websites to have to type in, feel free to change the website address to what ever you want.