33 |
34 | {% endblock content %}
35 |
36 |
37 | {% block javascripts %}{% endblock javascripts %}
38 |
--------------------------------------------------------------------------------
/apps/templates/home/page-blank.html:
--------------------------------------------------------------------------------
1 | {% extends "layouts/base.html" %}
2 |
3 | {% block title %} Blank Page {% endblock %}
4 |
5 |
6 | {% block stylesheets %}{% endblock stylesheets %}
7 |
8 | {% block content %}
9 |
10 |
12 |
35 |
36 | {% endblock content %}
37 |
38 |
39 | {% block javascripts %}{% endblock javascripts %}
40 |
--------------------------------------------------------------------------------
/apps/templates/home/register.html:
--------------------------------------------------------------------------------
1 | {% extends "layouts/base.html" %}
2 |
3 | {% block title %} Register {% endblock %}
4 |
5 |
6 | {% block stylesheets %}{% endblock stylesheets %}
7 |
8 | {% block content %}
9 |
10 |
12 |
13 |
83 |
84 | {% endblock content %}
85 |
86 |
87 | {% block javascripts %}{% endblock javascripts %}
88 |
--------------------------------------------------------------------------------
/apps/templates/home/tables.html:
--------------------------------------------------------------------------------
1 | {% extends "layouts/base.html" %}
2 |
3 | {% block title %} Tables {% endblock %}
4 |
5 |
6 | {% block stylesheets %}{% endblock stylesheets %}
7 |
8 | {% block content %}
9 |
10 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
24 | Name
25 |
26 |
27 | Country
28 |
29 |
30 | City
31 |
32 |
33 | Salary
34 |
35 |
36 |
37 |
38 |
39 | Dakota Rice
40 |
41 |
42 | Niger
43 |
44 |
45 | Oud-Turnhout
46 |
47 |
48 | $36,738
49 |
50 |
51 |
52 |
53 | Minerva Hooper
54 |
55 |
56 | Curaçao
57 |
58 |
59 | Sinaai-Waas
60 |
61 |
62 | $23,789
63 |
64 |
65 |
66 |
67 | Sage Rodriguez
68 |
69 |
70 | Netherlands
71 |
72 |
73 | Baileux
74 |
75 |
76 | $56,142
77 |
78 |
79 |
80 |
81 | Philip Chaney
82 |
83 |
84 | Korea, South
85 |
86 |
87 | Overland Park
88 |
89 |
90 | $38,735
91 |
92 |
93 |
94 |
95 | Doris Greene
96 |
97 |
98 | Malawi
99 |
100 |
101 | Feldkirchen in Kärnten
102 |
103 |
104 | $63,542
105 |
106 |
107 |
108 |
109 | Mason Porter
110 |
111 |
112 | Chile
113 |
114 |
115 | Gloucester
116 |
117 |
118 | $78,615
119 |
120 |
121 |
122 |
123 | Jon Porter
124 |
125 |
126 | Portugal
127 |
128 |
129 | Gloucester
130 |
131 |
132 | $98,615
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
147 |
148 |
149 |
150 |
151 |
152 | Name
153 |
154 |
155 | Country
156 |
157 |
158 | City
159 |
160 |
161 | Salary
162 |
163 |
164 |
165 |
166 |
167 | Dakota Rice
168 |
169 |
170 | Niger
171 |
172 |
173 | Oud-Turnhout
174 |
175 |
176 | $36,738
177 |
178 |
179 |
180 |
181 | Minerva Hooper
182 |
183 |
184 | Curaçao
185 |
186 |
187 | Sinaai-Waas
188 |
189 |
190 | $23,789
191 |
192 |
193 |
194 |
195 | Sage Rodriguez
196 |
197 |
198 | Netherlands
199 |
200 |
201 | Baileux
202 |
203 |
204 | $56,142
205 |
206 |
207 |
208 |
209 | Philip Chaney
210 |
211 |
212 | Korea, South
213 |
214 |
215 | Overland Park
216 |
217 |
218 | $38,735
219 |
220 |
221 |
222 |
223 | Doris Greene
224 |
225 |
226 | Malawi
227 |
228 |
229 | Feldkirchen in Kärnten
230 |
231 |
232 | $63,542
233 |
234 |
235 |
236 |
237 | Mason Porter
238 |
239 |
240 | Chile
241 |
242 |
243 | Gloucester
244 |
245 |
246 | $78,615
247 |
248 |
249 |
250 |
251 | Jon Porter
252 |
253 |
254 | Portugal
255 |
256 |
257 | Gloucester
258 |
259 |
260 | $98,615
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 | {% endblock content %}
273 |
274 |
275 | {% block javascripts %}{% endblock javascripts %}
276 |
--------------------------------------------------------------------------------
/apps/templates/home/typography.html:
--------------------------------------------------------------------------------
1 | {% extends "layouts/base.html" %}
2 |
3 | {% block title %} Typography {% endblock %}
4 |
5 |
6 | {% block stylesheets %}{% endblock stylesheets %}
7 |
8 | {% block content %}
9 |
10 |
12 |
13 |
14 |
15 |
16 |
20 |
21 |
22 |
Header 1 The Life of Now Ui Dashboard
23 |
24 |
25 |
Header 2 The Life of Now Ui Dashboard
26 |
27 |
28 |
Header 3 The Life of Now Ui Dashboard
29 |
30 |
31 |
Header 4 The Life of Now Ui Dashboard
32 |
33 |
34 |
Header 5 The Life of Now Ui Dashboard
35 |
36 |
37 |
Header 6 The Life of Now Ui Dashboard
38 |
39 |
40 |
Paragraph
41 | I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at.
42 |
43 |
44 |
45 |
Quote
46 |
47 |
48 | "I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at."
49 |
50 |
51 |
52 | - Noaa
53 |
54 |
55 |
56 |
57 |
58 |
Muted Text
59 |
60 | I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...
61 |
62 |
63 |
64 |
Primary Text
65 |
66 | I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...
67 |
68 |
69 |
Info Text
70 |
71 | I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...
72 |
73 |
74 |
Success Text
75 |
76 | I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...
77 |
78 |
79 |
Warning Text
80 |
81 | I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...
82 |
83 |
84 |
85 |
Danger Text
86 |
87 | I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...
88 |
89 |
90 |
Small Tag
91 | Header with small subtitle
92 | Use "small" tag for the headers
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | {% endblock content %}
102 |
103 |
104 | {% block javascripts %}{% endblock javascripts %}
105 |
--------------------------------------------------------------------------------
/apps/templates/home/user.html:
--------------------------------------------------------------------------------
1 | {% extends "layouts/base.html" %}
2 |
3 | {% block title %} User {% endblock %}
4 |
5 |
6 | {% block stylesheets %}{% endblock stylesheets %}
7 |
8 | {% block content %}
9 |
10 |
12 |
13 |
14 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
112 |
113 | "Lamborghini Mercy
114 | Your chick she so thirsty
115 | I'm in that two seat Lambo"
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 | {% endblock content %}
136 |
137 |
138 | {% block javascripts %}{% endblock javascripts %}
139 |
--------------------------------------------------------------------------------
/apps/templates/includes/footer.html:
--------------------------------------------------------------------------------
1 |
19 |
--------------------------------------------------------------------------------
/apps/templates/includes/navigation.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
Dashboard
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | {% if request.user.is_authenticated %}
22 |
23 |
31 |
32 |
63 | {% endif %}
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/apps/templates/includes/scripts.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/apps/templates/includes/sidebar.html:
--------------------------------------------------------------------------------
1 |
99 |
--------------------------------------------------------------------------------
/apps/templates/layouts/base-fullscreen.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/apps/templates/layouts/base.html:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | Django Now UI - {% block title %}{% endblock %} | AppSeed
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | {% block stylesheets %}{% endblock stylesheets %}
43 |
44 |
45 |
46 |
47 |
48 |
49 | {% include 'includes/sidebar.html' %}
50 |
51 |
52 |
53 | {% include 'includes/navigation.html' %}
54 |
55 | {% block content %}{% endblock content %}
56 |
57 | {% include 'includes/footer.html' %}
58 |
59 |
60 |
61 |
62 | {% include 'includes/scripts.html' %}
63 |
64 |
65 | {% block javascripts %}{% endblock javascripts %}
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/core/__init__.py:
--------------------------------------------------------------------------------
1 | # -*- encoding: utf-8 -*-
2 | """
3 | Copyright (c) 2019 - present AppSeed.us
4 | """
5 |
--------------------------------------------------------------------------------
/core/asgi.py:
--------------------------------------------------------------------------------
1 | # -*- encoding: utf-8 -*-
2 | """
3 | Copyright (c) 2019 - present AppSeed.us
4 | """
5 |
6 | import os
7 |
8 | from django.core.asgi import get_asgi_application
9 |
10 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')
11 |
12 | application = get_asgi_application()
13 |
--------------------------------------------------------------------------------
/core/settings.py:
--------------------------------------------------------------------------------
1 | # -*- encoding: utf-8 -*-
2 | """
3 | Copyright (c) 2019 - present AppSeed.us
4 | """
5 |
6 | import os
7 | from decouple import config
8 | from unipath import Path
9 |
10 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
11 | BASE_DIR = Path(__file__).parent
12 | CORE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
13 |
14 | # SECURITY WARNING: keep the secret key used in production secret!
15 | SECRET_KEY = config('SECRET_KEY', default='S#perS3crEt_1122')
16 |
17 | # SECURITY WARNING: don't run with debug turned on in production!
18 | DEBUG = config('DEBUG', default=True, cast=bool)
19 |
20 | # load production server from .env
21 | ALLOWED_HOSTS = ['localhost', 'localhost:85', '127.0.0.1', config('SERVER', default='127.0.0.1')]
22 | CSRF_TRUSTED_ORIGINS = ['http://localhost:85', 'http://127.0.0.1', 'https://' + config('SERVER', default='127.0.0.1')]
23 |
24 | # Application definition
25 |
26 | INSTALLED_APPS = [
27 | 'django.contrib.admin',
28 | 'django.contrib.auth',
29 | 'django.contrib.contenttypes',
30 | 'django.contrib.sessions',
31 | 'django.contrib.messages',
32 | 'django.contrib.staticfiles',
33 | 'apps.home' # Enable the inner home (home)
34 | ]
35 |
36 | MIDDLEWARE = [
37 | 'django.middleware.security.SecurityMiddleware',
38 | 'whitenoise.middleware.WhiteNoiseMiddleware',
39 | 'django.contrib.sessions.middleware.SessionMiddleware',
40 | 'django.middleware.common.CommonMiddleware',
41 | 'django.middleware.csrf.CsrfViewMiddleware',
42 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
43 | 'django.contrib.messages.middleware.MessageMiddleware',
44 | 'django.middleware.clickjacking.XFrameOptionsMiddleware',
45 | ]
46 |
47 | ROOT_URLCONF = 'core.urls'
48 | LOGIN_REDIRECT_URL = "home" # Route defined in home/urls.py
49 | LOGOUT_REDIRECT_URL = "home" # Route defined in home/urls.py
50 | TEMPLATE_DIR = os.path.join(CORE_DIR, "apps/templates") # ROOT dir for templates
51 |
52 | TEMPLATES = [
53 | {
54 | 'BACKEND': 'django.template.backends.django.DjangoTemplates',
55 | 'DIRS': [TEMPLATE_DIR],
56 | 'APP_DIRS': True,
57 | 'OPTIONS': {
58 | 'context_processors': [
59 | 'django.template.context_processors.debug',
60 | 'django.template.context_processors.request',
61 | 'django.contrib.auth.context_processors.auth',
62 | 'django.contrib.messages.context_processors.messages',
63 | ],
64 | },
65 | },
66 | ]
67 |
68 | WSGI_APPLICATION = 'core.wsgi.application'
69 |
70 | # Database
71 | # https://docs.djangoproject.com/en/3.0/ref/settings/#databases
72 |
73 | DATABASES = {
74 | 'default': {
75 | 'ENGINE': 'django.db.backends.sqlite3',
76 | 'NAME': 'db.sqlite3',
77 | }
78 | }
79 |
80 | # Password validation
81 | # https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
82 |
83 | AUTH_PASSWORD_VALIDATORS = [
84 | {
85 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
86 | },
87 | {
88 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
89 | },
90 | {
91 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
92 | },
93 | {
94 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
95 | },
96 | ]
97 |
98 | # Internationalization
99 | # https://docs.djangoproject.com/en/3.0/topics/i18n/
100 |
101 | LANGUAGE_CODE = 'en-us'
102 |
103 | TIME_ZONE = 'UTC'
104 |
105 | USE_I18N = True
106 |
107 | USE_L10N = True
108 |
109 | USE_TZ = True
110 |
111 | #############################################################
112 | # SRC: https://devcenter.heroku.com/articles/django-assets
113 |
114 | # Static files (CSS, JavaScript, Images)
115 | # https://docs.djangoproject.com/en/1.9/howto/static-files/
116 | STATIC_ROOT = os.path.join(CORE_DIR, 'staticfiles')
117 | STATIC_URL = '/static/'
118 |
119 | # Extra places for collectstatic to find static files.
120 | STATICFILES_DIRS = (
121 | os.path.join(CORE_DIR, 'apps/static'),
122 | )
123 |
124 |
125 | #############################################################
126 | #############################################################
127 |
--------------------------------------------------------------------------------
/core/staticfiles/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/app-generator/django-now-ui-dashboard/e4cfdac75e13187966036a27f97aebc5b4663149/core/staticfiles/.gitkeep
--------------------------------------------------------------------------------
/core/urls.py:
--------------------------------------------------------------------------------
1 | # -*- encoding: utf-8 -*-
2 | """
3 | Copyright (c) 2019 - present AppSeed.us
4 | """
5 |
6 | from django.contrib import admin
7 | from django.urls import path, include # add this
8 |
9 | urlpatterns = [
10 | path('admin/', admin.site.urls), # Django admin route
11 | path("", include("apps.authentication.urls")), # Auth routes - login / register
12 | path("", include("apps.home.urls")) # UI Kits Html files
13 | ]
14 |
--------------------------------------------------------------------------------
/core/wsgi.py:
--------------------------------------------------------------------------------
1 | # -*- encoding: utf-8 -*-
2 | """
3 | Copyright (c) 2019 - present AppSeed.us
4 | """
5 |
6 | import os
7 |
8 | from django.core.wsgi import get_wsgi_application
9 |
10 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')
11 |
12 | application = get_wsgi_application()
13 |
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '3.8'
2 | services:
3 | appseed-app:
4 | container_name: appseed_app
5 | restart: always
6 | env_file: .env
7 | build: .
8 | networks:
9 | - db_network
10 | - web_network
11 | nginx:
12 | container_name: nginx
13 | restart: always
14 | image: "nginx:latest"
15 | ports:
16 | - "85:85"
17 | volumes:
18 | - ./nginx:/etc/nginx/conf.d
19 | networks:
20 | - web_network
21 | depends_on:
22 | - appseed-app
23 | networks:
24 | db_network:
25 | driver: bridge
26 | web_network:
27 | driver: bridge
28 |
--------------------------------------------------------------------------------
/gunicorn-cfg.py:
--------------------------------------------------------------------------------
1 | # -*- encoding: utf-8 -*-
2 | """
3 | Copyright (c) 2019 - present AppSeed.us
4 | """
5 |
6 | bind = '0.0.0.0:5005'
7 | workers = 1
8 | accesslog = '-'
9 | loglevel = 'debug'
10 | capture_output = True
11 | enable_stdio_inheritance = True
12 |
--------------------------------------------------------------------------------
/manage.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | """
3 | Copyright (c) 2019 - present AppSeed.us
4 | """
5 |
6 | import os
7 | import sys
8 |
9 | def main():
10 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')
11 | try:
12 | from django.core.management import execute_from_command_line
13 | except ImportError as exc:
14 | raise ImportError(
15 | "Couldn't import Django. Are you sure it's installed and "
16 | "available on your PYTHONPATH environment variable? Did you "
17 | "forget to activate a virtual environment?"
18 | ) from exc
19 | execute_from_command_line(sys.argv)
20 |
21 | if __name__ == '__main__':
22 | main()
23 |
--------------------------------------------------------------------------------
/media/django-dashboard-nowui-intro.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/app-generator/django-now-ui-dashboard/e4cfdac75e13187966036a27f97aebc5b4663149/media/django-dashboard-nowui-intro.gif
--------------------------------------------------------------------------------
/media/django-dashboard-nowui-screen-icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/app-generator/django-now-ui-dashboard/e4cfdac75e13187966036a27f97aebc5b4663149/media/django-dashboard-nowui-screen-icons.png
--------------------------------------------------------------------------------
/media/django-dashboard-nowui-screen-login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/app-generator/django-now-ui-dashboard/e4cfdac75e13187966036a27f97aebc5b4663149/media/django-dashboard-nowui-screen-login.png
--------------------------------------------------------------------------------
/media/django-dashboard-nowui-screen-register.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/app-generator/django-now-ui-dashboard/e4cfdac75e13187966036a27f97aebc5b4663149/media/django-dashboard-nowui-screen-register.png
--------------------------------------------------------------------------------
/media/django-dashboard-nowui-screen-tables.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/app-generator/django-now-ui-dashboard/e4cfdac75e13187966036a27f97aebc5b4663149/media/django-dashboard-nowui-screen-tables.png
--------------------------------------------------------------------------------
/media/django-dashboard-nowui-screen-typography.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/app-generator/django-now-ui-dashboard/e4cfdac75e13187966036a27f97aebc5b4663149/media/django-dashboard-nowui-screen-typography.png
--------------------------------------------------------------------------------
/media/django-dashboard-nowui-screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/app-generator/django-now-ui-dashboard/e4cfdac75e13187966036a27f97aebc5b4663149/media/django-dashboard-nowui-screen.png
--------------------------------------------------------------------------------
/nginx/appseed-app.conf:
--------------------------------------------------------------------------------
1 | upstream webapp {
2 | server appseed_app:5005;
3 | }
4 |
5 | server {
6 | listen 85;
7 | server_name localhost;
8 |
9 | location / {
10 | proxy_pass http://webapp;
11 | proxy_set_header Host $host;
12 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "django-now-ui-dashboard",
3 | "mastertemplate": "boilerplate-code-django-dashboard",
4 | "version": "1.0.3",
5 | "description": "Template project - Django Boilerplate Code",
6 | "scripts": {},
7 | "repository": {
8 | "type": "git",
9 | "url": "https://github.com/app-generator/django-now-ui-dashboard"
10 | },
11 | "bugs": {
12 | "url": "https://github.com/app-generator/django-now-ui-dashboard/issues",
13 | "email": "support@appseed.us"
14 | },
15 | "author": "AppSeed App Generator
(https://appseed.us)",
16 | "engines": {
17 | "node": ">=10.0.0"
18 | },
19 | "dependencies": {},
20 | "devDependencies": {}
21 | }
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | asgiref==3.4.1
2 | autopep8==1.6.0
3 | dj-database-url==0.5.0
4 | Django==3.2.11
5 | gunicorn==20.1.0
6 | pycodestyle==2.8.0
7 | python-decouple==3.5
8 | pytz==2021.3
9 | sqlparse==0.4.2
10 | toml==0.10.2
11 | Unipath==1.1
12 | whitenoise==5.3.0
13 |
--------------------------------------------------------------------------------
/runtime.txt:
--------------------------------------------------------------------------------
1 | python-3.9
2 |
--------------------------------------------------------------------------------
/staticfiles/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/app-generator/django-now-ui-dashboard/e4cfdac75e13187966036a27f97aebc5b4663149/staticfiles/.gitkeep
--------------------------------------------------------------------------------