Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Fix args as str #25

Open
wants to merge 307 commits into
base: master
Choose a base branch
from
Open

Conversation

vincent-lg
Copy link

In my case (Django 1.11, running on Windows, Python 2.7) the arguments to a Django commands are not processed as integers or floats. It means that the duration and sleep argument are always str and are mostly ignored by Python. Since it doesn't seem to be the "normal" behavior and I couldn't find a resource that explained the reason for this strange side-effect, I added a conditional cast which might be somewhat ugly. Lacking any better information, I would say this works for me and shouldn't break anything for others... hopefully.

Thanks for the great app!

philippeowagner and others added 30 commits May 17, 2015 23:29
…ster

Async execution of tasks and refactoring.
Changes an implicit import of models_completed in the admin.py file to be an absolute explicit import. This makes it work in python3.
philippeowagner and others added 30 commits August 7, 2018 13:24
…arn-if-cant-reach-db

Catch Database Outage Errors
Even though a PR was made to modify the fields for MySQL's utf8mb4 charset (max key length 191), the initial migration was still trying to create it at 255. Perhaps modifying the initial migration isn't the right way to fix this, but I'm not sure what else to do.
Modify initial migration to use acceptable max_lengths on indexed fields for MySQL utf8mb4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.