[PYTHON] django notes

Originally python

$ which python

/usr/bin/python

Put via brew

$ brew install python

pip settings

$ pip install --upgrade setuptools
$ pip install --upgrade pip

Replace PATH

echo 'export PATH=/usr/local/bin:/usr/local/share/python:$PATH' >> ~/.bash_profile
source ~/.bash_profile

Verification

$ which python

/usr/local/bin/python

Version confirmation etc.

$ python --version

Python 2.7.8

>>> import django
>>> django.get_version()
>>> django.VERSION

'1.6.6'

DB remake

django 1.5 and above

./manage.py sqlclear <appname> | ./manage.py dbshell 

1.4 or less

python manage.py reset <appname> 

Recommended Posts

django notes
Django notes
[Django] as_view () notes
[Django] JWT notes
Django
[Personal notes] Python, Django
[Django] Notes on using django-debug-toolbar
[Django] Directory structure practices + notes
django update
Django note 4
JetBrains_Learning Notes_003
Launch notes for existing Django applications
Django memorandum
django search
Django installation
SQLAlchemy notes
Django Summary
pyenv notes
Django test
Django # 2 (template)
SQL notes
Pandas notes
Django Note 5
Sphinx notes
Django hands-on
Touch django
Django Summary
Django basics
Django Shoho
Django defaults
Jupyter_Learning Notes_000
Django + Docker
Django Glossary
Django search
Install Django
Django: References
Django Note 1
Django note 3
Django note 2
Django startup
Django NullCharField
Step notes to get started with django
Miscellaneous notes about the Django REST framework
Notes on creating static files in Django
Django novice addicted error and solution notes
Django environment construction
pandas self-study notes
Python scraping notes
Django ~ settings.py edition ~
Mecab installation notes
Django Heroku Deploy 1
Django HTML Template # 2
Django Contact Form 2
Django begins part 1
Python learning notes
Django model: ManyToManyField
What is Django? .. ..
concurrent.futures Usage notes
Theano installation notes
Models in Django
Django function-based view