|
This mostly a general design question. I'm trying to clean up some code about 100 lines of it is just me defining some parameters for several different webpages I make. Is it kosher for me to just pickle these presets?
|
# ¿ Sep 18, 2014 18:35 |
|
|
# ¿ May 30, 2024 11:18 |
|
QuarkJets posted:What's the purpose of pickling them? You're still going to have to have lines of code that define those parameters , more lines that pickle those parameters , and then you'll have to add lines of code to unpickle them. That's way messier than just putting your parameters into a separate .py and importing from it the specific parameters that you need Good point. I'll do that.
|
# ¿ Sep 18, 2014 18:51 |
|
I have a project at work that generates a static HTML document from a plaintext input that is used as a weekly email. Right now the code is pretty messy and I have time to clean it up. I would also like to learn Django or Flask. Do you guys have a suggestion for a module that handles templated HTML generation?
|
# ¿ Nov 14, 2014 16:38 |
|
good jovi posted:If you're using Django, its builtin templating engine is totally fine. Otherwise, jinja is a good way to go. Great, thanks!
|
# ¿ Nov 14, 2014 17:07 |
|
I'm in charge of a very exciting project at work that involves filtering results of an API and standardizing/storing the information in a database so that we can do in depth analysis on the data set. I'm pretty confident in my ability to write Python but this is the first time I've built my own database. Should I be using SQLAlchemy as an ORM? This book was published in 2008, would it still be relevant to me? http://shop.oreilly.com/product/9780596516147.do
|
# ¿ Apr 24, 2015 15:53 |
|
KICK BAMA KICK posted:SQLAlchemy just went 1.0 like a week ago and that book was written for 0.5 I think. I'm sure a lot of it still works but I bet the gritty details you'd hope to learn from a textbook are precisely the things that are now out of date. Haven't read it myself though for that reason. Thanks!
|
# ¿ Apr 24, 2015 18:34 |
|
|
# ¿ May 30, 2024 11:18 |
|
Hey, I'm building a database application for my team inside a larger company. The purpose of this application is to collect some XML data from a website then have a user add extra tags/QC before pushing this data to the central SalesForce database. I think I'm going to use SQLAlchemy with a SQLite3 database. I still haven't decided on a frontend, though. I have more knowledge of WebDev then GUI, so I was thinking of making a Google Chrome App. Does this make sense? Are there other alternatives I should consider?
|
# ¿ May 14, 2015 15:57 |