Closed hellerbarde closed 12 years ago
Thanks! I have merged this, but when I tested it with chrome it didn't work 100% (sometimes went under, sometimes didn't). I think I am just going to move the bottom admin bar to the side, or maybe get rid of the bar completely and have small white buttons.
oh thats interesting. i didnt think it would misbehave in different browsers... it is one of the fundamental concepts in css, after all.
haha, btw pulling your latest changes into my customizations branch completely broke my simple. i didnt push it yet, but it just throws a 500 internal server error. i am very new to flask, how do i enable debugging mode? cherrypy just prints on the console, can i enable that in flask somehow?
cheers
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
orf reply@reply.github.com wrote:
Thanks! I have merged this, but when I tested it with chrome it didn't work 100% (sometimes went under, sometimes didn't). I think I am just going to move the bottom admin bar to the side, or maybe get rid of the bar completely and have small white buttons.
Reply to this email directly or view it on GitHub: https://github.com/orf/simple/pull/8#issuecomment-4949386
Weird, mine seems to work fine after the pull. If you edit simple.py and add the following line after line 11
app.debug = True
then run it. it will give you a nice stack trace and a web shell to poke around objects. Don't forget to remove this after you are done! Let me know if the error is related to my code and I will get it fixed ASAP.
i will try it some time today. i probably havent been clear enough: i pulled it into a branch called "customizations", and then it broke, so i think it was probably related to me fracking up a merge.
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
orf reply@reply.github.com wrote:
Weird, mine seems to work fine after the pull. If you edit simple.py and add the following line after line 11 (app = Flask(name)): app.debug = True
then run it. it will give you a nice stack trace and a web shell to poke around objects. Don't forget to remove this after you are done! Let me know if the error is related to my code and I will get it fixed ASAP.
Reply to this email directly or view it on GitHub: https://github.com/orf/simple/pull/8#issuecomment-4949793
uh... It was the database. i didn't realize there was a datamodel change in the intermediate commits.
How do you propose to retain blog posts through data model changes (i have little to no experience in those matters.)
Well I intend to use (this)[http://readthedocs.org/docs/sqlalchemy-migrate/en/v0.7.2/] library to handle migrations if needed in the future, but I don't intend to mess with the models much more now, so I am going to delay implementing it until I have to.
That library looks a bit hacky but it supports sqlite3 well, but I lothe to add another dependency to the project.
yeah, i would agree with you on refraining from adding a dep unless you have to. maybe there could be a separate file just to migrate the db, so the core functionality does not have to depend on another library? It would be a bit less elegant though. maybe there could be a json-export/json-import kind of solution with defaults for new fields. just an idea that could be implemented with the python stdlib from version 2.6 forward.
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
orf reply@reply.github.com wrote:
Well I intend to use (this)[http://readthedocs.org/docs/sqlalchemy-migrate/en/v0.7.2/] library to handle migrations if needed in the future, but I don't intend to mess with the models much more now, so I am going to delay implementing it until I have to.
That library looks a bit hacky but it supports sqlite3 well, but I lothe to add another dependency to the project.
Reply to this email directly or view it on GitHub: https://github.com/orf/simple/pull/8#issuecomment-4951275
(sorry for changing the whole compiled css, but i could not find out what setting you used for compiling the css-sass thing.)