Skip to content

Instantly share code, notes, and snippets.

View bruno2ms's full-sized avatar

Bruno Mendes Soares bruno2ms

  • Yahoo Finance
  • Brazil
View GitHub Profile
@bruno2ms
bruno2ms / info.md
Created July 25, 2018 11:38 — forked from marteinn/info.md
Using the Fetch Api with Django Rest Framework

Using the Fetch Api with Django Rest Framework

Server

First, make sure you use the SessionAuthentication in Django. Put this in your settings.py

# Django rest framework
REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': [
 'rest_framework.authentication.SessionAuthentication'
@bruno2ms
bruno2ms / index.html
Created January 29, 2018 20:44 — forked from bummzack/index.html
Webpack using browser-sync and SASS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dummy</title>
<link rel="stylesheet" href="dist/css/styles.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
</head>
<body>
<div id="app" >