Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

minegit/SimplePagination

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimplePagination

This is a project in python using Django framework.

This project requires 1. Django (Installed) 2. mysql (installed with proper cred) 3. python libraries

Please update my,cnf according to your mysql creds.

Then run python manage.py run migrations Then run the app by python manage.py runserver 8000

It will run the server in the localhost:8000/ port.

Import Country.sql to mysql for setting the database.

REST API

http://127.0.0.1:8000/chat/get?page_id=2&count=10 or http://127.0.0.1:8000/chat/get?page_id=2

Sample Response : { status: 200, //in case of any error status will be 200 message: [ "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland" ] } or { status : 201, //in case of any error status will be 201 message : "Suitable error message" }

Here count parameter is optional for the usage. If not given it will take 10 as default value. But if value of 'count' is given and it is invalid then suitable error message will be thrown and default value of 10 will not be considered.

About

This is a project in python using Django framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.