2008-8-27

23:48 largos
Lollipopz: let me know if it works.. I'm curios, but I don't have an easy way to test right now..
23:49 largos
bleh. curious*
23:49 Magus-
speedy: make sure you restarted the server
23:49 speedy
Magus-: i did several times
23:50 Magus-
and you put the tag lib correctly in app/templatetags/lounges.py ?
23:50 Magus-
and templatetags has __init__.py ?
23:50 speedy
correct
23:50 Magus-
and the app is in INSTALLED_APPS ?
23:50 speedy
correct
23:50 speedy
yep
23:50 Magus-
try importing the tag functions from it in the shell
23:50 Magus-
see if there are any import errors or such
23:50 gloriaC991
hi, i've read about a few different forum/message board apps in django. i can't decide which one to use. i'm looking for something extremely basic, basically a duplicate of the message boards on facebook groups. anyone have any suggestions?
23:51 speedy
Magus-: you're right :)
23:51 mcdiesel
kimus: are you saying i need to store these attributes in the model?
23:51 kimus
no
23:52 speedy
there are import errors within the template tags
23:52 speedy
thanks
23:52 kimus
mcdiesel: the 1st param of calculate_cloud is a list of tags right?
23:52 mcdiesel
kimus: yes
23:53 kimus
mcdiesel: that list should be the list of tags objects
23:54 kimus
mcdiesel: could be the Tag model object or your custom object (that has the count attribute)
23:54 yogi_
Magus-: did you see my question about sessions? if i'm not logged in, django keeps issuing me new session ids on each request, so i can't store anything in the session for that anonymous use
23:54 Lollipopz
largos: tried various ways :D nothing won't get em
23:54 yogi_
user*
23:54 illsci
23:54 largos
Lollipopz: ah, that's to bad.
23:54 largos
it works in plain'ol python
23:54 mcdiesel
kimus: let me show you a little more of my code, im still a little confused (thanks for your patience)
23:54 illsci
now that i upgraded to trunk im getting this __init__() got an unexpected keyword argument 'core'
23:54 Magus-
yogi: are you actually trying to store anything?
23:55 Magus-
illsci: try a pastebin and the full traceback
23:55 yogi_
Magus-: yea, but since it hands back a new session id every time, it's 'lost'
23:55 Lollipopz
largos :o)
23:55 speedy
Magus-: i'm getting importError, from lounges.models import MosRooms
23:55 speedy
when i copy paste the line in the shell it works
23:55 speedy
but within the templatetag it gives import error
23:55 Magus-
...
23:56 Magus-
name conflict
23:56 Magus-
of course it errors
23:56 Magus-
you're in a module called lounges
23:56 Magus-
how can you get to lounges.models
23:56 Magus-
your file has no models
23:56 speedy
oh
23:56 speedy
alright
23:56 speedy
thanks
23:56 Magus-
this is why I do something like foo_tags
23:56 Magus-
or foolib
23:56 Magus-
some unique suffix
23:56 Magus-
yogi: then your browser isn't saving the cookie
23:56 speedy
great
23:57 yogi_
Magus-: it works for logged in users though
23:57 yogi_
tried both FF and safari
23:57 yogi_
(of course, when a logged in user logs out, the data is lost, but that's ok)
23:57 illsci
23:57 illsci
i read that they took out support of mysql_old ...
23:57 illsci
i wonder if thats what it is..
23:58 Magus-
how the hell could that be it
23:58 illsci
i have an older version of MySQLdb that will only work with the mysql_old
23:58 Magus-
look at the error, illsci
23:58 illsci
i have no idea
23:58 mcdiesel
kimus: here's my code http://dpaste.com/74337/ . Am I not calling it the right way?
23:58 Magus-
look at line 46
23:58 Magus-
where's the error from?
23:58 Magus-
Field.__init__
23:58 Magus-
where are you using fields? in your models
23:58 Magus-
unexpected arg 'core'
23:58 Magus-
hence, core=True is invalid now
23:58 Magus-
you didn't update your models for the new admin
23:58 illsci
ahh ok
23:58 __machine
how does one save an UploadedFile to a specific location? do i just open a file for writing and then f.write(uploaded_file)?
23:58 Magus-
problem solved
23:59 illsci
is updating the models for the new admin a manual process?
23:59 Magus-
obviously
23:59 illsci
guess so..
23:59 illsci
:)
23:59 Magus-
23:59 Magus-
nothing is ever automated
Page 27 of 27   ← Previous  (2,678 total)