- Clone this repo locally.
- To install all required libs to your venv run: pip install -r requirements.txt
- To setup db run:
- fill test_task/settings.py/DATABASES with your postgresql server credentials;
- python manage.py makemigrations;
- python manage.py migrate.
- For testing issues create super user running the next command:
- python manage.py createsuperuser
- Run server with the command:
- python manage.py runserver
- Users import:
- open admin panel;
- go to Users section;
- at the top, select csv-file with users data, hit "Upload";
- on the reloaded page you can see the newly imported users.
- Retrieving all users list:
- use /api/users/ endpoint.
- Retrieving users list according to their registration date:
- use /api/users/ endpoint passing the registration date as 'date' get parameter (e.g.: /api/users/date_joined/?date=2018-05-09 , to retrive users registered on 2018-05-09).