Quick Start
This guide will help you get started with Django Datta Able PRO
Compile the product
To compile the product and use it locally, Python3 should be installed and accessible via the terminal. The source code can be downloaded from the official repository or downloaded in ZIP format from the product page.
Download the sources and unzip the archive.
$ cd django-datta-able-pro
Create a virtual environment
$ virtualenv env
$ source env/bin/activate
Install modules
$ pip3 install -r requirements.txt
Create the tables by running a Django migration
$ python manage.py makemigrations
$ python manage.py migrate
Start the application
$ python manage.py runserver
If all goes well, we can access Datta Able Django PRO in the browser http://127.0.0.1:8000/
.

Codebase structure
The project is coded using a simple and intuitive structure presented below:
< PROJECT ROOT >
|
|-- core/ # Implements app logic and serve the static assets
| |-- settings.py # Django app bootstrapper
| |-- static/
| |-- templates/ # Templates used to render pages
| |-- includes/ # HTML chunks and components
| |-- layouts/ # Master pages
| |-- accounts/ # Authentication pages
| |
| index.html # The default page
| *.html # All other HTML pages
|
|-- authentication/ # Handles auth routes (login and register)
|-- app/ # A simple app that serve HTML files
|
|-- requirements.txt # Development modules - SQLite storage
|-- .env # Inject Configuration via Environment
|-- manage.py # Start the app - Django default start script
|
|-- ************************************************************************
The bootstrap flow
Django bootstrapper
manage.py
usescore/settings.py
as the main configuration filecore/settings.py
loads the app magic from.env
fileRedirect the guest users to Login page
Unlock the pages served by app node for authenticated users
Deployment
The app is provided with a basic configuration to be executed in Docker, a popular virtualization software. To start the project inside a Docker container, please type the following commands:
1# - UNZIP the archive and change the current directory
cd django-datta-able-pro
2# - Download the required packages
sudo docker-compose pull
3# - Build the Docker packages
sudo docker-compose build
4# - Start the dockerized application
sudo docker-compose up
By visitinghttp://localhost:5005
the browser, we should see the app running.
Last updated
Was this helpful?