An application to load about 500,000 rows of csv data into the database, full CRUD operations and advanced search and filters. Also solves the server timeout error when uploading via the browser on a server (By integrating with AWS)
-
clone the repository
-
create a virtual environment running python 3.8 (or above) - and activate it
python3 -m venv env
to create, andsource env/bin/activate
to activate (mac and linux) orsource env/Scripts/activate
(windows withbash
) -
cd into the root of the django project (i.e the path containing manage.py)
-
install requirements
pip install -r requirements.txt
-
Create a local postgres instance (or use an existing one)
-
Set your DB and make sure the environment variable names are consistent with (mirapayments/settings.py)
-
run
python manage.py migrate
to create database tables -
run
python manage.py createsuperuser
to create a superuser(An initial user that has access to the admin site) -
run
python manage.py runserver
to start the development server
Please see https://docs.celeryproject.org/en/stable/index.html for more information.
- Startup Celery worker to receive tasks:
celery -A mysite worker -l info