mirror of
https://github.com/Rushilwiz/spaceout.git
synced 2025-04-08 14:00:16 -04:00
Set up ping
This commit is contained in:
parent
394a3be380
commit
9ba3c8b98e
|
@ -1,3 +1,5 @@
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
from django.contrib.auth.admin import UserAdmin
|
||||||
|
from .models import User
|
||||||
|
|
||||||
# Register your models here.
|
admin.site.register(User, UserAdmin)
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
from django.contrib.auth.models import AbstractUser
|
||||||
|
|
||||||
|
|
||||||
# Create your models here.
|
# Create your models here.
|
||||||
|
class User(AbstractUser):
|
||||||
|
pass
|
|
@ -16,6 +16,7 @@ Including another URLconf
|
||||||
from django.urls import path
|
from django.urls import path
|
||||||
from .views import *
|
from .views import *
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# path('', ),
|
path('ping/', PingView.as_view()),
|
||||||
]
|
]
|
||||||
|
|
|
@ -134,3 +134,7 @@ USE_TZ = True
|
||||||
# https://docs.djangoproject.com/en/3.1/howto/static-files/
|
# https://docs.djangoproject.com/en/3.1/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
|
## Custom
|
||||||
|
|
||||||
|
AUTH_USER_MODEL = 'api.User'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user