Skip to main content

Managing document files for projects.

Project description

huscy.project_documents

PyPi Version PyPi Status PyPI Downloads PyPI License Python Versions Django Versions

Requirements

  • Python 3.8+
  • A supported version of Django

Tox tests on Django versions 3.2, 4.1 and 4.2.

Installation

To install husy.project_documents simply run:

pip install huscy.project_documents

Configuration

We need to hook huscy.project_documents into our project. This package depends on huscy.projects so we have to add this as well. We also have to add further requirements for django_guardian, django_restframework and drf_nested_routers.

  1. Add packages into your INSTALLED_APPS at settings module:
INSTALLED_APPS = (
    ...
    'guardian',
    'rest_framework',
    'rest_framework_nested',

    'huscy.project_documents',
    'huscy.projects',
)
  1. Create huscy.project_documents database tables by running:
python manage.py migrate

Development

After checking out the repository you should run

make install

to install all development and test requirements and

make migrate

to create the database tables. We assume you have a running postgres database with a user huscy and a database also called huscy. You can easily create them by running

sudo -u postgres createdb huscy
sudo -u postgres createuser -d huscy
sudo -u postgres psql -c "ALTER USER huscy WITH PASSWORD '123'"
sudo -u postgres psql -c "ALTER DATABASE huscy OWNER TO huscy;"

Project details


Download files

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

Source Distribution

huscy.project_documents-1.4.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

huscy.project_documents-1.4.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file huscy.project_documents-1.4.0.tar.gz.

File metadata

File hashes

Hashes for huscy.project_documents-1.4.0.tar.gz
Algorithm Hash digest
SHA256 0e31195e04a52c27f90b2df0d7bdb5e2244bf8e8beec53f894ebf458ef86d57b
MD5 4d0ed95acd6cc6f2810b15b26ae85367
BLAKE2b-256 e958b1c3fed80f22b335d8e77309a2ad81ccf6ba386376e80cb11d12ce7915ac

See more details on using hashes here.

File details

Details for the file huscy.project_documents-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for huscy.project_documents-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 308cd78bf7fe5861d3fe4d5b9e31f2cee173e6bda3752fb4e2786d3729d721e2
MD5 2bff4d38c89ae12f58f062c3f0b875c4
BLAKE2b-256 c86acf1d88dd29cde250c3e77b44167953e54b84be5a9d311a09fea52a1fc048

See more details on using hashes here.

Supported by

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