This is a Django project that uses an email instead of a username for users. I've used version 3.2 of Django because it's the latest LTS version.
Docker | Docker compose |
---|
$ git clone https://github.com/kiarashfz/email_base_registeration.git
$ ls
runner.sh manage.py ...
$ touch .env
POSTGRES_DB=postgres
POSTGRES_NAME=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
SECRET_KEY=YOUR_SECRET_KEY
DEBUG=1
ALLOWED_HOST=*
DJANGO_LOG_LEVEL=INFO
NOTE: You should put your secure data in .env file. so change it in production mode.
NOTE: This command will download some docker images from dockerhub, so you may need to use a VPN.
$ ./runner.sh
or
$ sh runner.sh
0.0.0.0
or
YOUR.OWN.SERVER.IP
- See also for API documentations
0.0.0.0/redoc
or
YOUR.OWN.SERVER.IP/redoc
NOTE: Now you have a superuser to using hostname/admin panel or using admin permission required APIs
username/email: admin@admin.admin
password: admin
WARNING:
Change superuser password in production mode for security reasons.
You can also use postman collection placed in documentation and import it to your own postman.