Skip to content

Commit 7ae0bbd

Browse files
committed
DOCS Improvement
1 parent 51178ce commit 7ae0bbd

File tree

7 files changed

+17
-12
lines changed

7 files changed

+17
-12
lines changed

cli/common.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
DIR_TMPL = os.path.join( DIR_ROOT, 'templates' )
1515
DIR_STATIC = os.path.join( DIR_ROOT, 'static' )
1616

17-
DIR_DJ_CORE = 'config'
18-
DIR_DJ_HOME = 'home'
17+
DIR_DJ_CONFIG = 'config'
18+
DIR_DJ_APP_DEFAULT = 'home'
1919

2020
FILE_DJ_MANAGE_s = 'manage.py'
2121
FILE_DJ_ENV_s = '.env'
2222
FILE_DJ_DEPS_s = 'requirements.txt'
23-
FILE_DJ_URLS_s = os.path.join( DIR_DJ_CORE , 'urls.py' )
24-
FILE_DJ_SETTINGS_s = os.path.join( DIR_DJ_CORE , 'settings.py' )
25-
FILE_DJ_INIT_s = os.path.join( DIR_DJ_CORE , '__init__.py' )
26-
FILE_DJ_MODELS_s = os.path.join( DIR_DJ_HOME , 'models.py' )
23+
FILE_DJ_URLS_s = os.path.join( DIR_DJ_CONFIG , 'urls.py' )
24+
FILE_DJ_SETTINGS_s = os.path.join( DIR_DJ_CONFIG , 'settings.py' )
25+
FILE_DJ_INIT_s = os.path.join( DIR_DJ_CONFIG , '__init__.py' )
26+
FILE_DJ_MODELS_s = os.path.join( DIR_DJ_APP_DEFAULT , 'models.py' )
2727

2828
FILE_CI_BUILD_s = 'build.sh'
2929
FILE_CI_RENDER_s = 'render.yaml'

cli/h_django.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .h_code_parser import *
1717

1818
def get_django():
19-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
19+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", DIR_DJ_CONFIG + ".settings")
2020
from collections import OrderedDict
2121
from django.apps import apps
2222
from django.conf import settings
@@ -44,7 +44,7 @@ def check_db_conn():
4444
print('Database unavailable, waiting 1 second...')
4545
time.sleep(1)
4646

47-
print('Database available!')
47+
print('Connecton OK')
4848

4949
def get_apps():
5050
retVal = []

db.sqlite3

0 Bytes
Binary file not shown.

render.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
- type: web
33
name: django-datta-latest
4-
plan: free
4+
plan: starter
55
env: python
66
region: frankfurt # region should be same as your database region.
77
buildCommand: "./build.sh"

templates/accounts/login.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@
2727
</a>
2828
</div>
2929
<h4 class="text-center f-w-500 mt-4 mb-3">Login</h4>
30-
30+
<p class="text-center mb-3">
31+
<span>Test Account: <strong>test / Pass12__</strong></span>
32+
<br />
33+
<span>ADMIN: <strong>admin / Pass12__</strong></span>
34+
</p>
35+
3136
{% if form.non_field_errors %}
3237
{% for error in form.non_field_errors %}
3338
<span class="d-block text-danger mb-3">{{ error }}</span>

templates/dyn_api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h5 class="m-b-10">
1919
</div>
2020
<ul class="breadcrumb">
2121
<li class="breadcrumb-item">
22-
<a href="{% url 'dynamic_api' %}">Dynamic API</a>
22+
<a href="{% url 'dynamic_api' %}">Dynamic API</a> - Read <a target="" href="https://app-generator.dev/docs/developer-tools/dynamic-api.html">Documentation</a>.
2323
</li>
2424
</ul>
2525
</div>

templates/dyn_dt/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h5 class="m-b-10">
3636
<div class="card">
3737
<div class="card-header">
3838
<h5>
39-
Available Routes - defined in <strong>settings.DYNAMIC_DATATB</strong>
39+
Available Routes - defined in <strong>settings.DYNAMIC_DATATB</strong> - Read <a target="" href="https://app-generator.dev/docs/developer-tools/dynamic-datatables.html">Documentation</a>.
4040
</h5>
4141
</div>
4242
<div class="card-body">

0 commit comments

Comments
 (0)