Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django5 / py3 #9

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*~
__pycache__
collmex.ini
pyvenv.cfg
db.sqlite3
/static
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion ebk_online_registration/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# SECRET_KEY = '=+v)38%sihkn)g(wdnv1y1m@+@*@(ldrnbiw$v$e%qgdedw^3%'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True

ALLOWED_HOSTS = ['localhost', 'mitgliedwerden.eigenbaukombinat.de']
USE_X_FORWARDED_HOST = True
Expand Down
6 changes: 3 additions & 3 deletions ebk_online_registration/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.contrib import admin
from django.urls import path, include


urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('registration.urls')),
path('admin/', admin.site.urls),
path('', include('registration.urls')),
]
6 changes: 3 additions & 3 deletions registration/urls.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from django.conf.urls import url
from django.urls import path, include

from . import views

urlpatterns = [
url(r'^$', views.register, name='register'),
url(r'^preview/?$', views.preview, name='preview'),
path('register/', views.register),
path('preview/', views.preview),
]
3 changes: 0 additions & 3 deletions registration/views.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#coding:utf8
from django.shortcuts import render
from django.core.mail import send_mail, BadHeaderError
from localflavor.generic.checksums import luhn
from localflavor.generic.checksums import ean
from localflavor.generic.checksums import ean
import ast
import datetime
from .models import *
Expand Down
11 changes: 7 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Django==1.10.5
django-countries==4.0
django-localflavor==1.4.1
uwsgi==2.0.18
asgiref==3.7.2
Django==5.0.2
django-countries==7.5.1
django-localflavor==4.0
python-stdnum==1.19
sqlparse==0.4.4
typing_extensions==4.9.0