Ham radio contest management website for the CQTU by DK0TU https://dk0tu.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

urls.py 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. """cqtu URL Configuration
  2. The `urlpatterns` list routes URLs to views. For more information please see:
  3. https://docs.djangoproject.com/en/1.10/topics/http/urls/
  4. Examples:
  5. Function views
  6. 1. Add an import: from my_app import views
  7. 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
  8. Class-based views
  9. 1. Add an import: from other_app.views import Home
  10. 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
  11. Including another URLconf
  12. 1. Import the include() function: from django.conf.urls import url, include
  13. 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
  14. """
  15. from django.conf.urls import url, include
  16. from django.contrib import admin
  17. from django.contrib.auth import views as auth_views
  18. #from django.views.generic.edit import CreateView
  19. #from django.contrib.auth.forms import UserCreationForm
  20. #from contest.forms import CustomUserCreationForm
  21. from contest.views import index, register, profile
  22. urlpatterns = [
  23. url('^$', index, name="index"),
  24. url('^cqtufm2019/', include('contest.urls', namespace='contest')),
  25. url(r'^admin/', admin.site.urls),
  26. url(r'^login/$', auth_views.login, name='login'),
  27. url(r'^logout/$', auth_views.logout, {'next_page': '/'}, name='logout'),
  28. url(r'^register/$', register, name='register'),
  29. url(r'^profile/$', profile, name='profile'),
  30. #url(r'^register/$', CreateView.as_view(
  31. # template_name='registration/register.html',
  32. # form_class=CustomUserCreationForm,
  33. # success_url='/',
  34. #), name='register'),
  35. ]