init profiles
This commit is contained in:
parent
83c8aee895
commit
fb5ff0dad7
@ -1,3 +1,7 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class Profile(models.Model):
|
||||
uuid = models.CharField()
|
||||
username = models.CharField()
|
||||
avatar_url = models.CharField()
|
@ -1,6 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ProfilsConfig(AppConfig):
|
||||
class ProfilesConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'profils'
|
||||
name = 'profiles'
|
7
django/trancendence/profiles/urls.py
Normal file
7
django/trancendence/profiles/urls.py
Normal file
@ -0,0 +1,7 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path("<str:uuid>", views.ProfilePage.as_view(), name="profile_page"),
|
||||
]
|
@ -34,6 +34,7 @@ ALLOWED_HOSTS = ["*"]
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'accounts.apps.AccountsConfig',
|
||||
'profiles.apps.ProfilesConfig',
|
||||
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
|
@ -20,4 +20,5 @@ from django.urls import path, include
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('api/accounts/', include('accounts.urls')),
|
||||
path('api/profiles/', include('accounts.urls')),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user