Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions application/apps.py

This file was deleted.

19 changes: 0 additions & 19 deletions application/migrations/0002_auto_20190410_1458.py

This file was deleted.

17 changes: 0 additions & 17 deletions application/serializer.py

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed application/static/application/images/background.jpg
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed application/static/application/images/planeta.jpeg
Diff not rendered.
5 changes: 0 additions & 5 deletions application/static/application/styles/base.css

This file was deleted.

23 changes: 0 additions & 23 deletions application/templates/application/layout/base.html

This file was deleted.

10 changes: 0 additions & 10 deletions application/templates/application/signin.html

This file was deleted.

25 changes: 0 additions & 25 deletions application/templates/application/signup.html

This file was deleted.

9 changes: 0 additions & 9 deletions application/urls.py

This file was deleted.

32 changes: 0 additions & 32 deletions application/views.py

This file was deleted.

5 changes: 2 additions & 3 deletions project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'application', # include app
#'django_summernote',
'rest_framework', # add django rest framework
'users',
'rest_framework',
#'rest_framework_authtoken',
#'djoser',
]
Expand Down
17 changes: 13 additions & 4 deletions project/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin

from django.urls import path, include
from django.contrib import admin

from rest_framework.routers import DefaultRouter
from users.views import RegistrationView, UserViewSet

router = DefaultRouter()

router.register(r'users', UserViewSet)

urlpatterns = [
# path('admin/', admin.site.urls),
path('', include('application.urls'))
]
path('api/', include(router.urls)),
path('api/signup/', RegistrationView.as_view(), name='signup'),
path('admin/', admin.site.urls),
]
File renamed without changes.
3 changes: 3 additions & 0 deletions snippets/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 snippets/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class SnippetsConfig(AppConfig):
name = 'snippets'
File renamed without changes.
3 changes: 3 additions & 0 deletions snippets/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.
6 changes: 3 additions & 3 deletions application/tests.py → snippets/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.test import TestCase

# Create your tests here.
from django.test import TestCase

# Create your tests here.
3 changes: 3 additions & 0 deletions snippets/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.
Empty file added users/__init__.py
Empty file.
10 changes: 5 additions & 5 deletions application/admin.py → users/admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib import admin

from .models import User

admin.site.register(User)
from django.contrib import admin
from .models import User
admin.site.register(User)
5 changes: 5 additions & 0 deletions users/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class UsersConfig(AppConfig):
name = 'users'
Loading