Spaces:
Runtime error
Runtime error
An Hang
commited on
social page integration (#31)
Browse files- requirements.txt +2 -0
- src/db.sqlite3 +0 -0
- src/pgsns/settings.py +8 -1
- src/pgsns/urls.py +1 -0
requirements.txt
CHANGED
|
@@ -1,3 +1,5 @@
|
|
| 1 |
django
|
| 2 |
requests
|
| 3 |
django-allauth
|
|
|
|
|
|
|
|
|
| 1 |
django
|
| 2 |
requests
|
| 3 |
django-allauth
|
| 4 |
+
django-crispy-forms
|
| 5 |
+
crispy-bootstrap4
|
src/db.sqlite3
CHANGED
|
Binary files a/src/db.sqlite3 and b/src/db.sqlite3 differ
|
|
|
src/pgsns/settings.py
CHANGED
|
@@ -42,7 +42,10 @@ INSTALLED_APPS = [
|
|
| 42 |
'allauth.account',
|
| 43 |
'allauth.socialaccount',
|
| 44 |
'helloworld',
|
| 45 |
-
'landing'
|
|
|
|
|
|
|
|
|
|
| 46 |
]
|
| 47 |
|
| 48 |
AUTHENTICATION_BACKENDS = [
|
|
@@ -142,4 +145,8 @@ STATIC_URL = 'static/'
|
|
| 142 |
# Default primary key field type
|
| 143 |
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
|
| 144 |
|
|
|
|
|
|
|
| 145 |
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|
|
|
|
|
|
|
|
| 42 |
'allauth.account',
|
| 43 |
'allauth.socialaccount',
|
| 44 |
'helloworld',
|
| 45 |
+
'landing',
|
| 46 |
+
'social',
|
| 47 |
+
'crispy_forms',
|
| 48 |
+
"crispy_bootstrap4",
|
| 49 |
]
|
| 50 |
|
| 51 |
AUTHENTICATION_BACKENDS = [
|
|
|
|
| 145 |
# Default primary key field type
|
| 146 |
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
|
| 147 |
|
| 148 |
+
CRISPY_TEMPLATE_PACK = 'bootstrap4'
|
| 149 |
+
|
| 150 |
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
| 151 |
+
|
| 152 |
+
LOGIN_REDIRECT_URL = 'post-list'
|
src/pgsns/urls.py
CHANGED
|
@@ -24,4 +24,5 @@ urlpatterns = [
|
|
| 24 |
path('helloworld/', views.helloworld, name="helloworld"),
|
| 25 |
path('accounts/', include('allauth.urls')),
|
| 26 |
path('', include('landing.urls')),
|
|
|
|
| 27 |
]
|
|
|
|
| 24 |
path('helloworld/', views.helloworld, name="helloworld"),
|
| 25 |
path('accounts/', include('allauth.urls')),
|
| 26 |
path('', include('landing.urls')),
|
| 27 |
+
path('social/', include('social.urls'))
|
| 28 |
]
|