Open redex-ai opened 11 months ago
The changes include creating a new Django view, form, URL patterns, and HTML templates to handle user input and display of the QR code, as well as refactoring the existing QR code generation script to be used by the view.
Create a new Django view function to handle the GET request for the webpage where the user can input the URL, and the POST request to receive the URL, generate the QR code, and then display it on the same webpage.
Add a new URL pattern that maps the URL where the user will input the URL to the view function created in 'views.py'. The changes in this file is dependent on : -
Create a new Django form class to handle the input of the URL from the user.
Create a new HTML template file for the webpage where the user inputs the URL. This will include the form created in 'forms.py'. The changes in this file is dependent on : -
Create a new HTML template file to display the generated QR code image after the user submits the URL. The changes in this file is dependent on : -
Add new CSS styles for the QR code input and display pages. The changes in this file is dependent on : -
Refactor the QR code generation logic into a function that can be called with a URL parameter, so it can be used by the new view function in 'views.py'.
After implementing the changes, the development team should test the new webpage functionality both locally and on a staging environment. They should also ensure that the QR code generation works as expected and that the user experience is smooth. Once testing is complete, the changes can be deployed to production.
After merging the code, the developer should run 'python manage.py makemigrations' and 'python manage.py migrate' to apply any changes to the database schema (if any). Additionally, the developer should collect static files using 'python manage.py collectstatic' if any static files were added or changed.
PULL REQUEST : https://github.com/redex-ai/QR-Code_generator/pull/19
UPDATED PULL REQUEST
UPDATED PULL REQUEST
Fetch input url from user through a webpage and then create QR code based on it. Display it in the same webpage.