https://github.com/artodeschini/sampledjango
Sample Configure Django Project
https://github.com/artodeschini/sampledjango
Last synced: 9 months ago
JSON representation
Sample Configure Django Project
- Host: GitHub
- URL: https://github.com/artodeschini/sampledjango
- Owner: artodeschini
- Created: 2019-02-12T04:30:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-17T13:25:58.000Z (over 7 years ago)
- Last Synced: 2025-03-06T05:45:54.311Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Note of start a project in django
## Requeirement
- Python 3
- pyenv
- pip
- pyCharm
- poedit
- fun
- Django
- SQLite
- Db Browser to SQLite
## pyenv
```bash
$ brew update
$ brew install pyenv
```
## install python 3.6.6
```bash
pyenv install 3.6.6
pyenv virtualenv 3.6.6 django-env
pyenv activate django-env
python --version
pip install Django==2.1.7
```
## start a new project with django
```bash
# django-admin starproject sample
django-admin starproject sampledjango
```
## open the diretory with pycharm
configure pycharm project
PyCharm > Preferences > Project
interpleter
add virtualenv
## try if works
```bash
cd sampledjango/
python manage.py runserver
# open in your browser http://127.0.0.1:8000/
# if I want to change de port
python manage.py runserver 5555
```
## create a module in django project
execute the command inside of package of project
in the same folder there is manage.py
```bash
```
## create a database of app
python manage.py makemigrations
python manage.py migrate
## create a super user
python manage.py