diff --git a/core/__pycache__/models.cpython-38.pyc b/core/__pycache__/models.cpython-38.pyc index c605c17..80bf91d 100644 Binary files a/core/__pycache__/models.cpython-38.pyc and b/core/__pycache__/models.cpython-38.pyc differ diff --git a/core/__pycache__/urls.cpython-38.pyc b/core/__pycache__/urls.cpython-38.pyc index 42a794a..34ac955 100644 Binary files a/core/__pycache__/urls.cpython-38.pyc and b/core/__pycache__/urls.cpython-38.pyc differ diff --git a/core/migrations/0002_quoteuser.py b/core/migrations/0002_quoteuser.py new file mode 100644 index 0000000..11478c0 --- /dev/null +++ b/core/migrations/0002_quoteuser.py @@ -0,0 +1,31 @@ +# Generated by Django 3.1.2 on 2020-10-30 19:07 + +import django.contrib.auth.models +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('auth', '0012_alter_user_first_name_max_length'), + ('core', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='QuoteUser', + fields=[ + ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='auth.user')), + ], + options={ + 'verbose_name': 'user', + 'verbose_name_plural': 'users', + 'abstract': False, + }, + bases=('auth.user',), + managers=[ + ('objects', django.contrib.auth.models.UserManager()), + ], + ), + ] diff --git a/core/migrations/__pycache__/0002_quoteuser.cpython-38.pyc b/core/migrations/__pycache__/0002_quoteuser.cpython-38.pyc new file mode 100644 index 0000000..896effc Binary files /dev/null and b/core/migrations/__pycache__/0002_quoteuser.cpython-38.pyc differ diff --git a/core/models.py b/core/models.py index e436d81..01e244d 100644 --- a/core/models.py +++ b/core/models.py @@ -1,5 +1,6 @@ import json from django.db import models +from django.contrib.auth.models import User # Create your models here. class CalgaryAddress(models.Model): @@ -12,4 +13,7 @@ class CalgaryAddress(models.Model): def toDict(self): return { 'address': self.address - } \ No newline at end of file + } + +class QuoteUser(User): + pass \ No newline at end of file diff --git a/core/templates/registration/login.html b/core/templates/registration/login.html new file mode 100644 index 0000000..a16bc92 --- /dev/null +++ b/core/templates/registration/login.html @@ -0,0 +1,9 @@ +{% extends 'common/master.html' %} +{% block body %} +

Login

+
+ {% csrf_token %} + {{ form.as_p }} + +
+{% endblock %} \ No newline at end of file diff --git a/core/urls.py b/core/urls.py index b4c9357..f428f42 100644 --- a/core/urls.py +++ b/core/urls.py @@ -1,6 +1,7 @@ -from django.urls import path +from django.urls import path, include from . import views urlpatterns = [ - path('', views.index, name='index') + path('', views.index, name='index'), + path('', include('django.contrib.auth.urls')), ]