16:55 PM
moldy
wawrek: your idea doesn't decrease complexity, it increases it
16:55 PM
wawrek
so making 2 virtualenvs is a way of making these things separate and smaller, more readable
16:55 PM
moldy
no
16:55 PM
shibly
Hi
16:55 PM
moldy
it makes it less readable, because now you also have to read & understand the communication between the applications
16:56 PM
primehaxor has quit
16:56 PM
wawrek: hanlding requests and making queries to a database is what django was built for. your readability issue is solved by using a proper project structure, making use of python modules and django "apps".
16:57 PM
wawrek
yeah but if you have a large website processing materials and so on, everything does not live in one django app. this is overkill.
16:57 PM
moldy
wawrek: do you know what a django "app" is?
16:57 PM
wawrek
that is something I know
16:57 PM
i know how to use them
16:57 PM
moldy
wawrek: then you know that you can have many django apps in one virtualenv
16:57 PM
so there you go, problem solved
16:58 PM
wawrek
when I said apps, I meant 2 large projects, one holdnig all of my django apps, the other doing data processing
16:58 PM
moldy
wawrek: that is not a good way to make your code more readable
16:58 PM
lejedi76 joined the channel
16:58 PM
wawrek: your idea is more or less what is called "microservices" these days, and you do not want it.
16:59 PM
just use python packages, python modules and maybe django apps
16:59 PM
mkoistinen has quit
17:00 PM
adamsilver
17:00 PM
moldy
adamsilver: that's not a solution
17:00 PM
adamsilver
moldy: how so?
17:00 PM
moldy
adamsilver: you did not show the interesting part
17:01 PM
iGeni joined the channel
17:01 PM
the interesting part is the code that sets the `something_changed` variable
17:01 PM
xpen joined the channel
17:02 PM
iGeni
i gues BeautifulSoup==3.2.1 isnt python3 ready
17:02 PM
pip update
17:02 PM
oeps
17:03 PM
17:03 PM
zagabar joined the channel
17:03 PM
adamsilver
moldy: just above it some condition if job.title != current_job.title or if ... then self.something_changed = True
17:04 PM
moldy
adamsilver: i think you can use has_changed() on the form, if you understand how it works (and that it is not really what you asked about)
17:05 PM
adamsilver: so you compare it against the state of the database. yeah, that can work.
17:05 PM
(it doesn't really tell you if the user has changed the form in the browser, though)
17:05 PM
xpen has quit
17:06 PM
adamsilver
moldy: hmm, I will look into it. I didn't know about this method existence
17:06 PM
iGeni
BeautifulSoup4 :P
17:08 PM
primehaxor joined the channel
17:08 PM
bx0` joined the channel
17:09 PM
the_rat has quit
17:09 PM
shredding joined the channel
17:09 PM
Azendale joined the channel
17:10 PM
the_rat joined the channel
17:10 PM
adamsilver
moldy: ah wow, I replaced the long condition with form.has_changed() and it works but in the view {{ form.has_changed }} is always True. I wonder why
17:12 PM
kingarmadillo joined the channel
17:13 PM
frege has quit
17:13 PM
microdex has quit
17:13 PM
AgentUnderMulta has quit
17:14 PM
CtrlC has quit
17:14 PM
shredding has quit
17:14 PM
primehaxor_ joined the channel
17:15 PM
shredding joined the channel
17:15 PM
shibly has left the channel
17:15 PM
wawrek has quit
17:16 PM
tclugg_ has quit
17:16 PM
primehaxor_
hi, how i can set the first_name and last_name as required in crontrib user model on admin?
17:17 PM
__elio___ has quit
17:17 PM
__eliot__ joined the channel
17:18 PM
amcorreia has quit
17:18 PM
microdex joined the channel
17:18 PM
shredding has quit
17:18 PM
adamsilver
17:19 PM
timkofu has quit
17:19 PM
CashewGuy joined the channel
17:20 PM
totoybato has quit
17:20 PM
Ispira joined the channel
17:22 PM
riclima joined the channel
17:24 PM
tga joined the channel
17:24 PM
tga has quit
17:24 PM
tga joined the channel
17:25 PM
shredding joined the channel
17:26 PM
CtrlC joined the channel
17:26 PM
Genitrust has quit
17:27 PM
Genitrust joined the channel
17:29 PM
amcorreia joined the channel
17:29 PM
shredding has quit
17:31 PM
delgiudices joined the channel
17:32 PM
delgiudices has quit
17:32 PM
adamsilver has quit
17:34 PM
roflmyeggo has quit
17:36 PM
davi has quit
17:36 PM
EpicMinecrafting has quit
17:37 PM
jacoliobo joined the channel
17:41 PM
shredding joined the channel
17:42 PM
CashewGuy has quit
17:42 PM
iGeni
why do i get ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) >> Support for string view arguments to url() is deprecated and will be removed in Django 1.10
17:42 PM
xcesariox joined the channel
17:42 PM
shredding has quit
17:42 PM
t0n1c joined the channel
17:43 PM
nlh joined the channel
17:43 PM
daegontaven joined the channel
17:44 PM
17:44 PM
dhmspector has quit
17:45 PM
shredding joined the channel
17:45 PM
primehaxor has quit
17:47 PM
pywkm joined the channel
17:48 PM
livingstn has quit
17:48 PM
shredding has quit
17:51 PM
InfoTest joined the channel
17:51 PM
InfoTest has quit
17:51 PM
moldy
iGeni: because support for string view arguments to url() is deprecated ;)
17:51 PM
e^1 has quit
17:52 PM
iGeni
xxx.xxx.xxx things?
17:52 PM
moldy
iGeni: deprecated: url('mymodule.myfunc'). supported in the future: url(mymodule.myfunc)
17:52 PM
iGeni
ah k, ''
17:53 PM
so url(r'^rtctest/$', 'viral.views.rtctest', name='rtctest'), will become url(r'^rtctest/$', viral.views.rtctest, name='rtctest'),
17:53 PM
dang`r`us
I find it a bit annoying to type the same thing three times
17:53 PM
space-wizard joined the channel
17:53 PM
e^1 joined the channel
17:53 PM
writing a shortcut function was easier when string views were a thing
17:53 PM
mhm.
17:54 PM
but I have a CBV-based solution anyway.
17:54 PM
amcorreia has quit
17:54 PM
iGeni
and ofc import viral
17:55 PM
delgiudices joined the channel
17:57 PM
JohnnyChapo has quit
17:57 PM
daegontaven has quit
17:57 PM
import virla.views :P
17:57 PM
.\
17:58 PM
daegontaven joined the channel
17:59 PM
daegontaven has quit
17:59 PM
daegontaven joined the channel
18:02 PM
sebcorbin`away is now known as sebcorbin
18:05 PM
dang`r`us
18:05 PM
tis how I do it
18:05 PM
so an_app/BlahBlubbView becomes an_app:blah_blubb
18:06 PM
CrowX- joined the channel
18:06 PM
iGeni
that ment for me dang?
18:06 PM
dang`r`us
anyone interested
18:06 PM
just rambling
18:06 PM
iGeni
:D
18:06 PM
dang`r`us
but yeah it's about url things
18:08 PM
mrhanky has quit
18:08 PM
Lomex joined the channel
18:08 PM
mrhanky joined the channel
18:09 PM
jessamynsmith joined the channel
18:09 PM
iGeni
18:09 PM
frague has quit
18:09 PM
jessamynsmith has quit
18:09 PM
mrhanky has quit
18:09 PM
tga joined the channel
18:10 PM
mrhanky joined the channel
18:11 PM
mrhanky has quit
18:11 PM
there error isnt very clear
18:11 PM
atleast not where it happends
18:12 PM
mrhanky joined the channel
18:13 PM
mkoistinen joined the channel
18:13 PM
amcorreia joined the channel
18:13 PM
mrhanky has quit