-
FunkyBob
04:44 < FunkyBob> unless you're trying for a ManyTomany relation
-
04:45 < mribeirodantas> yes, I am.
-
trustyhank
funkybob runs a tight ship
-
john-scott-a has quit
-
oshivum has quit
-
kanja has quit
-
nux443 joined the channel
-
gimireh joined the channel
-
aul joined the channel
-
idontneedanick joined the channel
-
NomadJim has quit
-
viiralvx|sleep has quit
-
keyengi joined the channel
-
keyengi
Hi everyone
-
could someone point me to a good richtexteditor for django that is updated and well documented?
-
I tried django-cfkeditor, django-redactor and django-tinymce and I have many problems to use them
-
hive-mind has quit
-
deltaskelta joined the channel
-
Shariq has quit
-
gimireh has quit
-
opnchaudhary joined the channel
-
cewing joined the channel
-
deltaskelta
hey all, im having my urls capture and pass the wrong parameter to my view...heres my code
https://dpaste.de/N6Tz
-
any ideas what is wrong?
-
FunkyBob
deltaskelta: well, the one on line 3 starts with a$... so it can't possibly work
-
$ means "end of string"
-
line 7 has no $, so will match anything after its match ,too
-
it should start with a ^, too
-
timkofu joined the channel
-
-
basti-mbp joined the channel
-
keyengi
can you suggest me a good wysiwyg editor for the textfield?
-
FunkyBob
nope... they're all crappy IME
-
redactor looked ok... but never erally tried it
-
keyengi
FunkyBob: I tried redactor and works in the admin, but in my view I got some weird js errors and the doc doesn’t explain anything
-
deltaskelta
FunkyBob, my apologies, I typed that out without double checking, it is right in my real code, let me paste in the real stuff in a minute
-
FunkyBob
deltaskelta: good idea
-
keyengi: yeah, well.. would need details about "some weird JS errors" and exactly what you did...
-
keyengi
yes FunkyBob let me switch branch and I’ll be back with detailed errors
-
ojii joined the channel
-
akaariai joined the channel
-
basti-mbp has quit
-
deltaskelta
-
jessamynsmith joined the channel
-
FunkyBob, I solved it. I am changing my urls structure slightly and another url in my old structure was matching that ;)
-
akaariai has quit
-
jessamynsmith has quit
-
akaariai joined the channel
-
keyengi
FunkyBob: installed redactor and works in the admin. In my view I got a ReferenceError: jQuery is not defined because I load the jquery at the bottom
-
FunkyBob
well, then...
-
seems obvious, eh?
-
keyengi
yes, let me move the jquery at the top
-
FunkyBob
or fire off the thing that needs it after jquery is loaded
-
keyengi
if I load the jQuery at the top
-
I get the error on this line: jQuery("#id_description").redactor(jQuery.extend({}, …
-
the error is jQuery(...).redactor is not a function
-
FunkyBob
and... that line is...?
-
keyengi
is the javascript in the input field that refactor provide in the widget if you use RefactorField in the model
-
so this is the code generated by the widget
-
FunkyBob
I'm not sure how you expect anyone to debug this when you provide almost no details
-
keyengi
what I don’t understand is why in the admin works, but not in my page. I know that admin use the {{ form.media }}
-
yes, you’re right FunkyBob
-
FunkyBob
try to imagine for a second the near infinite number of ways your page could be written... and you're expecting us to guess?
-
jtiai joined the channel
-
jarshwah_ joined the channel
-
keyengi
yes FunkyBob I’ll try to figure out few things before boring you, then I’ll provide more details
-
FunkyBob
just dpaste the template, for a start
-
so we can _see_ how you have things arranged
-
it's not boring... it's frustrating... trying to help someone who gives no details
-
jarshwah has quit
-
keimlink joined the channel
-
jarshwah_ has quit
-
elyezer joined the channel
-
LordVan joined the channel
-
bkuberek_ joined the channel
-
mribeirodantas has quit
-
davur_ joined the channel
-
davur_ has left the channel
-
davur_ joined the channel
-
davur_ has left the channel
-
davur__ joined the channel
-
bradfordli123 joined the channel
-
keimlink has quit
-
davur__ has quit
-
vranac joined the channel
-
chocolateminht has quit
-
davur1 joined the channel
-
lorddaedra joined the channel
-
davur1 has quit
-
davur1 joined the channel
-
joules joined the channel
-
joules
hi
-
bradfordli123
hello!
-
joules
With wsgi aside from HTTP_HOST I wonder what other headers are non standard?
-
request headers sorry.
-
lorddaedra has quit
-
I'm not sure why the wsgi spec didn't include a seperate dict for request headers, instead of lumping them all in the one dict :/
-
joules has left the channel
-
audioburn
why is Debug = True not working anymore?
-
jtiai
audioburn: define "not working".
-
audioburn
no errors are being displayed
-
jtiai
audioburn: So what is displayed instead?
-
Debnet joined the channel
-
audioburn
Server Error 500
-
jtiai ^
-
naro joined the channel
-
jtiai
audioburn: Either you're modifying incorrect settings file or you may override that setting in your setting file(s).
-
mgedmin
perhaps your IP is not in the whitelist?
-
audioburn
ALLOWED_HOSTS = ['127.0.0.1']
-
yes it is
-
jtiai, both of those are untrue
-
mgedmin
I vaguely remember once having to add 'localhost' to ALLOWED_HOSTS because for some reason 127.0.0.1 wasn'
-
wasn't enough
-
bradfordli123
-
mgedmin
(but maybe I got confused and misunderstood or am now misremembering)
-
jtiai
mgedmin: That is required when DEBUG is False...
-
audioburn
mgedmin, I have another ALLOWED_HOSTS further down actually, set to *
-
jtiai
audioburn: When this server error 500 happens? When running with django dev server?
-
mgedmin
anyway, the whitelist I had in mind is INTERNAL_IPS, not ALLOWED_HOSTS
-
audioburn
jtiai, both dev and production
-
jtiai, but I'm worried about dev right now
-
so i can fix production
-
both are acting like debug is still set to False
-
mgedmin, oh
-
stickperson joined the channel
-
mgedmin
oh wait, that's for the django debug toolbar
-
I'm not sure if regular error pages need this
-
mgedmin needs morning coffee
-
SDCDev joined the channel
-
jtiai
audioburn: well that's easy to test. in top url config put print settings.DEBUG
-
audioburn
alright
-
jtiai
audioburn: Also cleaning up .pyc files sometimes helps if you for some reason have stale .pyc file(s) hanging around.
-
davur1 has quit
-
basti-mbp joined the channel
-
chocolateminht joined the channel
-
basti-mbp has quit
-
grandfatha joined the channel
-
michalmo joined the channel
-
OnkelTem joined the channel
-
dblado joined the channel
-
stickperson has quit
-
veb has quit
-
k3rn31 joined the channel
-
marxxin joined the channel
-
EyePulp joined the channel
-
mfcovington joined the channel
-
tyfighter joined the channel
-
ehmatthes joined the channel
-
davur joined the channel
-
xnaveira joined the channel