https://github.com/rafal-kowalski-dev/pystartowo
Python's knowledge base for beginners
https://github.com/rafal-kowalski-dev/pystartowo
django docker docker-compose nginx postgresql python
Last synced: 3 months ago
JSON representation
Python's knowledge base for beginners
- Host: GitHub
- URL: https://github.com/rafal-kowalski-dev/pystartowo
- Owner: rafal-kowalski-dev
- License: mit
- Created: 2021-09-25T20:24:41.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-11-21T19:36:05.000Z (over 3 years ago)
- Last Synced: 2025-02-08T12:45:49.849Z (over 1 year ago)
- Topics: django, docker, docker-compose, nginx, postgresql, python
- Language: JavaScript
- Homepage: https://pystartowo.toadres.pl
- Size: 4.96 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pystartowo
_Python knowledge base for beginners_
Check website [Pystartowo](pystartowo.toadres.pl) to see this project on your browser.
## Based on
- Build with [Django Bootstrap Template](https://github.com/griceturrble/django-bootstrap-template/)
- Module 'users' based on [Django-Crash-Starter](https://github.com/feldroy/django-crash-starter)
- Favicon downloaded from [Icons8](https://icons8.com) site.
- Icons downloaded from [Font Awersome](https://fontawesome.com/) site.
- Formated in [Autopep8](https://github.com/hhatto/autopep8) style
- and more problems read on [StackOverflow](https://stackoverflow.com/)
## License
This project uses the MIT license. Please see the [LICENSE](LICENSE) for details.
## Installation
1. Create a new Python virtual environment.
- Using `venv` on Linux:
```bash
python3 -m venv .venv --prompt pystartowo
```
- Using `venv` on Windows:
```bash
python3 -m venv .venv --prompt pystartowo
```
- Or, use whichever style of virtual environment management you prefer!
1. Install dependencies:
```bash
pip install -r requirements.txt
```
1. _PostgreSQL settings_: if not present already create a new `.env` file at `pystartowo/core/.env`. This file should be gitignored from the repo, and should contain credentials for connecting to the PostgreSQL database:
- `POSTGRES_NAME`: database name
- `POSTGRES_USER`: username
- `POSTGRES_PASSWORD`: password
- `POSTGRES_HOST`: host serving the database
- `POSTGRES_PORT`: port
1. Migrate models to the database:
```bash
python pystartowo/manage.py migrate
```
1. Create a superuser:
```bash
python pystartowo/manage.py createsuperuser
```
1. Run the development server:
```bash
python pystartowo/manage.py runserver
```
1. Open http://localhost:8000 to view the running site.