Listing and creating users via REST API
Project description
huscy.users
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.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.users',
)
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
Release history Release notifications | RSS feed
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.2.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for huscy.users-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cee46c78d117e1ab83a8948c06d3c0f0a289e936258e48a62a6971450fa0e37 |
|
MD5 | 769247b2f2f04c93e0c57948015ed9ea |
|
BLAKE2b-256 | 5c61fe1190296cad4e624c6d6be0e6b77532809e8b00e6ce8668a3a98dfded7e |