Skip to content

Instantly share code, notes, and snippets.

View deependhamecha's full-sized avatar
🎯
Focusing

Deepen Dhamecha deependhamecha

🎯
Focusing
View GitHub Profile

Django Steps

Terminologies


The architectural design pattern of django is MVT (Model-View-Template)

Django Project: It is a collection of applications and configurations that when combined together will make up the full web application.

Django Application: It is created to perform a particular functionality for the entire web application. It can work individually and can be plugged into a project due to its modularity. e.g. registration app, comments app, etc. These Django Apps can then be plugged into other Django Projects, so you can reuse them.

@deependhamecha
deependhamecha / App\Exceptions\Handler.php
Created February 18, 2017 06:19 — forked from jacurtis/App\Exceptions\Handler.php
How to get filp/whoops to work in Laravel 5.2 or 5.3 - Add this code to your `App\Exceptions\Handler.php` file.
/**
* Create a Symfony response for the given exception.
*
* @param \Exception $e
* @return mixed
*/
protected function convertExceptionToResponse(Exception $e)
{
if (config('app.debug')) {
$whoops = new \Whoops\Run;
@deependhamecha
deependhamecha / multi-git.md
Created December 3, 2016 12:02 — forked from rosswd/multi-git-win.md
Setting up a Github and Bitbucket account on the same computer.

Setting up github and bitbucket on the same computer

Github will be the main account and bitbucket the secondary.

Create SSH Keys

ssh-keygen -t rsa -C "github email"

Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.