Skip to main content

No project description provided

Project description

huscy.projects

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

Requirements

  • Python 3.6+
  • A supported version of Django

Tox tests on Django versions 2.2, 3.0 and 3.1.

Installation

To install husy.projects simply run:

pip install huscy.projects

Configuration

We need to hook huscy.projects into our project.

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

	'huscy.projects',
)
  1. Add Django Guardian ObjectPermissionBackend to AUTHENTICATION_BACKENDS
AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'guardian.backends.ObjectPermissionBackend',
)
  1. Create huscy.projects database tables by running:
python manage.py migrate

Development

After checking out the repository you should activate any virtual environment. Install all development and test dependencies:

make install

Create migration files and database tables:

make makemigrations
make migrate

We assume you're having a running postgres database with a user huscy and a database also called huscy. You can easily create them by running

sudo -u postgres createuser -d huscy
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE huscy TO huscy;"
sudo -u postgres psql -c "ALTER USER huscy WITH PASSWORD '123';"
sudo -u postgres createdb 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.projects-0.2.0a14.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

huscy.projects-0.2.0a14-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

Details for the file huscy.projects-0.2.0a14.tar.gz.

File metadata

  • Download URL: huscy.projects-0.2.0a14.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for huscy.projects-0.2.0a14.tar.gz
Algorithm Hash digest
SHA256 156f9471d2df8d7e2dfed1f5fb35ee51054822b542486237f1ca6536e4055b45
MD5 07a24fcfe891ef69674a32aa1db99528
BLAKE2b-256 d14923a1bdcb2add38119df49db4b1957d21b9f979a70815f5d6a88ad5c7e28b

See more details on using hashes here.

File details

Details for the file huscy.projects-0.2.0a14-py3-none-any.whl.

File metadata

  • Download URL: huscy.projects-0.2.0a14-py3-none-any.whl
  • Upload date:
  • Size: 39.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for huscy.projects-0.2.0a14-py3-none-any.whl
Algorithm Hash digest
SHA256 6aede38279cc0beb08a9fa45a78c772e5e76b2d6c43283432dfe3f2c47ec5d01
MD5 40307f233a257b9ad85f232e00bc4481
BLAKE2b-256 bb634d2f38dcd868de8b244e0141e7985cc8f9221c9a1f3c367ced44daf7e4a0

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