Skip to content

whobutsb/django-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Learning

https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-14-04

Commands

Creation Commands

  • Create Project: python3 manage.py startproject [project-name]

  • Create App: python3 manage.py startapp [app-name]

  • Create superuser: python3 manage.py createsuperuser

Migrations

Learn

  • Setup View Class

  • Learn Tree Traversal

http://interactivepython.org/courselib/static/pythonds/Trees/TreeTraversals.html https://www.geeksforgeeks.org/tree-traversals-inorder-preorder-and-postorder/

Questions

  • How to setup multiple databases for projects

Debugging

Raise an Exception to print out the results:

import sys
raise Exception(sys.path)

Get the dictionary of the object: Model.__dict__

About

Learning Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published