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.1a16.tar.gz (13.5 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.1a16-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file huscy.projects-0.2.1a16.tar.gz.

File metadata

  • Download URL: huscy.projects-0.2.1a16.tar.gz
  • Upload date:
  • Size: 13.5 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.1a16.tar.gz
Algorithm Hash digest
SHA256 b0185288110e5dd37f27ba8b03899f4dccd10e3d98e94c66f347ecf353442c4b
MD5 3b0d53301331307802df94e5dcf0da57
BLAKE2b-256 c930a97184c02b67edc83b345842b9c193fb5057199637dae040080d58625e66

See more details on using hashes here.

File details

Details for the file huscy.projects-0.2.1a16-py3-none-any.whl.

File metadata

  • Download URL: huscy.projects-0.2.1a16-py3-none-any.whl
  • Upload date:
  • Size: 33.4 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.1a16-py3-none-any.whl
Algorithm Hash digest
SHA256 25282621e5f7991e7742f542d0bd60fa22c2f325652cdd91f564704b1468a347
MD5 5e4c22adc8f8bef40e809561e4b72ae3
BLAKE2b-256 7643fbd694ccf80f439548b70e7df871589e900e073ed054a4680e72c49490e8

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