Guess I'll have to use the trial version of Pycharm.
Itkovian joined the channel
stevejalim has quit
mission has quit
ghostlines has quit
robmorri_ has quit
adiq has quit
d1rkp1tt has quit
robmorrissey joined the channel
faldridge joined the channel
ojh has quit
jef79m has quit
ldgood has quit
viwal_ joined the channel
chth0n joined the channel
mission joined the channel
hackeron joined the channel
sohail has quit
faldridge has quit
jef79m joined the channel
rhymes joined the channel
rhymes
Do you know any alternatives to django-haystack?
Itkovian has quit
kezabelle
django-watson, if you're against using a real search index, otherwise, just pick the lib you want (elasticsearch, whoosh, etc)
rhymes
kezabelle: i’ve been using haystack for a few weeks but it’s not really maintained and i’m having problems I have no idea how to solve
Left_Turn joined the channel
kezabelle
it is maintained, just slowly, AFAIK
rhymes
that’s why i’m looking elsewhere
kezabelle
last change acepted was 14 days ago :p
rhymes
yeah, really slowly :)
jef79m has quit
Tjati has quit
kezabelle: yep, anyhow I’m having strange bugs with the realtime signal processor which is kind of fundamental to reflect changes made in the admin
so I’m considering alternatives
kezabelle
"strange bugs"
rhymes
kezabelle: it just doesn’t update :)
kezabelle
nice and vague :|
dpaste/gist models, search indexes, relevant settings, etc if you can, or no-one can help
airtonix joined the channel
rhymes
kezabelle: yeah i know. i need to reduce the scope of the problem before I start pasting tons of code eheh. I’ll post later. thanks!
kezabelle
well, I'm no expert really, but I'll look out for it ;)
jef79m joined the channel
sebaj joined the channel
aarose joined the channel
lionmac joined the channel
bearish has quit
hackeron has quit
bearish joined the channel
aarose has quit
stevejalim joined the channel
bearish has quit
jef79m has quit
eVRiAL joined the channel
citizen-stig joined the channel
nedbat joined the channel
rhymes
kezabelle: ahahah i think i’ve already found the bug :D thank god yesterday I started looking from scratch
totte__ joined the channel
bearish joined the channel
kingel joined the channel
bearish has quit
stephenmcd has quit
chth0n has quit
kingel has quit
kingel joined the channel
totte__
I'm reading https://docs.djangoproject.com/en/1.6/topics/pa..., if one already passed GET parameters like "www.example.com/?list=contacts" and would like to add pagination - how do you simply add the '<a href="?page={{ contacts.next_page_number }}">next</a>' part to the current URL without losing the '?list=contacts'?
yuka joined the channel
kezabelle
just always append &page=?? to the URL
yuka
hey lads: I've added a field to models.py and ran python manage.py syncdb but I am still getting OperationalError
no such column .. what must I do to add a simple field to the model?
kezabelle
?&page=1 is just as valid as ?page=1 :)
enkrypt has quit
yuka
isnt it enough to add field to models and run syncdb?
rhymes
kezabelle: FYI I’m using multiple indexes because it’s a multi language website and I totally forgout about the routers so the signal processor was updating the default index and not the right one
kezabelle
no, syncdb doesn't alter tables
yuka
what must I do then?
kezabelle
rhymes: heh, that'd do it
enkrypt joined the channel
totte__
kezabelle: Sorry, I don't follow. Where would you do that? In the URLconf or the templates?
shredding has quit
kezabelle
in the templates, which is where I presume your pagination is anyway
yuka
oh damn one must manually alter table?:\ this is crappy
kezabelle
yuka: prior to the unreleased 1.7, the go-to for migrations is South
totte__
yuka: Try South for migrations unless you have Django 1.7.
Oh, too slow.
kezabelle
:D
totte__
kezabelle: Hm okey I need to think about it a bit.
sivy joined the channel
matthiaswahl joined the channel
anthony25 has quit
matthiaswahl has quit
fgallina joined the channel
SegFaultAX has quit
fgallina has quit
sivy has quit
SegFaultAX joined the channel
fgallina joined the channel
jax has quit
bhargu joined the channel
edbaffei has quit
anthony25 joined the channel
yuka
kezabelle totte__ I installed south
and added field migrated project to schema of south etc
after final manage.py migrate myapp
it still gives same error
jef79m joined the channel
AttributeError: 'dict' object has no attribute 'iteritems'
jenskarlsen has quit
kezabelle
python3?
yuka
yea
linovia
iteritems in python2 is items in python3
yuka
ph so dict.items() this is what I need to use
but where should I find those
linovia
yuka: there are porting guides to python3 which covers all the python3 specific things
yuka
linovia I am kindof lost :( since very new to all this.. I didn't think adding a new field to the table takes all this :\
aagaard joined the channel
linovia
yuka: There are still some libraries that aren't python3 compatible although most should now be
yuka
yes but I am totally confused as to what should I do now to solve this error? really don't know what to look for.. where do I find iteritems?
honi joined the channel
lionmac has quit
bhargu
Hi, I am going through the tutorial and using python3 and mysql connector from oracle (v1.2.2). I tried date_hierarchy and it threw error Incorrect datetime value: '%Y-%m-%d 00:00:00'. http://dpaste.com/2AVZVPH . I saw this in debug: django/db/models/sql/compiler.py in execute_sql line 786 cursor.execute(sql, params) . local vars show sql as having the segment CONVERT_TZ(`polls_poll`.`pub_date`, 'UTC', "
"%s), '%%Y-%%m-%%d 00:00:00'). Should there be %%? Shouldn't it be '%Y-%m-%d...'?
linovia
yuka: google for iteritems and python and you should find it in the python's doc
maryokhin joined the channel
bearish joined the channel
rhymes
bhargu: it seems to me that the problem comes from mysql though. what “date_hierarchy” does?
bhargu
In tutorial, it demonstrates the use of a hierarchy filter for selecting data based on dates/months/year, etc.
yuka
linovia ok I googled and read stuff. I understand it change in python 3.x however I used south to migrate my existing app.. so I can't make this work? I can't find that anywhere
xragon joined the channel
I can't find anywhere what I need to change, either on official south docs nothing is written abotu this error
bhargu
list_filter seems to be more useful that date_hierarchy, but may be their uses are different.
dray3 joined the channel
Does django have any other database connector for mysql other than the oracle one which works with python3?
linovia
yuka: south is for database migration, not code migration
Suterusu joined the channel
bhargu: if I understood correctly, there are a few that does, but I don't think they are supported by Django
apollo13
bhargu: what's wrong with the oracle one? :)
michelem has quit
bhargu
I was getting errors Incorrect datetime value: '%Y-%m-%d 00:00:00' . When I checked the trace, it showed an sql segment CONVERT_TZ(`polls_poll`.`pub_date`, 'UTC', "