Skip to content

Commit 2c4e012

Browse files
Initial commit
0 parents  commit 2c4e012

28 files changed

+634
-0
lines changed

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.pyc
2+
*.DS_Store
3+
*.egg*
4+
/dist/
5+
/.idea
6+
/docs/_build/
7+
/node_modules/
8+
build/
9+
env
10+
/staticfiles/
11+
12+
#src
13+
*.sqlite*
14+
15+
.env

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Change Log
2+
3+
## [1.0.1] 2023-01-07
4+
### Changes
5+
6+
- Bump Theme version
7+
- Update DOCS (readme)
8+
9+
## [1.0.0] 2022-12-21
10+
### Changes
11+
12+
- Stable Version
13+
- Integrate [Django Material PRO](https://github.com/app-generator/django-admin-material-pro)
14+
- CI/CD included via `Render`

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM python:3.9
2+
3+
# set environment variables
4+
ENV PYTHONDONTWRITEBYTECODE 1
5+
ENV PYTHONUNBUFFERED 1
6+
7+
COPY requirements.txt .
8+
# install python dependencies
9+
RUN pip install --upgrade pip
10+
RUN pip install --no-cache-dir -r requirements.txt
11+
12+
COPY . .
13+
14+
# running migrations
15+
RUN python manage.py migrate
16+
17+
# gunicorn
18+
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "core.wsgi"]

LICENSE.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Commercial Projects - EULA
2+
3+
Copyright (c) 2019 - present [AppSeed](http://appseed.us/)
4+
5+
<br />
6+
7+
## Licensing Information
8+
9+
This document explains the usage terms for all **commercial** products (apps/tools) developed by **[AppSeed](http://appseed.us/)**.
10+
11+
Used terms:
12+
13+
- `Solo-Developer`: code digital products as freelencer (without being incorporated in a company)
14+
- `StartUp` - young company founded 12mo (or less) in the past
15+
- `Small Company` - maximum 3 developers, active for more than 1year
16+
- `Company` - More than 4 developers and less than 50
17+
- `Corporate` - More than 50 developers
18+
19+
<br />
20+
21+
## [Personal License](https://github.com/app-generator/license-personal)
22+
23+
> Licensing Information - full info [here](https://github.com/app-generator/license-personal)
24+
25+
| Item | - |
26+
| ---------------------------------- | --- |
27+
| Domains | 1 |
28+
| Team Size | **3 developer** |
29+
| [Support](https://appseed.us/support/) & Updates: | **6 months** |
30+
| --- | --- |
31+
| Product sale ||
32+
| Create single personal website/app ||
33+
| Create single website/app for client ||
34+
| Remove footer credits ||
35+
| SaaS application ||
36+
37+
<br />
38+
39+
## [StartUp License](https://github.com/app-generator/license-startup)
40+
41+
> Licensing Information - full info [here](https://github.com/app-generator/license-startup)
42+
43+
| Item | - |
44+
| ---------------------------------- | --- |
45+
| Domains | 1 |
46+
| Team Size | **Up to 9 developers** |
47+
| [Support](https://appseed.us/support/) & Updates: | **12 months** |
48+
| --- | --- |
49+
| Product sale ||
50+
| Create single personal website/app ||
51+
| Create single website/app for client ||
52+
| Remove footer credits ||
53+
| SaaS application ||
54+
55+
<br />
56+
57+
## [Company License](https://github.com/app-generator/license-company)
58+
59+
> Licensing Information - full info [here](https://github.com/app-generator/license-company)
60+
61+
| Item | - |
62+
| ---------------------------------- | --- |
63+
| Team Size | **Unlimited** |
64+
| [Support](https://appseed.us/support/) & Updates: | **Lifetime** |
65+
| --- | --- |
66+
| Product sale ||
67+
| Create multiple personal websites/apps ||
68+
| Create multiple websites/apps for clients ||
69+
| Remove footer credits ||
70+
| SaaS application ||
71+
72+
<br />
73+
74+
---
75+
For more information regarding licensing, please contact the [AppSeed](https://appseed.us/) Service < *[email protected]* >

README.md

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# [Django Material2 PRO](https://appseed.us/product/material-dashboard2-pro/django/)
2+
3+
**Django** starter styled with **[Material Dashboard PRO](https://appseed.us/product/material-dashboard2-pro/django/)**, a premium `Bootstrap 5` KIT from [Creative-Tim](https://bit.ly/3fKQZaL)
4+
The product is designed to deliver the best possible user experience with highly customizable feature-rich pages.
5+
6+
> **NOTE**: This product `requires a License` in order to access the theme. During the purchase, a `GitHub Access TOKEN` is provided.
7+
8+
- 🛒 [Django Material2 PRO](https://appseed.us/product/material-dashboard2-pro/django/) - `Product page` (contains payment links)
9+
- 👉 [Django Material2 PRO](https://django-material-dash2-pro.onrender.com) - `LIVE Demo` on Render
10+
- 🚀 [Support](https://appseed.us/support/) via `Email` & `Discord`
11+
12+
<br />
13+
14+
## Features:
15+
16+
-`Up-to-date Dependencies`
17+
-`Design`: [Django Theme Material2](https://github.com/app-generator/django-admin-material2-pro) - `PRO Version`
18+
-`Sections` covered by the design:
19+
-**Admin section** (reserved for superusers)
20+
-**Authentication**: `Django.contrib.AUTH`, Registration
21+
-**All Pages** available in for ordinary users
22+
-`Docker`
23+
- 🚀 `Deployment`
24+
- `CI/CD` flow via `Render`
25+
26+
<br />
27+
28+
![Material Dashboard BS5 - Modern Dashboard design by Creative-Tim.](https://user-images.githubusercontent.com/51070104/209104783-22f04139-8919-457c-b21d-7383d57f07b1.png)
29+
30+
<br />
31+
32+
## Manual Build
33+
34+
> 👉 Download the code
35+
36+
```bash
37+
$ git clone https://github.com/app-generator/django-material-dashboard2-pro.git
38+
$ cd django-material-dashboard2-pro
39+
```
40+
41+
<br />
42+
43+
> Export `GITHUB_TOKEN` in the environment. The value is provided by AppSeed during purchase.
44+
45+
This is required because the project has a private REPO dependency: `github.com/app-generator/priv-django-admin-material-pro`
46+
47+
```bash
48+
$ export GITHUB_TOKEN='TOKEN_HERE' # for Linux, Mac
49+
$ set GITHUB_TOKEN='TOKEN_HERE' # Windows CMD
50+
$ $env:GITHUB_TOKEN = 'TOKEN_HERE' # Windows powerShell
51+
```
52+
53+
<br />
54+
55+
> 👉 Install modules via `VENV`.
56+
57+
58+
```bash
59+
$ virtualenv env
60+
$ source env/bin/activate
61+
$ pip install -r requirements.txt
62+
```
63+
64+
<br />
65+
66+
> 👉 Edit the `.env` using the template `.env.sample`.
67+
68+
```env
69+
70+
# True for development, False for production
71+
DEBUG=True
72+
73+
```
74+
75+
<br />
76+
77+
> 👉 Set Up Database
78+
79+
```bash
80+
$ python manage.py makemigrations
81+
$ python manage.py migrate
82+
```
83+
84+
<br />
85+
86+
> 👉 Create the Superuser
87+
88+
```bash
89+
$ python manage.py createsuperuser
90+
```
91+
92+
<br />
93+
94+
> 👉 Start the app
95+
96+
```bash
97+
$ python manage.py runserver
98+
```
99+
100+
At this point, the app runs at `http://127.0.0.1:8000/`.
101+
102+
<br />
103+
104+
## Screenshots
105+
106+
![Theme Material Dashboard PRO - Main (Dark-Mode active), crafted by AppSeed.](https://user-images.githubusercontent.com/51070104/209695422-7863697f-e6c5-4b08-b395-422074e399df.jpg)
107+
108+
<br />
109+
110+
> [Django Admin Material PRO](https://github.com/app-generator/django-admin-material-pro) - `Calender` Page
111+
112+
![Theme Material Dashboard PRO - Calender Page, crafted by AppSeed.](https://user-images.githubusercontent.com/51070104/209695529-f4cea8ee-68d9-4658-bb54-110ff530c8da.jpg)
113+
114+
<br />
115+
116+
> [Django Admin Material PRO](https://github.com/app-generator/django-admin-material-pro) - `Automotive` Page
117+
118+
![Theme Material Dashboard PRO - Automotive Page, crafted by AppSeed.](https://user-images.githubusercontent.com/51070104/209695692-e681b3c8-fca8-4ebf-8803-2795bcd8f7d1.jpg)
119+
120+
<br />
121+
122+
---
123+
[Django Material2 PRO](https://appseed.us/product/material-dashboard2-pro/django/) - Minimal **Django** starter provided by **[AppSeed](https://appseed.us/)**

README_deploy.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# How to deploy on `Render`
2+
3+
> This document should contains all the steps to deploy the app on render without much effort, using PostgreSQL
4+
5+
https://render.com/docs/deploy-django
6+
7+
## ALL STEPS below
8+
9+
<br />
10+
11+
### 👉 Create `PostgreSQL` database on render
12+
- Go to https://dashboard.render.com/new/database this link.
13+
- Database name should be `berry`.
14+
- Keep the Database, User and Datadog API Key as it is.
15+
- If you want to change database name anything else then you have to change your `render.yaml` file database name too.
16+
17+
<br />
18+
19+
### 👉 Create a Blueprint instance
20+
- Go to https://dashboard.render.com/blueprints this link.
21+
- Click `New Blueprint Instance` button.
22+
- Connect your `repo` which you want to deploy.
23+
- Fill the `Service Group Name` and click on `Update Existing Resources` button.
24+
- After that your deployment will start automatically.

build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
# exit on error
3+
set -o errexit
4+
5+
python -m pip install --upgrade pip
6+
7+
pip install -r requirements.txt
8+
9+
python manage.py collectstatic --no-input
10+
python manage.py migrate

core/__init__.py

Whitespace-only changes.

core/asgi.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
ASGI config for core project.
3+
4+
It exposes the ASGI callable as a module-level variable named ``application``.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/
8+
"""
9+
10+
import os
11+
12+
from django.core.asgi import get_asgi_application
13+
14+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
15+
16+
application = get_asgi_application()

0 commit comments

Comments
 (0)