Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django #15

Merged
merged 17 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: ci
on:
push:
branches:
- '*'
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs "mkdocstrings[python]" mkdocs-material
- run: mkdocs gh-deploy --force

mypy:
runs-on: ubuntu-latest
name: Mypy
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install Dependencies
run: |
pip install mypy requests types-requests pandas-stubs
- name: mypy
run: |
mypy src/

pylint:
runs-on: ubuntu-latest
name: pylint
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install Dependencies
run: |
pip install pylint requests pandas
- name: pylint
run: |
pylint src/

pytest:
runs-on: ubuntu-latest
name: pytest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install Dependencies
run: |
pip install pytest requests pandas yfinance
- name: pytest
run: |
pytest tests/
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ubuntu:22.04

# set a directory for the app
WORKDIR /usr/workspace/

# copy all the files to the container
COPY . .

# install dependencies
RUN apt-get update
RUN apt-get install -y python3
RUN apt install -y python3-pip
RUN pip install --no-cache-dir -r requirements.txt

# EXPOSE 8000

# CMD cd django-stock-tracker && python3 manage.py runserver 0.0.0.0:8000 Can run this in the terminal
# but need to specify docker run -it -p 8888:8000 stock
127 changes: 127 additions & 0 deletions django-stock-tracker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# Change Log

## [1.0.14] 2023-02-14
### Changes

- Update [Custom Development](https://appseed.us/custom-development/) Section
- Minor Changes (readme)

## [1.0.13] 2023-10-21
### Changes

- Update Dependencies
- Update README

## [1.0.12] 2023-03-01
### Changes

- Bump design version:
- [Django Admin Volt](https://github.com/app-generator/django-admin-volt) `v1.0.10`

## [1.0.11] 2023-01-31
### Changes

- DOCS Update (readme)
- Bump design version:
- [Django Admin Volt](https://github.com/app-generator/django-admin-volt) `v1.0.9`

## [1.0.10] 2023-01-28
### Changes

- DOCS Update (readme). New sections:
- `How to customize the theme`
- Render deployment
- Configure the project to use `home/templates`
- Added `custom_footer` sample

## [1.0.9] 2023-01-07
### Changes

- Move to a `theme-based` pattern
- [Django Admin Volt](https://github.com/app-generator/django-admin-volt)
- 🚀 `Deployment`
- `CI/CD` flow via `Render`

## [1.0.8] 2022-09-14
### Improvements

- Added **Github OAuth** via AllAuth. requires in `.env`:
- `GITHUB_ID`=<YOUR_GITHUB_ID>
- `GITHUB_SECRET`=<YOUR_GITHUB_SECRET>
- `Docker` Improvements
- Pages UX Updates:
- `SignIN`, `SignUP`, `Settings`

## [1.0.7] 2022-05-25
### Improvements

- Built with [Volt Dashboard Generator](https://appseed.us/generator/volt-dashboard/)
- Timestamp: `2022-05-25 22:38`
- Codebase refactoring
- Added CDN Support
- via `.env` **ASSETS_ROOT**

## [1.0.6] 2022-01-16
### Improvements

- Bump Django Codebase to [v2stable.0.1](https://github.com/app-generator/boilerplate-code-django-dashboard/releases)
- Dependencies update (all packages)
- Django==4.0.1
- Settings update for Django 4.x
- `New Parameter`: CSRF_TRUSTED_ORIGINS
- [Origin header checking isn`t performed in older versions](https://docs.djangoproject.com/en/4.0/ref/settings/#csrf-trusted-origins)

## [1.0.5] 2021-10-06
### Improvements

- Mention `admin` section custom theme
- [Django Admin Volt](https://pypi.org/project/django-admin-volt/) available on PyPi and Github
- `Presentation` page
- Update Top links

## [1.0.4] 2021-09-15
### Improvements

- Bump Django Codebase to [v2.0.4](https://github.com/app-generator/boilerplate-code-django-dashboard/releases)
- Codebase update
- `assets` & `templates` moved to `apps` folder
- `apps/base` renamed to `apps/home`

## [1.0.3] 2021-09-07
### Improvements & Fixes

- Bump Django Codebase to [v2.0.2](https://github.com/app-generator/boilerplate-code-django-dashboard/releases)
- Dependencies update (all packages)
- Use Django==3.2.6 (latest stable version)
- Better Code formatting
- Improved Files organization
- Optimize imports
- Docker Scripts Update
- Fixes:
- Patch 500 Error when authenticated users access `admin` path (no slash at the end)
- Patch [#16](https://github.com/app-generator/boilerplate-code-django-dashboard/issues/16): Minor issue in Docker

## [1.0.2] 2021-08-27
### Improvements

- Bump UI - [Volt Dashboard v1.4.1](https://github.com/themesberg/volt-bootstrap-5-dashboard/releases)

## Unreleased 2021-08-05
### Tooling

- Added scripts to recompile the SCSS files
- `core/static/assets/` - gulpfile.js
- `core/static/assets/` - package.json
- `Update README` - [Recompile SCSS](https://github.com/app-generator/django-dashboard-volt#recompile-css) (new section)

## [1.0.1] 2021-03-30
### Improvements

- Bump UI: [Jinja Volt](https://github.com/app-generator/jinja-volt-dashboard/releases) v1.0.1
- [Volt Dashboard](https://github.com/themesberg/volt-bootstrap-5-dashboard/releases) v1.3.2

## [1.0.0] 2021-01-17

- Bump UI: [Jinja Volt](https://github.com/app-generator/jinja-volt-dashboard/releases) v1.0.0
- [Volt Dashboard](https://github.com/themesberg/volt-bootstrap-5-dashboard/releases/tag) v1.2.0
- Codebase: [Django Dashboard](https://github.com/app-generator/boilerplate-code-django-dashboard/releases) v1.0.4
18 changes: 18 additions & 0 deletions django-stock-tracker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM python:3.9

# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

COPY requirements.txt .
# install python dependencies
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# running migrations
RUN python manage.py migrate

# gunicorn
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "core.wsgi"]
32 changes: 32 additions & 0 deletions django-stock-tracker/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# MIT License

Copyright (c) 2019 - present [AppSeed](http://appseed.us/)

<br />

## Licensing Information

<br />

| Item | - |
| ---------------------------------- | --- |
| License Type | MIT |
| Use for print | **YES** |
| Create single personal website/app | **YES** |
| Create single website/app for client | **YES** |
| Create multiple website/apps for clients | **YES** |
| Create multiple SaaS applications | **YES** |
| End-product paying users | **YES** |
| Product sale | **YES** |
| Remove footer credits | **YES** |
| --- | --- |
| Remove copyright mentions from source code | NO |
| Production deployment assistance | NO |
| Create HTML/CSS template for sale | NO |
| Create Theme/Template for CMS for sale | NO |
| Separate sale of our UI Elements | NO |

<br />

---
For more information regarding licensing, please contact the AppSeed Service < *[email protected]* >
Loading
Loading