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-proCreate a virtual environment
$ virtualenv env
$ source env/bin/activateInstall modules
$ pip3 install -r requirements.txt Create the tables by running a Django migration
$ python manage.py makemigrations
$ python manage.py migrateStart the application
$ python manage.py runserverIf 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.pyusescore/settings.pyas the main configuration filecore/settings.pyloads the app magic from.envfileRedirect 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-pro2# - Download the required packages
sudo docker-compose pull3# - Build the Docker packages
sudo docker-compose build4# - Start the dockerized application
sudo docker-compose upBy visitinghttp://localhost:5005the browser, we should see the app running.
Last updated
Was this helpful?