Skip to content

Commit

Permalink
Update requirments.txt and README
Browse files Browse the repository at this point in the history
  • Loading branch information
VikSil committed Aug 30, 2024
1 parent 138f399 commit bc5aeb6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,50 @@ To start the server execute this command `python manage.py runserver`. If succes

The website will now be available on the localhost. Input the following url in the browser/APi client to access documentation listing all endpoint: `http://127.0.0.1:8000/api`. Other endpoints will be accessible on `http://127.0.0.1:8000/<appname>/<endpoint>`

### Monkey fixes

**If you encounter below error when starting the server**:

File "C:\Python311\Lib\site-packages\corsheaders\__init__.py", line 1, in <module>
from .checks import check_settings # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\corsheaders\checks.py", line 2, in <module>
from collections import Sequence
ImportError: cannot import name 'Sequence' from 'collections' (C:\Python311\Lib\collections\__init__.py)

you will need to manually edit the file `C:\Python311\Lib\site-packages\corsheaders\checks.py`

Change the following line:

from collections import Sequence

to

from collections.abc import Sequence

<br>


**If you encounter below error when starting the server**:

File "C:\Python311\Lib\site-packages\corsheaders\middleware.py", line 10, in <module>
from .signals import check_request_enabled
File "C:\Python311\Lib\site-packages\corsheaders\signals.py", line 6, in <module>
check_request_enabled = Signal(providing_args=['request'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Signal.__init__() got an unexpected keyword argument 'providing_args'

you will need to manually edit the file `C:\Python311\Lib\site-packages\corsheaders\signals.pyy`

Change the following line:

check_request_enabled = Signal(providing_args=['request'])

to

check_request_enabled = Signal('request')


## Past sprints

Code and release notes of each of the past releases can be found in the respective branch of this repo, as per table below.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Django==5.1
Django==5.0.8
django-cors-headers==2.0.0
django_cron==0.6.0
django_environ==0.11.2
Expand Down

0 comments on commit bc5aeb6

Please sign in to comment.