I tried doing json.loads(response.content) but it says it needs to be a str not bytes
renlo has quit
eka has quit
renlo joined the channel
boxk has quit
psicom joined the channel
Hanumaan joined the channel
uczekalla has quit
neilus joined the channel
akirayuiz has quit
Lokefar joined the channel
ironfroggy joined the channel
boxk joined the channel
Leeds has quit
iiie joined the channel
ironfroggy has quit
reisio has quit
duke joined the channel
GuruMonk has quit
mcspud has quit
Ouyang has quit
Tomatosoup- has quit
mcspud joined the channel
boxk has quit
nzey joined the channel
Tomatosoup- joined the channel
renlo has quit
roomcayz has quit
Rialynn has quit
jinzo joined the channel
flobin has quit
hutch34 joined the channel
boxk joined the channel
GuruMonk joined the channel
themediator
I'm getting an error when I try to save a model instance that the table doesn't exist.
But I can see it clearly in my migration file
GuruMonk has quit
renlo joined the channel
hutch34 has quit
hpanago joined the channel
neilus has quit
quechon has quit
ebsen joined the channel
GuruMonk joined the channel
GuruMonk has quit
FreedomFighter joined the channel
GuruMonk joined the channel
ebsen has quit
GuruMonk has quit
GuruMonk joined the channel
GuruMonk has quit
GuruMonk joined the channel
GuruMonk has quit
GuruMonk joined the channel
noobstrap joined the channel
ironfroggy joined the channel
Poppabear joined the channel
FreedomFighter has quit
boxk has quit
Rialynn joined the channel
rpkilby joined the channel
renlo has quit
concacid joined the channel
andi- has quit
andi- joined the channel
jas02 has quit
hckrtst joined the channel
concacid has quit
neilus joined the channel
flobin joined the channel
neilus has quit
MoonGNatRouth joined the channel
ironfroggy has quit
bed666 joined the channel
ironfroggy joined the channel
ironfroggy has quit
capitano joined the channel
Brachamul joined the channel
neilus joined the channel
Brachamul
Hello, i have a dynamic query with "Cards.objects.filter(**query)", i want to see cards that have a value of 2, 3 or 4, what should I input ? Currently I have {'value':'2'} but I don't know how to to get 2, 3 and 4
ThomW
Brachamul: .filter(value__in=[2, 3, 4])
although if it's integers and you're doing ranges it may be better to do value__lte=4, value__gte=2
jas02 joined the channel
neilus has quit
Brachamul
let me try that out !
jas02_ joined the channel
thanks ThomW, works perfectly !
Dafonz joined the channel
jas02_ has quit
capitano
Hey, I was wondering about django apps. What is the best way to create an admin interface for your website: should just create the admin interface in my web app or create a separate admin app that contains the admin interface? Or does it depend on if I want a reusable admin interface?
jas02 has quit
jas02 joined the channel
jas02_ joined the channel
ThomW
I keep my admin interface in the same app as the models for which it is being the CRUD interfaec
capitano
ThomW, that was what I was thinking as well
jas02 has quit
GuruMonk has quit
GuruMonk joined the channel
ironfroggy joined the channel
nzey has quit
djapo has quit
JZA has quit
but if I would like to create a separate reusable admin app, how would people actually integrate it with their own site? They would need to access the models from the admin app?
PaulN joined the channel
JZA joined the channel
ThomW
what exactly does 'reusable' mean
pratyushprakash has quit
in my experience it's fairly difficult to do anything in the django admin that's not very dependent on your model
capitano
to distribute it
well yeah, anyone who would like to use it would depend on the features and models provided by the admin app
mehola joined the channel
Lokefar has quit
but if I phrase it like this, I want to make multiple websites using the same admin interface, what would be the best way to structure the projects
Brachamul has quit
mpla joined the channel
ironfroggy has quit
ironfroggy joined the channel
LADataJunkie joined the channel
ironfroggy has quit
ironfroggy_ joined the channel
bed666 has quit
eperzhand joined the channel
Asandari has quit
scarabx joined the channel
Asandari joined the channel
raijin has quit
Rialynn has quit
InfoTest joined the channel
surrender420 has quit
Combined2857 has quit
bochecha joined the channel
flobin has quit
mrmenacex joined the channel
GuruMonk has quit
hutch34 joined the channel
jas02 joined the channel
Back2Basics joined the channel
hutch34 has quit
Lokefar joined the channel
flobin joined the channel
InfoTest has quit
klow joined the channel
ironfroggy_ has quit
BananaDisco joined the channel
moldy
"admin interface" can mean very different things
be more specific so we have an idea of what you're talking about
buddyglass joined the channel
buddyglass
hi, would anyone here have any knowledge about getting apache2.4 to handle a django project on centos6.7?
i've read appropriate guides online but i can't seem to get the configuration file right