2009-7-23

22:57 chronos
I mean, can I define in Django the rules to rotate a table and a pysql to optimze a task?
22:57 kyrix
chronos: have you done the django tutorial?
22:57 chronos
yeah... but for mysql
22:57 chronos
not tryed pgsql yet
22:58 chronos
we trying to discover if is better wait to mysql 6 or start with pgsql 8
22:58 kyrix
same thing. django abstracts the database with the ORM. you can always bypass the ORM to do whatever you want of course. but then your not using the ORM.
22:59 chronos
k, that is the point
22:59 chronos
thx
22:59 kyrix
chronos: so in short. it really doesnt matter what you use. django is "database" agnostic. as long as the backends are supported.
22:59 romankrv1
I have url as "GET /refo/?q=%D0%98%D0%B2%D0%B0 HTTP/1.1
22:59 romankrv1
How it convert to utf8 that it use it views?
23:01 discorpia
is there any good howto/documentation on how to create an admin dashboard? i.e. add some stuff next to the model lists
23:01 fualo
if I'm doing a reverse and the kwargs are for pub_date.month, is this the format? url = reverse('event_year', kwargs={'pub_date__year':cal.year, 'pub_date__month':cal.month, 'pub_date__day':day[0]})
23:01 fualo
or are there periods
23:03 kyrix
discorpia: just google customizing django admin.
23:03 shadfc
fualo: the keys should match your named capture groups in your urls.py
23:04 discorpia
kyrix, i have, i find very little concrete about adding stuff to those pages.. and if i create my own views i can't find how to add the model list
23:07 kyrix
23:10 amccloud
django is saying "OperationalError: attempt to write a readonly database" even though I just successfully created the sqlite db with syncdb :/
23:11 andstuff
is it possible to nest a "for key,value" inside of a for tag in a django template?
23:11 discorpia
kyrix, i saw that one, but never understood how they added the extra menus etc. and if i do a custom view i wouldn't now how to generate a list with all available models
23:11 kyrix
discorpia: just look at the contrib.admin code. its just plain django
23:12 kyrix
or take a look at how the projects mentioned in the list do it.
23:13 kyrix
amccloud: probably a permissions issue
23:14 discorpia
kyrix, cool, thx for the tip
23:16 discorpia
kyrix: another question i'm having: is it possible to access the message_user field from my own views, or only through modeladmin?
23:17 m1chael
im trying the app 'photologue' .. im getting this strange error.. i haven't seen this kind of error before.... any suggestions? http://pastebin.com/m3358a1b0
23:17 amccloud
kyrix: do you know what user django tries to access the database as? I'm running django along with apache with mod_wsgi
23:17 amccloud
my apache processes run as "nobody"
23:21 kyrix
amcloud: what database?
23:22 aonweb
amccloud: the user that you specify in your settings.py
23:22 brenbren
man, I'm reading through the Django Book and I feel like I missed something. I have my model... now how do I access my model's data in my views and template tags? http://dpaste.com/70674/ - this is my view
23:22 amccloud
aonweb: for sqlite?
23:22 brenbren
sorry, my model.
23:23 amccloud
kyrix: sqlite
23:23 aonweb
amccloud: hmm, shoud be the parent process
23:23 aonweb
user
23:25 aonweb
m1chael: have a relook at your urls, a url coming before your reverse url might be catching it
23:26 CoRnJuLiOx
the dev server is running, but http://localhost:8000/ 404s on me. whats wrong here? i started a new project, and haven't added anything, i'm expecting the 'It Worked!' page to show up
23:28 kyrix
amccloud: then it will be nobody. the apache process user.
23:30 m1chael
http://pastebin.com/d7a5b0926 # this is my urls.py .. i checked the satchmo urls... i didnt see anything that immediately jumped out on me...
23:31 brenbren
argh. How do I access my models from the Django template?!
23:31 amccloud
kyrix: now it went to "OperationalError: unable to open database file" instead of telling me that the file was only readonly. Yet this error is only on /admin and no other page on the site.
23:31 ivazquez|laptop
You don't. You access them from the view.
23:32 brenbren
ivazquez|laptop: how do i do that?
23:32 ivazquez|laptop
Same way you'd access other Python objects.
23:32 kyrix
discorpia: not sure... try it out :)
23:33 brenbren
if my model was Portfolio(models.model)...
23:33 ivazquez|laptop
Have you read the tutorial yet?
23:33 brenbren
then would I access it with something like Portfolio.anAttribute ?
23:33 brenbren
yes, i've been reading all day
23:33 brenbren
the django book, at least
23:33 brenbren
i feel like there's a missing chapter.
23:33 ivazquez|laptop
There's an online tutorial. Use that.
23:33 brenbren
oh. ok.
23:34 kyrix
brenbren: four chapters. short. easy. :)
23:34 aonweb
m1chael: you have not given all your urls but databrowse/(..*) is a catchall for all databrowse
23:34 ivazquez|laptop
Well, the "easy" bit depends on whether or not you're meant to be a programmer.
23:35 aonweb
but i think your reverse is looking for a view with view_url/xyz
23:36 kyrix
ivazquez: its all relative, except to the the old zope documentation.
23:36 kyrix
thats an absolute :D
23:36 aonweb
amccloud: you need to check what user and group permissions on your db file and in the entire hierarchy
23:37 aonweb
enclosing that file
23:37 discorpia
kyrix, i can't, or i wouldn't know how. the only documentation i find about it is the usage of modelAdmin.message_user() in an example, no clue on where to find more info about that area
23:44 Gratz474
how can i attach a query set to actual dates?
23:47 shadfc
what does that mean
23:47 kyrix
normally looking at source code tells you more info. django source code very well documented
23:58 chrispitzer
when i try to load my fixture (made on my dev site, populated with a lot of good data) onto my new public-facing site (with ./manage loaddata myfixture.json) I get "Warning: Data truncated for column 'email' at row 1" Any idea what's breaking?
23:58 ivazquez|laptop
Do they use the same DB engine?
Page 24 of 24   ← Previous  (2,369 total)