Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixtures working #42

Merged
merged 2 commits into from
Aug 29, 2019
Merged

fixtures working #42

merged 2 commits into from
Aug 29, 2019

Conversation

tylerIams
Copy link
Member

I've got fixtures working, and that's all I've included in this PR. You should be able to run docker-compose up followed by docker-compose run web python3 manage.py loaddata fixtures.json and it'll be up and running. All the passwords for the users are "topsecret123".

Comment on future PR:
This application also needs to be able to sync with the salesforce database, which I attempted to do first with django-q (which was giving an error when I tried to schedule a task that made it possible to only schedule tasks to work once -- it wasn't recognizing a parameter that is automatically passed when a task is scheduled for Daily or Hourly). I think this is a problem with Django-q, and because they don't seem to be supporting the library anymore, I decided to try to switch to Celery. This is what has taken time, as I have another issue there. In another PR (which I may create this evening) I will upload some code that outlines the issue I am having with Celery and perhaps you could fix it quickly or point me in the right direction. I believe the issue I'm having is caused by Celery trying to access the database from the same port as Docker.

@tylerIams tylerIams requested a review from etrepum August 27, 2019 23:19
@tylerIams
Copy link
Member Author

I've got fixtures working, and that's all I've included in this PR. You should be able to run docker-compose up followed by docker-compose run web python3 manage.py loaddata fixtures.json and it'll be up and running. All the passwords for the users are "topsecret123".

Comment on future PR:
This application also needs to be able to sync with the salesforce database, which I attempted to do first with django-q (which was giving an error when I tried to schedule a task that made it possible to only schedule tasks to work once -- it wasn't recognizing a parameter that is automatically passed when a task is scheduled for Daily or Hourly). I think this is a problem with Django-q, and because they don't seem to be supporting the library anymore, I decided to try to switch to Celery. This is what has taken time, as I have another issue there. In another PR (which I may create this evening) I will upload some code that outlines the issue I am having with Celery and perhaps you could fix it quickly or point me in the right direction. I believe the issue I'm having is caused by Celery trying to access the database from the same port as Docker.

Update: I think I've found a potential solution in here: going to implement that tonight

Copy link
Member

@etrepum etrepum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR should also update the README with documentation about how to use the fixtures

@tylerIams
Copy link
Member Author

This PR should also update the README with documentation about how to use the fixtures

I've got this, can I merge?

@etrepum etrepum merged commit aa836c9 into master Aug 29, 2019
@etrepum etrepum deleted the fixtures branch August 29, 2019 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants