Skip to content

Commit

Permalink
API app created and added to the project.
Browse files Browse the repository at this point in the history
  • Loading branch information
ameek committed Aug 1, 2018
1 parent 70e8205 commit d0cdfa8
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 0 deletions.
Empty file.
3 changes: 3 additions & 0 deletions medicine_reminder/api/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
5 changes: 5 additions & 0 deletions medicine_reminder/api/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class ApiConfig(AppConfig):
name = 'api'
Empty file.
3 changes: 3 additions & 0 deletions medicine_reminder/api/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions medicine_reminder/api/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
3 changes: 3 additions & 0 deletions medicine_reminder/api/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.shortcuts import render

# Create your views here.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions medicine_reminder/medicine_reminder/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework', # this line added the rest framework to this django project
'api', #this is the app added to the project
]

MIDDLEWARE = [
Expand Down
5 changes: 5 additions & 0 deletions support.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ $conda install -c conda-forge djangorestframework

step3 3:
add 'rest_framework' in setting.py

setp 4: create an application
$ python manage.py startapp app_name

step 5: add the app to ta project, setting.py>INSTALLED_APPS

0 comments on commit d0cdfa8

Please sign in to comment.