Skip to main content

Listing and creating users via REST API

Project description

huscy.users

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

Requirements

  • Python 3.6+
  • A supported version of Django

Tox tests on Django versions 2.2, 3.1 and 3.2.

Installation

To install husy.users simply run:

pip install huscy.users

Configuration

The huscy.users application has to be hooked into the project.

Add huscy.users to INSTALLED_APPS in settings module:

INSTALLED_APPS = (
	...

	'huscy.subjects',
)

Development

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

make install

Create database tables:

python manage.py 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 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.users-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

huscy.users-1.0.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file huscy.users-1.0.0.tar.gz.

File metadata

  • Download URL: huscy.users-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for huscy.users-1.0.0.tar.gz
Algorithm Hash digest
SHA256 72e2f75ed252aab4fe438c815319290a1dda91080fba97fffe88f6cbb5baf269
MD5 7e20965c7499cebf52df3dcced267c25
BLAKE2b-256 eb56798ed395de991d8c4a27e921c18bdc567bea7b1a91098cc3a38891dacf34

See more details on using hashes here.

File details

Details for the file huscy.users-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: huscy.users-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for huscy.users-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7841b18f9ce1d8e9b024c412a15569f73b6fa1eea9dbb10e2f4bda463d74149
MD5 a4a4cec75ba3d57b47bc04f0a3d322b5
BLAKE2b-256 20af37147cf345fbfb0fcdd31a9d741bb58b906f04a7e3df7e36ef5a8136247a

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