doismellburning: the best to do is to port it to Django 1.7 ;)
jessamynsmith joined the channel
doismellburning
suixo: tabfail
pmachine has quit
rje has quit
rje joined the channel
suixo
Oups sorry
dougshmish: the best to do is to port it to Django 1.7 ;)
rje has quit
gopar joined the channel
brockhaywood has quit
pmachine joined the channel
rje joined the channel
ustunozgur joined the channel
brockhaywood joined the channel
keimlink has quit
dougshmish
I downloaded an open source project. I'd like to try running it, and it has a long list of requirements. Do i have to go one by one and install each requirement into my virtualenv, or is there a faster way of doing this?
I'm finding this to be pretty overwhelming. I'm told that what I want to do is pretty simple for django. But after working through a few tutorials, I wanted to try and do something on my own like import a list of users. Bam! I see this: https://django-import-export.readthedocs.org/en...
doismellburning
dougshmish: it comes with a requirements.txt - `pip install -r requirements.txt`
suixo
They say `pip install django-simple-import`
strange
dougshmish
and it mostly makes no sense to me.
rje has quit
Leeds has quit
doismellburning: seems like a good idea. I'll try that.
rpkilby joined the channel
winkey
how does django decide the order to make the db tables in? i am running across an issue with some custom sql for a model where the django_content_type table dont exist yet
rgenito__ has quit
kunalg has quit
pmachine joined the channel
nottobi has quit
doismellburning
winkey: at a guess, INSTALLED_APPS order, but your statement re custom sql makes it sound like you might have a bigger/different issue
juztin joined the channel
winkey
doismellburning django.contrib.contenttypes is definatly before my app in INSTALLED_APPS
rpkilby has quit
rje joined the channel
dray3 joined the channel
doismellburning
fair enough
elbaschid joined the channel
winkey
Failed to install custom SQL for layers.layertreenode model: relation "django_content_type" does not exist
doismellburning
winkey: Welcome to #django || Please provide code and __full__ traceback in a pastebin || Pastebin at: http://dpaste.de/ -- do not use pastebin.com!
pmachine has quit
melhiors has quit
winkey
i dont think thats going to help
doismellburning
welp, g'luck
codeme has quit
winkey
understanding why django.contrib.contenttypes dont make its tables before my apps do might
thats obviously the issue
rje has quit
pmachine joined the channel
rje joined the channel
Broodoobob joined the channel
Nizumzen has quit
bmispelon joined the channel
rgenito__ joined the channel
drager
Can you override a models create method? And create another object (foreign key) in that method?
Guddu has quit
MarkusH
drager: override Model.save()
dray3 has quit
drager
MarkusH: That's what I did, but save is called on save (so edit as well)
MarkusH
and check for "self.pk is None" to see if the object has been saved (has a pk)
codeme joined the channel
well, Model.objects.create() isn't guaranteed to be called
saidi: oh, there might be support coming in 1.8, haven't looked - definitely not the case for current stable though
user00123456 joined the channel
saidi
doismellburning, what i want to do is use some existing template i made for Django and use them with Flask
eVRiAL joined the channel
eurabilis joined the channel
their syntax looks the same
doismellburning
saidi: yeah that's not going to just happen afaik
saidi: unless you find some standalone DjangoTemplateLanguage renderer
Squarepy
there are enough differences afaik
egamonal joined the channel
saidi
yes, but Jinja is inspired by Django’s templating syntax, so porting to Flask will be easy :)
thank you
egamonal
i'm using DRF+angular. the browser is being mean with the cache. if I make a request using httpie, it goes fine. however, the browser seems to be using client-side cache . maybe i'm not setting properly cache headers?
lostinmalloc has quit
eurabilis has quit
JBreit joined the channel
CharlesFinley joined the channel
CharlesFinley
Hi, where can i read about classes in django apps?
My views.py got really big and i would like to break it down into different parts
meisth0th has quit
al1o has quit
egamonal
CharlesFinley: you're looking for modules
it's basically spliting that into smaller chunks, putting that in different files in a folder named "views"