Skip to main content

No project description provided

Project description

LARA-django Samples

A LARAsuite Django application for experimental samples handling.

Installation

In the active LARA-django environment, install

cd  lara_django_samples
pip install .

Add "my_new_app" to your INSTALLED_APPS setting like this:

INSTALLED_APPS = [
    ...
    ' lara_django_samples',
]

Include the lara-django-app URLconf in your project urls.py like this:

path(' lara_django_samples', include('my_new_app.urls')),

Run

python manage.py makemigrations  lara_django_samples
python manage.py migrate 

to create the my_new_app database models.

In case you like to test the app, please load the demo data:

Start the development server

lara-django-dev runserver

and visit

http://127.0.0.1:8000/admin/

to create some entries (you'll need the Admin app enabled).

Environment variables

for development, please set

export DJANGO_ALLOWED_HOSTS=localhost
export DJANGO_SETTINGS_MODULE=lara_django.settings.devel

for production, please set

export DJANGO_SETTINGS_MODULE=lara_django.settings.production

if your media does not reside in the default media folder, please set environment variable to

export DJANGO_MEDIA_PATH='path/to/my/media'

to use user defined fixtures, please set: :: export

DJANGO_FIXTURE_PATH='path/to/user/fixtures'

Testing all applications

Basic Commands

Type checks

Running type checks with mypy:

$ mypy lara_django_samples

Test coverage

To run the tests, check your test coverage, and generate an HTML coverage report:

$ coverage run -m pytest
$ coverage html
$ open htmlcov/index.html

Running tests with pytest

$ pytest

License: GPLv3

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lara_django_samples-0.2.97-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file lara_django_samples-0.2.97-py3-none-any.whl.

File metadata

File hashes

Hashes for lara_django_samples-0.2.97-py3-none-any.whl
Algorithm Hash digest
SHA256 9f2fd6aa8e277ee47d6f27421a6e3ef45b96c161d2fd64d4805549accba1e8ef
MD5 ea80b354469fa9197000afe9866f5848
BLAKE2b-256 0d6c1be38939e87db52b76aa519571e8f97d10b225fcd48d96adf81f80de2148

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page