0.0.5
registration page
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
# from django.conf.urls import url
|
from django.urls import path
|
||||||
# from AuthApp.js_views import *
|
# from AuthApp.js_views import *
|
||||||
# from AuthApp.import_funcs import *
|
# from AuthApp.import_funcs import *
|
||||||
from AuthApp.views import *
|
from AuthApp.views import *
|
||||||
@@ -7,6 +7,8 @@ from django.contrib.auth import views
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
|
||||||
|
path('registration/', registration_View, name='registration_page'),
|
||||||
|
|
||||||
# ajax ----------------
|
# ajax ----------------
|
||||||
# url(r'^login$', user_login_View_ajax, name='user_login_View_ajax'),
|
# url(r'^login$', user_login_View_ajax, name='user_login_View_ajax'),
|
||||||
# url(r'^login_confirm$', user_login_confirm_ajax, name='user_login_confirm_ajax'),
|
# url(r'^login_confirm$', user_login_confirm_ajax, name='user_login_confirm_ajax'),
|
||||||
|
|||||||
@@ -13,6 +13,19 @@ from django.utils.translation import gettext as _
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
|
def registration_View(request):
|
||||||
|
|
||||||
|
# if request.method != 'POST':
|
||||||
|
# raise Http404
|
||||||
|
#
|
||||||
|
# data = request.POST
|
||||||
|
|
||||||
|
Dict = {}
|
||||||
|
|
||||||
|
t = loader.get_template('pages/p_registration.html')
|
||||||
|
return HttpResponse(t.render(Dict, request))
|
||||||
|
|
||||||
|
|
||||||
def create_personal_user(data, creator):
|
def create_personal_user(data, creator):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -44,8 +44,6 @@ INSTALLED_APPS = [
|
|||||||
'ckeditor',
|
'ckeditor',
|
||||||
'ckeditor_uploader',
|
'ckeditor_uploader',
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'GeneralApp',
|
'GeneralApp',
|
||||||
'AuthApp',
|
'AuthApp',
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from django.conf.urls.static import static
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('admin/', admin.site.urls),
|
# path('admin/', admin.site.urls),
|
||||||
path('ckeditor/', include('ckeditor_uploader.urls')),
|
path('ckeditor/', include('ckeditor_uploader.urls')),
|
||||||
|
|
||||||
# path('', include('GeneralApp.urls')),
|
# path('', include('GeneralApp.urls')),
|
||||||
|
|||||||
10
templates/pages/p_registration.html
Normal file
10
templates/pages/p_registration.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Title</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user