mirror of
https://github.com/Sosokker/ku-polls.git
synced 2025-12-19 05:24:05 +01:00
1. Refine UI/UX Apply Tailwinds Rewrite all page 2. Add new feature to model Add new field - description - long - short - use default + editable instead of auto_add_now - track up vote - Change timezone - Add time left track -Add participant -Add up/down vote attribute -- Choice - Add total_vote -Add calculate_percentage of vote 3. Refine View -Redirect instead of home page -Add context to result, detail view -Apply ChartJS -Delete home
11 lines
303 B
Python
11 lines
303 B
Python
from django.contrib import admin
|
|
from django.urls import include, path
|
|
|
|
from django.views.generic import RedirectView
|
|
|
|
urlpatterns = [
|
|
path('', RedirectView.as_view(pattern_name='polls:index'), name='home_redirect'),
|
|
path("polls/", include("polls.urls")),
|
|
path('admin/', admin.site.urls),
|
|
]
|