Git Add user to local repository

user@Sys208:~/works/Project1/data-entry/Data-entry-tool$ git add -A && git commit -m “Initial Commit.” *** Please tell me who you are. Run git config –global user.email “you@example.com” git config –global user.name “Your Name” to set your account’s default identity. Omit –global to set the identity only in this repository. fatal: unable to auto-detect email address (got ‘user@Sys208.(none)’) To set…

API Contracts on Django REST API

Curl Request to verify API Contracts, on Django REST Framework Request a particular file API Contracts domain/files/(id) : Fetch the specified file for download curl example: sys2@sys2-HP-Compaq-8100-Elite-SFF-PC:~$ curl –user vidya:root@123 http://127.0.0.1:8000/files/26/ {“url”:”http://127.0.0.1:8000/files/26/”,”file”:”http://127.0.0.1:8000/uploads/uploads/file1.csv”} browser example: http://127.0.0.1:8000/files/26/ domain/files : Displays a list of files uploaded curl example: sys2@sys2-HP-Compaq-8100-Elite-SFF-PC:~$ curl –user vidya:roo.0.1:8000/files/ {“count”:2,”next”:null,”previous”:null,”results”:[{“url”:”http://127.0.0.1:8000/files/26/”,”file”:”http://127.0.0.1:8000/uploads/uploads/file1.csv”},{“url”:”http://127.0.0.1:8000/files/28/”,”file”:”http://127.0.0.1:8000/uploads/uploads/file2.csv”}]} browser example: http://127.0.0.1:8000/files/ POST A…

getting started with Django project

Following are the steps to set up  the Django project: 1.Create virtual environment for  the particular project and install django. a. Install virtual environment: sudo apt-get install python virtualenv. b. Create projects folder. c. Create folder for project1. d. virtualenv project1env –> command to create virtual environment for particular project1 e. source poject1env/bin/activate –> command…

Django Assignment

Steps:                 1. Uploading the file: It will upload the file and save that file into upload folder created by user. Once you click on the upload button it will redirect to  other page it says whether the file is uploaded successfully or not.                 2. Listing the files: This will displays the…