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

Provide option to use MySQL instead of PostgreSQL #111

Closed
pydanny opened this issue Jul 9, 2014 · 16 comments
Closed

Provide option to use MySQL instead of PostgreSQL #111

pydanny opened this issue Jul 9, 2014 · 16 comments

Comments

@pydanny
Copy link
Member

pydanny commented Jul 9, 2014

While I really prefer PostgreSQL, a lot of people use MySQL. With cookiecutter, we could pass in a new cookiecutter.json prompt:

{
"Database Engine (PostgreSQL or MySQL)": "PostgreSQL"
}

Then, in the settings template, we could use this variable for a Jinja2 conditional which would either set things up for PostgreSQL or MySQL.

@theskumar
Copy link
Contributor

Any particular reason not to ask the user to enter complete the database_url itself. ?

@pydanny
Copy link
Member Author

pydanny commented Sep 19, 2014

Because I like cookiecutter-django to do as much work as possible. 😉

@ad-m
Copy link
Contributor

ad-m commented Apr 22, 2015

Asking about database_url mean storing password in repo (mostly). It is important to add property requirements too.

@ad-m
Copy link
Contributor

ad-m commented Jul 4, 2015

[ ] providing mysql require requirements.txt update

@pydanny
Copy link
Member Author

pydanny commented Aug 9, 2015

Upon reflection this is an option I think cookiecutter-django shouldn't support. If someone wants to create a fork that mirrors cookiecutter-django except for the use of MySQL, we'll link to it from the top README.rst file.

@pydanny pydanny closed this as completed Aug 9, 2015
@dmarcelino
Copy link

Hi @pydanny, I've been reading about cookiecutter-django and it looks like a great way to make Django production ready but my current hosting tier only allows MySQL. After stumbling on this issue I'm wondering is Postgres a hard requirement for cookiecutter-django, as in it won't work without it, or does it mean that cookiecutter-django's DB related features won't work? Thanks

@ad-m
Copy link
Contributor

ad-m commented Sep 11, 2016

@dmarcelino , there is only requirements and DATABASE_URL changes. I start project with cookiecutter-django and replace all postgresql-related requirements to mysql.

@dmarcelino
Copy link

I see, thanks @ad-m!

@rwillmer
Copy link

Hi @pydanny I'm about to create a fork of the foundation fork with mysql support; do you want to reconsider your choice not to provide this inside cookiecutter itself? having more forks than we need just to provide a deployment choice seems overkill to me.

p.s. thanks for the cookiecutter project, it's really useful

@luzfcb
Copy link
Collaborator

luzfcb commented Jan 17, 2017

@rwillmer After so many years that this issue was opened, i think that the main reason not to add MySQL and any other database, at least to me, is because we do not want to add more unpaid workload to maintain this project.

@ad-m
Copy link
Contributor

ad-m commented Jan 18, 2017

@rwillmer , tell me about fork with MySQL support. I would like use them.

@pydanny
Copy link
Member Author

pydanny commented Jan 19, 2017

@rwillmer, much as MySQL support would be awesome, @luzfcb is correct in that it adds too much to our support load.

As always, if you can convince your organization to come into an agreement with us to provide ongoing paid support in Cookiecutter Django for MySQL (or Foundation), then we're willing to add it in.

@rwillmer
Copy link

I totally understand, @pydanny. I'll just do it for myself, and make the fork available if anyone wants it. Thanks again for Cookiecutter Django, it's terrific.

@RohitShende
Copy link

I totally understand, @pydanny. I'll just do it for myself, and make the fork available if anyone wants it. Thanks again for Cookiecutter Django, it's terrific.

Have you created the fork with mysql support ? Please provide the link

@davydany
Copy link

@rwillmer Could you provide the link?

@browniebroke
Copy link
Member

A link to a MySQL fork has been added to the readme in #3544

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

No branches or pull requests

9 participants