init profiles

This commit is contained in:
starnakin 2023-10-24 18:42:43 +02:00
parent 83c8aee895
commit fb5ff0dad7
11 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,7 @@
from django.db import models
# Create your models here.
# Create your models here.
class Profile(models.Model):
uuid = models.CharField()
username = models.CharField()
avatar_url = models.CharField()

View File

@ -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'

View File

@ -0,0 +1,7 @@
from django.urls import path
from . import views
urlpatterns = [
path("<str:uuid>", views.ProfilePage.as_view(), name="profile_page"),
]

View File

@ -34,6 +34,7 @@ ALLOWED_HOSTS = ["*"]
INSTALLED_APPS = [
'accounts.apps.AccountsConfig',
'profiles.apps.ProfilesConfig',
'django.contrib.admin',
'django.contrib.auth',

View File

@ -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')),
]