Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexisseurin/python-cicd
Python CI/CD
https://github.com/alexisseurin/python-cicd
cicd python
Last synced: about 18 hours ago
JSON representation
Python CI/CD
- Host: GitHub
- URL: https://github.com/alexisseurin/python-cicd
- Owner: alexisseurin
- Created: 2024-07-12T20:55:23.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-12T21:52:57.000Z (6 months ago)
- Last Synced: 2025-01-01T13:26:04.292Z (8 days ago)
- Topics: cicd, python
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-cicd
## Create a virtual environment
```bash
python -m venv python-env# Activate virtual environment (Linux/Mac)
source python-env/bin/activate# Activate virtual environment (Windows)
python-env\Scripts\activate
```## Set up the backend by installing required packages
```bash
pip install -r requirements.txt
```## Create a Django project
```bash
django-admin startproject myproject
```## Create a Django app
```bash
cd myproject
python manage.py startapp myapp
```## Add the app to the project
```bash
INSTALLED_APPS = [
# Add this line in your settings.py file inside myproject folder
'myapp',
# ...
]
```# Run the development server
```bash
python manage.py runserver
```# Test
```bash
http://127.0.0.1:8000/hello/
```# Run Tests
```bash
python manage.py test
```