-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from opennorth/upgrade
Upgrade Python and Django
- Loading branch information
Showing
17 changed files
with
73 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Lint | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- run: pip install --upgrade flake8 isort | ||
- run: flake8 . | ||
- run: isort . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ | |
settings.py | ||
/paramiko.log | ||
/staticfiles | ||
/static | ||
/data | ||
/static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
from django.views.i18n import JavaScriptCatalog | ||
|
||
from finder import views | ||
|
||
urlpatterns = [ | ||
url(r'^jsi18n/$', JavaScriptCatalog.as_view(packages=['finder']), name='javascript-catalog'), | ||
url(r'^setlang/$', views.set_language, name='set_language'), | ||
url(r'^api/$', views.api, name='apidoc'), | ||
url(r'^data/$', views.data, name='data'), | ||
url(r'^demo/$', views.demo, name='demo'), | ||
url(r'^government/$', views.government, name='government'), | ||
url(r'^privacy/$', views.privacy, name='privacy'), | ||
url(r'^$', views.index), | ||
path('jsi18n/', JavaScriptCatalog.as_view(packages=['finder']), name='javascript-catalog'), | ||
path('setlang/', views.set_language, name='set_language'), | ||
path('api/', views.api, name='apidoc'), | ||
path('data/', views.data, name='data'), | ||
path('demo/', views.demo, name='demo'), | ||
path('government/', views.government, name='government'), | ||
path('privacy/', views.privacy, name='privacy'), | ||
path('', views.index), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
from django.conf.urls import include, url | ||
from django.conf import settings | ||
from django.contrib import admin | ||
from django.contrib.staticfiles import views | ||
from django.urls import include, path, re_path | ||
|
||
admin.autodiscover() | ||
|
||
urlpatterns = [ | ||
url(r'^admin/', admin.site.urls), | ||
url('', include('boundaries.urls')), | ||
url('', include('representatives.urls')), | ||
url('', include('postcodes.urls')), | ||
url('', include('finder.urls')), | ||
re_path(r'^admin/', admin.site.urls), | ||
path('', include('boundaries.urls')), | ||
path('', include('representatives.urls')), | ||
path('', include('postcodes.urls')), | ||
path('', include('finder.urls')), | ||
] | ||
|
||
if settings.DEBUG: | ||
urlpatterns += [ | ||
re_path(r"^static/(?P<path>.*)$", views.serve), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[isort] | ||
line_length = 119 | ||
profile = black | ||
|
||
[flake8] | ||
max-line-length = 119 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters