Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django backend (Preliminary) #2

Closed
3 of 6 tasks
kaysoky opened this issue Apr 20, 2015 · 2 comments
Closed
3 of 6 tasks

Django backend (Preliminary) #2

kaysoky opened this issue Apr 20, 2015 · 2 comments
Assignees

Comments

@kaysoky
Copy link
Owner

kaysoky commented Apr 20, 2015

  • Setup Django backend
  • Implement user registration and login forms
  • STRETCH: Add some actual security to user login
  • Implement API for data storage
  • Implement API for data retrieval (Paginated)
  • Implement static pages for map-based front end
@kaysoky kaysoky self-assigned this Apr 20, 2015
@kaysoky
Copy link
Owner Author

kaysoky commented Apr 26, 2015

@amberMZ The REST API for storing data is essentially complete. When you store data, you'll be making an HTTP POST.

Basic authentication is enough. In Python, you'd do:

import requests
import base64

requests.post('<ENDPOINT>/data/', data="<JSON DATA>", 
  headers={"Content-Type": "application/json", 
    'Authorization': 'Basic %s' % base64.b64encode('<USERNAME>:<PASSWORD>')})

@kaysoky
Copy link
Owner Author

kaysoky commented Apr 28, 2015

Splitting remaining sub-issues into other issues:

@kaysoky kaysoky closed this as completed Apr 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant