Skip to content

fathur-lalokalabs/labzero

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cookiecutter Django project templates for LaLoka Labs.

Usage

cookiecutter gh:lalokalabs/labzero

That will generate new directory <your_project_name>.

cd <your_project_name>
poetry install
poetry run <your_project_name> manage runserver
nvm use 14.17.1
npm install

Python dependencies manager is using Poetry.

Frontend Stack

Refer FE for more details.

Structure

Main application code should be in src/<your_project_name>/ - this will be your "django project and app".

├── package.json
├── pyproject.toml
├── src
│   └── myapp
│       ├── __init__.py
│       ├── settings.py
│       ├── urls.py
│       └── wsgi.py
├── sub-src
│   └── myapp_cli
│       ├── myapp_cli
│       │   └── __init__.py
│       └── setup.py
├── tailwind.config.js
└── webpack.mix.js

sub-src/ directory is a workaround due to poetry not installing console_scripts entry-ppoints as real script and causing issue with django runserver command.

Read more details of the project setup here.

Deployment

Labzero based project can be deployed using webship.

On production, all cli should be accessed through /app/<project_name>/current/.venv/bin/. For example:-

/app/myapp/current/.venv/bin/myapp manage shell

About

Django project templates

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 57.5%
  • JavaScript 42.0%
  • Shell 0.5%