Compare commits
No commits in common. "57f9d342da5eb7d7aeccb19615aa22ae591119af" and "0bdbbdbaadde565af08134194ef4768aef19885c" have entirely different histories.
57f9d342da
...
0bdbbdbaad
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
|||
__pycache__/
|
||||
*.pyc
|
||||
*.sw*
|
||||
db.sqlite3
|
||||
|
|
|
@ -129,7 +129,3 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/2.0/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
SITE_ID = 1
|
||||
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||
|
|
|
@ -1,10 +1,21 @@
|
|||
"""URLs for the membersystem"""
|
||||
"""membersystem URL Configuration
|
||||
|
||||
The `urlpatterns` list routes URLs to views. For more information please see:
|
||||
https://docs.djangoproject.com/en/2.0/topics/http/urls/
|
||||
Examples:
|
||||
Function views
|
||||
1. Add an import: from my_app import views
|
||||
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
||||
Class-based views
|
||||
1. Add an import: from other_app.views import Home
|
||||
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
||||
Including another URLconf
|
||||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.conf.urls import url
|
||||
from django.urls import include, path
|
||||
from django.urls import path
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^accounts/', include('allauth.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
]
|
||||
|
|
|
@ -2,4 +2,4 @@ from django.db import models
|
|||
|
||||
|
||||
class Profile(models.Model):
|
||||
user = models.OneToOneField('auth.User', on_delete=models.CASCADE)
|
||||
user = models.OneToOneField('auth.User')
|
||||
|
|
Loading…
Reference in a new issue