Skip to content

Commit

Permalink
Merge pull request #20 from LopesLs/feat/automatic-reload
Browse files Browse the repository at this point in the history
Adding reload browser and changing dependencies
  • Loading branch information
LopesLs committed Feb 18, 2024
2 parents ce8413b + 139ecc1 commit 5c32420
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
7 changes: 7 additions & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",

"website.apps.WebsiteConfig",
"flashcard.apps.FlashcardConfig",
"apostilas.apps.ApostilasConfig",

"allauth",
"allauth.account",
"allauth.socialaccount",

"django_browser_reload",
]

MIDDLEWARE = [
Expand All @@ -60,7 +64,10 @@
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",

"allauth.account.middleware.AccountMiddleware",

"django_browser_reload.middleware.BrowserReloadMiddleware",
]

ROOT_URLCONF = "config.urls"
Expand Down
3 changes: 2 additions & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
from django.conf.urls.static import static

urlpatterns = [
path("", include("website.urls")),
path("__reload__/", include("django_browser_reload.urls")),
path("flashcards/", include("flashcard.urls")),
path("apostilas/", include("apostilas.urls")),
path("accounts/", include("allauth.urls")),
path("", include("website.urls")),
path("admin/", admin.site.urls),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r requirements.txt
django-browser-reload==1.12.1
pip-upgrader==1.4.15
13 changes: 7 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
asgiref==3.7.2
certifi==2023.11.17
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
cryptography==41.0.7
cryptography==42.0.3
defusedxml==0.7.1
Django==5.0.1
django-allauth==0.60.1
Django==5.0.2
django-allauth==0.61.1
django-browser-reload==1.12.1
idna==3.6
oauthlib==3.2.2
pycparser==2.21
PyJWT==2.8.0
python-dotenv==1.0.0
python-dotenv==1.0.1
python3-openid==3.2.0
requests==2.31.0
requests-oauthlib==1.3.1
sqlparse==0.4.4
typing_extensions==4.9.0
urllib3==2.1.0
urllib3==2.2.1

0 comments on commit 5c32420

Please sign in to comment.