Skip to content

Commit 3811fa3

Browse files
committed
updated requirements and added login redirect for authusers
1 parent 0fc274b commit 3811fa3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs: # A basic unit of work in a run
3333
- "/usr/local/lib/python3.6/site-packages"
3434
- run:
3535
command: |
36-
pipenv run python manage.py test
36+
pipenv run python django_school/manage.py test
3737
- store_test_results: # Upload test results for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
3838
path: test-results
3939
- store_artifacts: # Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/

django_school/django_school/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
urlpatterns = [
77
path('', include('classroom.urls')),
8-
path('accounts/login/', auth_views.login, name='login', kwargs={'redirect_field_name': '/', 'redirect_authenticated_user': True}),
8+
path('accounts/login/', auth_views.LoginView.as_view(redirect_authenticated_user=True), name='login'),
99
path('accounts/', include('django.contrib.auth.urls')),
1010
path('accounts/signup/', classroom.SignUpView.as_view(), name='signup'),
1111
path('accounts/signup/student/', students.StudentSignUpView.as_view(), name='student_signup'),

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Django==2.0.6
2-
django-crispy-forms==1.7.2
1+
Django==2.2.3
2+
django-crispy-forms==1.7.2

0 commit comments

Comments
 (0)