Tags » Django

Login in a RESTful web app

I was trying to create an Instagram Clone using Django as backend and Backbone.js as frontend (*I am new to both, so pardon me if I got something wrong*) . 404 more words

Technology

Django documentation 1

Tạo project

Bài hướng dẫn này sẽ giúp tạo 1 ứng dụng cơ bản.
Bao gồm 2 phần:

Django

Django DEBUG settings

set DEBUG=False gave me lots of 404.
here is solution.

import socket

if socket.gethostbyname(socket.gethostname()) == “IP address”:
DEBUG = True
else:
DEBUG = False
ALLOWED_HOSTS = [“*”,] 19 more words

Progamming

Menambahkan Authentication Backend Login Dengan Email User

di Django, kita bisa menggunakan authentication framework untuk membuat aksi-aksi seperti login, logout dan sebagainya. biasanya saat kita memanfaatkan view built-in django.contrib.auth.views.login untuk login, kita hanya boleh login dengan… 333 more words

Django

Django Tests: Cannot Drop Database

Sometimes when tests crash, if you try to re-run them, the code will fail because the old database cannot be dropped and the error message will be something like: 168 more words

Django

Setup Django trên window

Tải python2.7
https://www.python.org/downloads/

Sau khi cài xong thì mình thêm biến môi trường để chạy trên CMD

Control Panel\System and Security\System -> click Advanced system settings
click Environment variable -> click chọn Path, click New, copy and paste…
101 more words
Django

Pivots to WebDev after OKCoders

OKCoders is now entering its final week for the second session (Back-End Web Development). I’ve learned a lot of things in the last 18 weeks, but I wouldn’t say it’s made me anything resembling a professional developer. 271 more words