Skip to content

aaarif/general-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Install django
sudo pip install django

# Migrate sqlite database:
./manage.py makemigrations
./manage.py migrate

# Create super user account:
./manage.py createsuperuser

# Run server
./manager.py runserver

# For insert Users and Friends data, go to:
http://localhost:8000/admin/task

# Retrieve data:
http://localhost:8000/user/{id}

Example:
http://localhost:8000/user/1

Result:
{"friends": [2], "id": 1, "name": "Arif Riswanto"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages