Skip to content

Commit

Permalink
feat: add backend app
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovicentegc committed Jun 5, 2020
1 parent 7dd911e commit 2b5a19e
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/serializers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from rest_framework import serializers
from frontend.models.subscribers import Subscribers
from backend.models.subscribers import Subscribers

class SubscribersSerializer(serializers.ModelSerializer):
class Meta:
Expand Down
2 changes: 1 addition & 1 deletion api/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from frontend.models.subscribers import Subscribers
from backend.models.subscribers import Subscribers
from .serializers import SubscribersSerializer
from rest_framework import generics

Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions backend/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class BackendConfig(AppConfig):
name = 'backend'
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Migration(migrations.Migration):

dependencies = [
('frontend', '0001_initial'),
('backend', '0001_initial'),
]

operations = [
Expand Down
File renamed without changes.
Empty file added backend/models/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions backend/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 backend/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.
1 change: 1 addition & 0 deletions rtd/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'django.contrib.staticfiles',
'rest_framework',
'frontend',
'backend',
'api'
]

Expand Down

0 comments on commit 2b5a19e

Please sign in to comment.