sudo pacman -S python-pip
sudo pacman -S python-virtualenvwrapper
check pip freeze
##create project Django
*migration database sqlite
1. python manage.py migrate
2. python manage.py createsuperuser (for admin open)
3. python manage.py runserver
*edit or add models.py
1. python manage.py makemigrations
2. python manage.py migrate
sudo pacman -S python-virtualenvwrapper
check pip freeze
##create project Django
- mkdir blog
- cd blog
- virtualenv .
- source bin/activate || or || deactivate
- pip install Django / pip install Django --upgrade
- install project
- django-admin.py startproject blog
- change foldername blog to src
- cd src
- python manage.py runserver
- make project in sublime
- open sublime - project-add folder project in dir blog
*migration database sqlite
1. python manage.py migrate
2. python manage.py createsuperuser (for admin open)
3. python manage.py runserver
*edit or add models.py
1. python manage.py makemigrations
2. python manage.py migrate
No comments:
Post a Comment