Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samuel-oldra/blog
🟢 Python e Django 4.2
https://github.com/samuel-oldra/blog
bootstrap django django-forms django4-2 migrations mvt-architecture orm python sqlite virtualenv
Last synced: about 2 months ago
JSON representation
🟢 Python e Django 4.2
- Host: GitHub
- URL: https://github.com/samuel-oldra/blog
- Owner: samuel-oldra
- License: bsd-3-clause
- Created: 2021-07-22T17:37:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T13:46:19.000Z (6 months ago)
- Last Synced: 2024-10-12T11:14:41.756Z (2 months ago)
- Topics: bootstrap, django, django-forms, django4-2, migrations, mvt-architecture, orm, python, sqlite, virtualenv
- Language: Python
- Homepage:
- Size: 5.18 MB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
Django Blog
Tecnologias e práticas utilizadas •
Funcionalidades •
ComandosDesenvolvida uma aplicação de blog.
## Tecnologias e práticas utilizadas
- Python 3.8
- Django 4.2
- SQLite
- Arquitetura MVT## Funcionalidades
- Listagem, Detalhe, Cadastro e Edição de Posts###
![alt text](https://raw.githubusercontent.com/samuel-oldra/DjangoBlog/main/README_IMGS/List.png)
![alt text](https://raw.githubusercontent.com/samuel-oldra/DjangoBlog/main/README_IMGS/Detail.png)
![alt text](https://raw.githubusercontent.com/samuel-oldra/DjangoBlog/main/README_IMGS/CreateEdit.png)## Comandos
### pip
```
pip list --outdate
pip install --upgrade pip setuptools Django ...
```### virtualenv (windows)
```
python -m venv env
env\Scripts\activate.bat
env\Scripts\deactivate.bat
```### Instalar bibliotecas, gravar/instalar requerimentos
```
(env) pip install Django(env) pip freeze > requirements.txt
(env) pip install -r requirements.txt
```### Criar projeto
```
(env) django-admin startproject mysite .
```### Criar super user (Django Administration)
```
(env) python manage.py createsuperuser (admin/admin)
```### Criar apps
```
(env) python manage.py startapp blog
```### Migrations
```
(env) python manage.py makemigrations
(env) python manage.py migrate
```### Executar projeto
```
(env) python manage.py runserver
```