Add registration and login templates plus UI stuff, moderation
This commit is contained in:
0
apps/profiles/__init__.py
Normal file
0
apps/profiles/__init__.py
Normal file
3
apps/profiles/admin.py
Normal file
3
apps/profiles/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
5
apps/profiles/apps.py
Normal file
5
apps/profiles/apps.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ProfilesConfig(AppConfig):
|
||||
name = 'profiles'
|
||||
0
apps/profiles/migrations/__init__.py
Normal file
0
apps/profiles/migrations/__init__.py
Normal file
3
apps/profiles/models.py
Normal file
3
apps/profiles/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
2
apps/profiles/templates/profiles/profile.html
Normal file
2
apps/profiles/templates/profiles/profile.html
Normal file
@ -0,0 +1,2 @@
|
||||
{% extends "base_page.html" %}
|
||||
Profile page
|
||||
3
apps/profiles/tests.py
Normal file
3
apps/profiles/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
7
apps/profiles/urls.py
Normal file
7
apps/profiles/urls.py
Normal file
@ -0,0 +1,7 @@
|
||||
from django.conf.urls import url
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', views.Profile.as_view(), name='profile'),
|
||||
]
|
||||
5
apps/profiles/views.py
Normal file
5
apps/profiles/views.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.views.generic.base import TemplateView
|
||||
|
||||
|
||||
class Profile(TemplateView):
|
||||
template_name = "profiles/profile.html"
|
||||
Reference in New Issue
Block a user