diff --git a/django/trancendence/accounts/models.py b/django/trancendence/accounts/models.py index 71a8362..d49766e 100644 --- a/django/trancendence/accounts/models.py +++ b/django/trancendence/accounts/models.py @@ -1,3 +1,3 @@ from django.db import models -# Create your models here. +# Create your models here. \ No newline at end of file diff --git a/django/trancendence/accounts/urls.py b/django/trancendence/accounts/urls.py new file mode 100644 index 0000000..600253b --- /dev/null +++ b/django/trancendence/accounts/urls.py @@ -0,0 +1,9 @@ +from django.urls import path + +from . import views + +urlpatterns = [ + path("login", views.Login.as_view(), name="login"), + path("create", views.Create.as_view(), name="create"), + path("delete", views.Delete.as_view(), name="delete"), +] \ No newline at end of file diff --git a/django/trancendence/accounts/views.py b/django/trancendence/accounts/views.py index 91ea44a..b5f336d 100644 --- a/django/trancendence/accounts/views.py +++ b/django/trancendence/accounts/views.py @@ -1,3 +1,12 @@ from django.shortcuts import render +from django.views import View # Create your views here. +class Login(View): + pass + +class Create(View): + pass + +class Delete(View): + pass \ No newline at end of file diff --git a/django/trancendence/trancendence/settings.py b/django/trancendence/trancendence/settings.py index c3fe979..1890027 100644 --- a/django/trancendence/trancendence/settings.py +++ b/django/trancendence/trancendence/settings.py @@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-18!@88-wm-!skec9^n-85n(f$my^#mh3!#@f=_e@=*arh_yyjj # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ["*"] # Application definition diff --git a/django/trancendence/trancendence/urls.py b/django/trancendence/trancendence/urls.py index 533943f..1dfcb28 100644 --- a/django/trancendence/trancendence/urls.py +++ b/django/trancendence/trancendence/urls.py @@ -15,8 +15,9 @@ Including another URLconf 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin -from django.urls import path +from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), + path('api/accounts/', include('accounts.urls')), ]