Generating a report CSV and send it to an email – Python / Django Rest Framework
How to start project.
- Create a folder in your machine
- Create a virtual environment
- Start the virtual environment
. venv/bin/activate(Linux)venv/Scripts/Activate(Windows)
- Inside your venv folder clone the project
git clone https://github.com/alexlopesbr/forgot-password.git
- In your-new-folder/venv/forgot-password
pip install -r requirements.txtto install the project’s dependenciespython manage.py migrateto generate your databasepython3 manage.py createsuperuserto create the adminpython3 manage.py runserverto start the server
- Open your browser and go to http://127.0.0.1:8000/admin/
- Login with the admin credentials
- Now you can see you user and some info in admin panel
Using the functionality
POST {{localhost}}/core/log-generator
body of the request:
