-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add support for a cache_url for Django #126
Comments
I also wonder if it would be worth moving dj-database-url, dj-email-url and a new django-cache-url into a repo like django-setting-urls or something? |
I'm open to a PR adding cache_url support for Django. |
For clarification ... you're open to supporting the cache_url inside this codebase or just using another codebase. If the later, it seems like it might be good to consider bringing in all URLs (i.e. Database, Email, and Cache). |
I'd strongly prefer to keep the cache url-parsing code outside of this package (as we do with database_url and email_url). |
I can certainly understand why you wouldn't want that code inside this repository, even though I really liked how django-environ had everything in its repository. So the way I see it, there are only a couple of options.
Out of all of those, I like 1 the best for me personally because it's the least amount of work and I wouldn't have to support it. I like 3 for its simplicity of only needing to include one library in this library. But I personally don't think I would have the time for a while to work on either 2 or 3 and the probably with all of these is finding a solution that will work long term and that can be supported. I wouldn't mind coding something up that would work well, but I don't really like or want to maintain it (triage issues, review PRs, etc.). |
BTW, I created this issue in django-cache-url to see if the owner (@ghickman) would want to bring that library back. |
I worked with ghickman to bring back django-cache-url and I can make a PR to include it in environs. I would also like to get your thoughts on long-term support. I think it would be worth considering creating a Github organization called environs and then create two new projects in the organization one for Django and Flask that both use environs, but have all the URLs configs that are needed for Django and Flask. This way if your working on a Django project, for example, you could just install one dependency. So instead of installing with This would also hopefully setup environs and sub-projects for Django and Flask for others to help support the projects, with the goal of environs and the sub-projects being the defacto libraries for any project that needs 12factor configuration. Any thoughts? |
Great!
I'm open to this. There's no actual need for
Are you volunteeering to be maintainer of django-environs? =) |
I could probably try to find time to help get it started and also be a maintainer, but I don't want to be the maintainer. My higher-level thinking is that it would be great to find several maintainers and find a workflow and structure for contributing that has been successful in other projects and adopt it for the environs organization. The goals would be:
|
OK. An alternative for the short-term could be to keep Django code in environs. It's quite minimal ATM. There's advantages from a maintenance perspective--shared infra and boilerplate, avoids API divergence (since everything gets tested together). I'd be happy to give you maintainer privs so we can share the load. We can always re-consider splitting the Django stuff into a separate lib later. A less important point: the name "django-environs" may confuse people given that "django-environ" already exists. I foretell that the issue trackers for both projects will get issues for the other 😄 |
I like your short-term idea. So the first step would be to create a PR that adds the needed Django URLs to this project? That initial PR might be biggish and I would want some feedback so we could keep the code clean. Any ideas on how to make that easily digestible. It might be could to talk about what shared utils to create also. |
Sure, maybe start a WIP PR to get things going. One route you might go if you end up adding lots of these Django parsing libs is to publish a kitchen-sink lib that packages them all together. Your call on that. |
Closing, as the OP has been addressed and is released in 7.2.0 |
Sounds good. Maybe someday I'll get around into consolidating all the URL configs into one library. 🙂 |
I just switched to this library from https://github.com/joke2k/django-environ. One thing that it had was a way to set a cache_url for configuring Django's cache framework. It would be nice if you could just update the setup.py to install https://github.com/ghickman/django-cache-url, however it looks like it's deprecated.
The text was updated successfully, but these errors were encountered: