2008-8-5

23:33 psytek
"rozwell: ahh, i didn't want to overwrite the data"
23:34 rozwell
psytek: and then you said you wanted to save it without overwriting it
23:35 timboy
rozwell, thank you so much!!! one last question. why does it try to pull from my /media directory when I go into the admin interface? it's trying to get the stylesheet and images
23:35 psytek
ok, well this should work, thanks for the help
23:35 rozwell
timboy: because you've set ADMIN_MEDIA_PREFIX to '/media/'
23:35 psytek
and thanks wmealing__ for helping out too
23:35 rozwell
timboy: change that to wherever you are serving your admin media from
23:36 wmealing__
oh, i just kinda have something working now.. but ok.
23:36 wmealing__ stops
23:36 alperkanat
any ideas ?
23:36 timboy
rozwell, do I set that in a location field in my apache conf?
23:37 psytek
wmealing__: do you have a something that will allow me to modify the queryset before returning it to the view and keep the modified field values?
23:37 mcdiesel
I need a year of birth drop down list for a registration form, and was curious if anyone knew how to automatically generate one (like 1900 to the present for example)
23:37 wmealing__
psytek: nah, you'd need to save it to use it between views.
23:37 wmealing__
i think so anyway.
23:38 timboy
rozwell, nm
23:38 psytek
ok
23:38 rozwell
psytek: just modify each record in the list returned by the queryset, pass it to the template
23:38 rozwell
psytek: it won't hit the database
23:39 unix_infidel
can anyone point me to a comparison b/w mod_python and WSGI?
23:39 rozwell
timboy: it's up to you how you want to do it; many people just symlink the admin media into their media_root and set admin_media_prefix accordingly
23:39 unix_infidel
or englighten me on which one is easier to use.
23:40 rozwell
unix_infidel: they're both about equally easy to use
23:40 rozwell
unix_infidel: go with mod_wsgi
23:41 unix_infidel
rozwell: ok. any particular reason. I'm actually in search of a DECENT blog post giving me reasons for why I should go with wsgi
23:41 rozwell
unix_infidel: it's more flexible and more performant
23:41 rozwell
23:42 unix_infidel
rozwell: well i suppose I should ask for a tutorial that helps me get django + wsgi going on windows.
23:42 rozwell
unix_infidel: then see the tutorial at the mod_wsgi google code site
23:42 unix_infidel
rozwell: good times.
23:48 unix_infidel
"This is not intended as a basic tutorial on how to setup mod_wsgi"
23:48 unix_infidel
yikes, way to scare away the users.
23:49 rozwell
unix_infidel: the basic set up tutorials are also there
23:49 rozwell
unix_infidel: the django tutorial assumes you already have the basics down
23:49 unix_infidel
rozwell: i couldnt get it working last night, so i guess I should focus on basics.
23:50 alperkanat
does django start searching from the top urls.py when it's rendering name url patterns ?
23:50 rozwell
alperkanat: yes, it starts from the root url conf
23:50 rozwell
23:51 alperkanat
rozwell: then there might be a bug or something like this
23:51 alperkanat
this gotta work! :S
23:51 unix_infidel
rozwell: I should probably try getting the default mod_python install going before I try to get wsgi working?
23:52 mcdiesel
Is it possible to define a list of number choices by iterating through a range of numbers?
23:52 alperkanat
it can't find the name i defined in the root url... and there's only 1 admin_page url name! url(r'^admin/(.*)', admin.site.root, name='admin_page'),
23:53 rozwell
alperkanat: are you passing it a positional argument?
23:53 alperkanat
rozwell: what do you mean by positional ?
23:53 rozwell
alperkanat: {% url admin_page "" %}
23:53 alperkanat
nope.. this is how i call it: &raquo; <a href="{% url admin_page %}" title="yönetim paneline gitmek için tıklayın.." class="link">yönetim paneli</a>
23:54 rozwell
alperkanat: then it won't match because admin_page takes an argument
23:54 alperkanat
rozwell: ?
23:54 rozwell
alperkanat: do you not see right there that you must supply an argument to the admin.site.root view?
23:55 alperkanat
rozwell: i thought it was optional
23:55 alperkanat
rozwell: you mean the (.*) part, right ?
23:55 davidcramer
urls.py supports direct view reference right?
23:55 webfarmer
guys trying to install mysql on a linux machine for django, I require some sort of library for python 2.5 to work. can someone guide me through the process of this - cause I have one big error
23:55 davidcramer
not just passing as strings
23:55 davidcramer
so i could say from views import *
23:55 davidcramer
and just ref them here?
23:55 rozwell
alperkanat: yes, it passes the empty string if there's nothing after admin/
23:55 davidcramer
(it'd be nice to keep relative imports)
23:56 rozwell
davidcramer: yes
23:56 alperkanat
rozwell: :) amazing... thanks for your attention
23:56 Bill````
I'm working through the Poll Tutorial, and when I run `python manage.py sql polls` it complains about an unexpected keyword argument 'max_length'
23:56 rozwell
Bill````: are you using 0.96?
23:57 Bill````
*sheepish*
23:57 Bill````
.96.2 ?
23:58 rozwell
Bill````: then you should use the 0.96 tutorial
23:58 rozwell
23:58 alperkanat
rozwell: is this not enough ? {% url admin_page '' %}
23:58 rozwell
alperkanat: that should work
23:58 alperkanat
rozwell: it still can't match it :S
23:59 Bill````
I see...
23:59 Bill````
webfarmer: what problem were you having?
Page 40 of 40   ← Previous  (3,972 total)